That's correct because php runs as nobody unless phpsuexec is installed and 755 means only the owner "you" can write to those folders. Chmod the folder to 777 and it will work!XaHyMaH said:... to the folders with 755 rights because "Permission denied"
chmod 777? Does it mean that everyone from the web can write to that folder?cpscripts said:That's correct because php runs as nobody unless phpsuexec is installed and 755 means only the owner "you" can write to those folders. Chmod the folder to 777 and it will work!
Yes, but if you need php to write to it then you have no choice though your host should have protection in place to prevent other users on the server from accessing those folders via php such as php open base directory protection. The only way those folder can be written to otherwise is if someone finds/uploads an exploit to your server so you should practice good web security.XaHyMaH said:chmod 777? Does it mean that everyone from the web can write to that folder?
Not unless php is run under phpsuexec! Basically, you own the file but php is a different user to you, the user "nobody". If php was you then every user on the server would require their own copy of php! If php open base directory protection is in place then you have nothing to worry about and anyway, why are you so paranoid :DXaHyMaH said:My logic is almost BSOD'ed![]()
How's that - scripts are mine. The guy who uploaded them is me. But their rights like not mine.
Is there any solutions other than chmod 777![]()
What is phpsuexec and how to do this?cpscripts said:Not unless php is run under phpsuexec!
Soi hominicpscripts said:If php open base directory protection is in place then you have nothing to worry about and anyway, why are you so paranoid
Bah to shebang lines is all I can sayjdpravin said:If it is not set up completely, it will
require that the #! be included at the front of the php code in order to
invoke PHP as the CGI.
cpscripts said:Originally Posted by XaHyMaH
chmod 777? Does it mean that everyone from the web can write to that folder?
Yes, but if you need php to write to it then you have no choice though your host should have protection in place to prevent other users on the server from accessing those folders via php such as php open base directory protection. The only way those folder can be written to otherwise is if someone finds/uploads an exploit to your server so you should practice good web security.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
A | Prevent PHP Scripts from being executed | Security | 1 | |
![]() |
need help preventing malicious spam .php scripts | Security | 11 | |
A | Disable cgi scripts even using fcgi as php handler. | Security | 1 | |
B | see which php scripts are sending mail | Security | 8 | |
![]() |
suPHP protects against massa defacement? perl scripts | Security | 13 |