'From Local Server' Upload Error

LGABoarder

Joined: 2007-03-12
Posts: 26
Posted: Wed, 2007-04-04 19:47

Well I just did a fresh install of Gallery 2.2.1 to correct a screwup I made. Now when I try to upload from Local Server I get white page that says "Not Acceptable. An appropriate representation of the requested resource /client/main.php could not be found on this server." Client is my root gallery folder. Thanks for any help!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-04-04 20:58

are there any details in your server's error log?
FAQ: What is the webserver error log?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
LGABoarder

Joined: 2007-03-12
Posts: 26
Posted: Wed, 2007-04-04 21:09

Here is the most recent error since trying to upload:

[Wed Apr 4 16:04:07 2007] [error] PHP Warning: is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/home/lgp11/video/..) is not within the allowed path(s): (/home/lgp11/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/lgp11/public_html/client/modules/core/classes/GalleryPlatform.class on line 208

The Gallery is setup in the public_html folder and the videos folder is on the same level as public_html (one level lower than the core gallery install) Does this error have to do with permissions? Thanks again!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-04-04 21:21

your server is configured to not allow such paths.
your local upload folder (videos folder) needs to be within the public_html folder.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
LGABoarder

Joined: 2007-03-12
Posts: 26
Posted: Wed, 2007-04-04 21:23

In my previous install I had Gallery setup with the video folder outside of the public_html folder and everything worked fine. Is there something I could have changed or perhaps my host changed that disallowed that? Thanks!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-04-04 21:25

your webhost disallowed that. they could relax the php open_basedir setting to home/youraccount/ but right now they set it to /home/youraccount/public_html/ .

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
LGABoarder

Joined: 2007-03-12
Posts: 26
Posted: Thu, 2007-04-05 15:20

Well I just got word from my host that the open_basedir setting has been turned off so I should be good on that front. However, I'm still getting the "Not Acceptable..." error, but this time there's no error log. So I'm guessing that I had two errors with the 'From Local Server' setup and one has been corrected or masked so it looks corrected. Any suggestions?

EDIT: I've just reinstalled but kept the video folder in the public_html folder and I still get the "Not Acceptable" error. I didn't get any of these errors with 2.2, but am getting them with 2.2.1, Could this have triggered the problem somehow?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-04-05 16:01

> I didn't get any of these errors with 2.2, but am getting them with 2.2.1, Could this have triggered the problem somehow?

on the same webhost? no, 2.2.1 is a minimal change compared to 2.2. it shouldn't cause any of these issues.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
LGABoarder

Joined: 2007-03-12
Posts: 26
Posted: Fri, 2007-04-06 15:42

Here's the latest from the error log

[Fri Apr 6 10:18:49 2007] [error] PHP Warning: opendir(/home/lgp11/) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: Permission denied in /home/lgp11/public_html/client/modules/core/classes/GalleryPlatform.class on line 385
[Fri Apr 6 10:18:48 2007] [error] PHP Warning: opendir(/home/lgp11) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: Permission denied in /home/lgp11/public_html/client/modules/core/classes/GalleryPlatform.class on line 385
[Fri Apr 6 10:18:35 2007] [error] PHP Warning: opendir(/home/) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: Permission denied in /home/lgp11/public_html/client/modules/core/classes/GalleryPlatform.class on line 385

Any ideas?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-04-06 16:47

sounds like the webserver/php/g2 aren't allowed to read that folder.

in site admin -> item add, remove all local server upload paths.
then add them again.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
LGABoarder

Joined: 2007-03-12
Posts: 26
Posted: Mon, 2007-04-09 13:42

I just tried that and still got the same error with error logs. I installed the 2.2 setup I had on my testing server and that gives the problem as well. Does this go back to how Open_Basedir is configured or is this another problem? Is it correct to assume that this is a hosting problem?

I just found http://gallery.menalto.com/node/50269 which has the same problem (though a different means to create the problem) Might my solution have something to do with mod_security?

 
LGABoarder

Joined: 2007-03-12
Posts: 26
Posted: Mon, 2007-04-09 13:58

Also, I just got this error log

[Mon Apr 9 08:52:02 2007] [error] PHP Warning: stat() [<a href='function.stat'>function.stat</a>]: stat failed for /home/lgp11/public_html/video/albums/DSCF0014.JPG in /home/lgp11/public_html/client/modules/core/classes/GalleryPlatform.class on line 443
[Mon Apr 9 08:52:02 2007] [error] PHP Warning: fopen(/home/lgp11/public_html/video/albums/DSCF0014.JPG) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/lgp11/public_html/client/modules/core/classes/GalleryPlatform.class on line 316
[Mon Apr 9 08:52:02 2007] [error] PHP Warning: stat() [<a href='function.stat'>function.stat</a>]: stat failed for /home/lgp11/public_html/video/albums/DSCF0014.JPG in /home/lgp11/public_html/client/modules/core/classes/GalleryPlatform.class on line 443