Answer the question
In order to leave comments, you need to log in
How to allow php to do mkdir()?
mkdir(): Permission denied
PHP works like cgi with PHP-FPM. All folders have rights 755 and the owner is user. I tried to put 777 on the public folder (it is inside the folder with the domain). You need to create folders in it via mkdir. As far as I understand, php is run by my user nobody, is it really necessary to put 777 on the entire public_html, so that mkdir would work?
Centos 7, cPanel
Answer the question
In order to leave comments, you need to log in
The owner is user, and from which user does php-frm run? Set the owner to the same user and try.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question