Koozali.org: home of the SME Server

I can not upload files to my site

Offline andres

  • 2
  • +0/-0
I can not upload files to my site
« 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.

Offline Jeppe Fugl

  • *
  • 33
  • +0/-0
Re: I can not upload files to my site
« Reply #1 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: I can not upload files to my site
« Reply #2 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)