Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: andres on February 22, 2011, 08:54:37 PM

Title: I can not upload files to my site
Post by: andres on February 22, 2011, 08:54:37 PM
Hello

I installed a Web site in a ebay and I need to upload files to the site using php and I'm typing error, even though I've given 777 permissions to the directory where the files are uploaded as I have to do to solve this problem.
Title: Re: I can not upload files to my site
Post by: Jeppe Fugl on February 23, 2011, 09:46:57 AM
Check the log: httpd/error_log

A little more details would maybe also help :)

Best Regards,
Jeppe
Title: Re: I can not upload files to my site
Post by: cactus on February 23, 2011, 05:20:55 PM
When you check your logs you will most likely notice you are running into the PHPBaseDir restriction, more information and solution on this can be found at: http://wiki.contribs.org/PHP#Open_basedir_restriction

Please remember to never set your files to 777, that is a security risk, most of the times 644 would do, perhsaps sometimes you need 755, but that should be enough.

You should revert the 777 setting ASAP.