Web Hosting Talk







View Full Version : php problem on Plesk


mpkapadia
09-17-2001, 02:53 AM
Have a look at this

I am running a simple Php upload script from http://www.phpscriptcenter.com/uploader.php3

My Url to the script is :http://www.swifthosts.net/phpupload/uploader.php3

It gives me this error.

Warning: SAFE MODE Restriction in effect. The script whose uid is 10003 is not allowed to access /tmp/phpIeAgz8 owned by uid 0 in /usr/local/plesk/apache/vhosts/swifthosts.net/httpdocs/phpupload/uploader.php3 on line 83

10003 is uid of the user of the site
0 - is uid of root,

I saw that /tmp folder is owned root. This seems to be problem, i think

If i do chown and chgrp /tmp as nobody it may work i feel but i dont know if it is safe and i should be doing it

I am also not sure i had created /tmp earlier as root.

Please help me find why the script does not seem to work


Regards

Manish Kapadia

mkaufman
09-17-2001, 06:09 AM
PHP is running in safe-mode..you won't be allowed to upload any files.

mpkapadia
09-17-2001, 06:22 AM
Any turnaround to this,
can i have thid thing enabled for this site only,

What do i need to do, Please help.

With regards

Manish Kapadia

mikeknoxv
09-17-2001, 02:53 PM
Locate php.ini.
Look for the line "safe_mode = On" and change it to "safe_mode = Off."
Restart Apache.

Also check out http://www.php.net/manual/en/features.safe-mode.php

phpjames
09-17-2001, 03:08 PM
Not such a good idea to turn off safe mode. If you do that make sure that you dont allow the following funtions:

exec,system,passthru

If correctly done a user on your server could write a script to run command line access.

Maybe check with plesk to enable each VHOST with upload support?


Check out the last post:
http://forum.plesk.com/showthread.php?threadid=304

Thanks
James:eek: