Question:
chmod, chown, rmdir, mkdir permission denied even in cpanel (php, apache). Why?
just "JR"
2013-03-01 03:05:48 UTC
I have many files and folders on the server. Some have a definitive owner, such as "xyz" (same as for the scripts), and others "99". I cannot delete, modify or chown these files. What can I do?

Php V 5.3.21.
None of the functions above can be used (permission denied).
True in Cpanel, FTP or plain Php script running on the server. Any idea how to change these?
Four answers:
Eli
2013-03-01 10:49:14 UTC
if you're not using shared hosting, try login using ssh as root, and do



sudo chmod 777 whatever.



that's all i can think of... changing permissions from filezilla or any ftp client wont solve the problem, you need ssh, because you need to run sudo.



On a shared hosting, you wont be able to run sudo, you'd need to contact the support, they'll solve it for you
Steven K
2014-10-03 10:59:33 UTC
Old question, but a good question that deserves additional information. On a server running PHP as a DSO, all php processes are run as the underprivileged user "nobody" to prevent your websites scripts from doing bad things on the server. This UID for this user is generally 99, and any files created by your PHP scripts. This user is also prevented from running any commands that would alter the ownership or permissions of those files as well (chown, chmod, etc), so you will be unable to execute those command from a script.



Most modern hosts are using SuPHP or some other FastCGI version to run PHP, the advantage of this being that all web scripts are run as the user instead of nobody, isolating their processes from other users. Any files created by your scripts in this type of system will be owned by the user instead of nobody.
?
2016-12-12 16:51:24 UTC
Your questions have become extra nonsense each and every time. Whites would desire to artwork too, it quite is in comparison to they by surprise get what they like and born with a silver spoon of their mouths.Do you think of Whites purely have been given wealthy and carried out good issues via doing no longer something? How come some international locations with adequate of organic supplies are extra often than not undesirable and White international locations like the Nordic international locations and intensely some ecu international locations are the extra often than not advance? Yeah i'm a racist for telling the reality. i'm extraordinarily specific different races can declare how reliable, quickly or what have you ever, yet while Whites declare such issues this is racism. do you recognize what's the income , annoying artwork. @dude, you're splendid,Whites and Asians tend to have bigger iqs look at their cultures. The Japaneses and koreans have very few organic supplies in spite of that they are financial ability homes alongside with the Nordic international locations. You reported we are all racists yet you like particular rights for White women human beings lol.
anonymous
2014-03-30 16:34:07 UTC
Hi,



It might help you in your situation

http://webhostingsecretsonline.com



Regards,


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...