Upload Error: 406

ltkermit

Joined: 2009-06-11
Posts: 2
Posted: Thu, 2009-06-11 16:57

Hi Everyone,

I am having trouble with Gallery 3, it installed fine without any trouble or errors, I can change all of the settings, and create albums just fine, but I can not upload any photos, when I click upload the progress bar completes then it says "Upload Error: 406" and the picture does not show up. I am using the latest version from http://github.com/gallery/gallery3/zipball/master and I have it installed in a sub directory of my main site.

The server is running:
Apache - 2.0.63
PHP - 5.2.8
MySQL - 5.0.67-community
Operating system - Linux

I have verified that "var" was set to 777 before installing, all of the files/folders inside "var" that the G3 installer created are 755, I changed them all to 777 but that did not help so I set them back 755.

I was going to include the log file from /var/logs/ but the directory is empty. Please let me know if you have any ideas or if you need any additional info.

Thank you very much!

 
ltkermit

Joined: 2009-06-11
Posts: 2
Posted: Fri, 2009-06-12 02:32

This turned out to be an issue with "mod_security" on the server, my host did a work around for me and now it is working great!

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Mon, 2009-06-15 03:04

I had the same problem.

I contacted my host who asked me to add "SecFilterEngine Off" in the htaccess inside gallery3 folder. I also had to run a script changing some file from 755 to 777

This is the explanation (auto-translated from german....sorry) :

PHP is by Apache / Webserver module mod_php executed. This means that files or directories which were created via the PHP web user "apache" (UID: 48) are allocated. If you now via FTP to these data access them, you will receive an authorization error. The FTP user is in another group by default and thus has no rights to the data via PHP. In order to have access via FTP to enable the rights of the appropriate files / directories to 777 should be amended. This must also be done via PHP.

you can find the explanation in German and the script over there :

https://secure.metanet.ch/support/online-hilfe-faq?page=questions.php&questionid=118