Web Hosting Talk







View Full Version : Problem with PHP scripts on server


nogi
01-13-2004, 04:10 PM
Is there any way a server can be configured so files created by PHP scripts are owned by the account user, rather than user/group = 99/99(nobody/nobody)? If this isn't possible, we are required to chmod 777 a directory which is a
security risk. Phpsuexec is used on the server. Isn't it supposed to fix this problem? Any help is gratefully received.

Thanks
John

Winkie
01-13-2004, 05:04 PM
if php's creation of files is creating them as nobody/nobody, it's either doing it itself or phpsuexec isn't working.

VapoRub
01-13-2004, 05:29 PM
Did you try reinstalling PHPSUEXEC? Did it work in the first place?

nogi
01-13-2004, 06:22 PM
Thank you. Maybe we should try reinstalling php and phpsuexec.

John

nogi
01-13-2004, 06:32 PM
As I were about to recompile apache, after choosing option 6, this error appeared:

/bin/sh: /usr/bin/gcc: Permission denied
make: *** [lxdialog.o] Error 126

Could this be the reason why phpsuexec or php isn't working?

John

blessen
01-15-2004, 06:16 AM
Please follow these steps

1)Run the script /scripts/fixheaders

2) check the permission of /usr/bin/gcc .It should be 755

3)Then run the cpanel update script
(a) /scripts/sysup
(b) /scripts/updatenow
(c) /scripts/upcp

After doing all this , run the scripts /scripts/easyapache...it will execute without any errors


Regards
blessen
Head of installation and Security Team (bobcares )
Blessen.com , Bobcares.com , ikonware.com
Note: for any expert advice post in the forum blessen.com (its free)