Cannot get past step 8

mcf

Joined: 2005-11-11
Posts: 24
Posted: Fri, 2009-09-11 16:53

Hi

I am trying to do a fresh install of Gallery 2, but no matter how I do it, I always get the same error at step 8 "Install Gallery Core".

I am sure it is just a permissions thing, but I have even tried with everything set to 777 and I still get the error.

Any help would be much appreciated. Here is the error I get:

Notice: Undefined index: data.gallery.base in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 275

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/install_c40beeeb1d.log) is not within the allowed path(s): (/tmp:/home/default/myfolder.net) in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Warning: fopen(/install_c40beeeb1d.log) [function.fopen]: failed to open stream: Operation not permitted in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/install_c40beeeb1d.log) is not within the allowed path(s): (/tmp:/home/default/myfolder.net) in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Warning: fopen(/install_c40beeeb1d.log) [function.fopen]: failed to open stream: Operation not permitted in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/install_c40beeeb1d.log) is not within the allowed path(s): (/tmp:/home/default/myfolder.net) in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Warning: fopen(/install_c40beeeb1d.log) [function.fopen]: failed to open stream: Operation not permitted in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Notice: Undefined index: data.gallery.base in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 275

Notice: Undefined index: storage.config in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 275

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/install_c40beeeb1d.log) is not within the allowed path(s): (/tmp:/home/default/myfolder.net) in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Warning: fopen(/install_c40beeeb1d.log) [function.fopen]: failed to open stream: Operation not permitted in /home/default/myfolder.net/user/htdocs/library/modules/core/classes/Gallery.class on line 752

Thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-09-11 19:24
Quote:
open_basedir restriction in effect.

Post a link to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-12 09:57

The location you've specified for your g2data directory is not in your open_basedir paths.

Looks like you only have /tmp and the path to your site there. You either need to put your g2data directory under /home/default/myfolder.net which I think you can since it looks like your actually website docs are at /home/default/myfolder.net/user/htdocs

So create g2data at /home/default/myfolder.net/g2data and it will be out of your web root (you'll need to verify that, but from your phpinfo that's what it looks like) and use that path.

NOTE: you won't be able to use external binaries like ImageMagick unless you either add the path to ImageMagick or remove the open_basedir restriction all together.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mcf

Joined: 2005-11-11
Posts: 24
Posted: Sat, 2009-09-12 10:04

Hi Nivekiam

I have tried putting the g2data directory in several places, including the root directory of the site (/home/default/myfolder.net/g2data), and it still generated the same error.

How do I remove the open_basedir restriction altogether? Currently, my php.ini says:

;open_basedir =

Doesn't that mean is disabled?

Is it overridden in an .htaccess file somewhere if so, where?

Also, will removing it have any operational effect on the other sites on my server (I control all of them btw).

Phil

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-12 10:16

If you control all the sites on the server, I wouldn't worry a lot about open_basedir. I would secure the server in other ways. Running PHP under php-cgiwrap for instance so each site was run under a different user account. But this really depends on the resources you have available on the server.

The master value lists nothing, that's pulling from your main php.ini at /etc/php.ini However, the local value has a value for open_basedir, so it appears to probably be coming from .htaccess
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mcf

Joined: 2005-11-11
Posts: 24
Posted: Sat, 2009-09-12 10:20
nivekiam wrote:

The master value lists nothing, that's pulling from your main php.ini at /etc/php.ini However, the local value has a value for open_basedir, so it appears to probably be coming from .htaccess

I can't see an .htaccess file anywhere on my site folder which is overriding the global setting. Any ideas where else I might look?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-12 10:24

Try under any directory for that site
/home
/home/default
/home/default/mysite.net

etc

I wonder if it could also be set in your vhost's file for that site for Apache.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mcf

Joined: 2005-11-11
Posts: 24
Posted: Sat, 2009-09-12 10:45

I have looked everywhere, I cannot find where that setting is being overridden.

If I had any hair, I would have pulled it all out by now!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-12 16:04

Is this your server? Are you root?

grep -nri open_basedir / :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mcf

Joined: 2005-11-11
Posts: 24
Posted: Sat, 2009-09-12 16:34

ok, I found where it was being overridded. You were right, it was in the httpd.conf vhosts file. I commented this setting out, restarted apache, and now I get the following:

Notice: Undefined index: data.gallery.base in /home/default/mysite.net/user/htdocs/gallery/modules/core/classes/Gallery.class on line 275

Warning: fopen(/install_f6828e4fe3.log) [function.fopen]: failed to open stream: Permission denied in /home/default/mysite.net/user/htdocs/gallery/modules/core/classes/Gallery.class on line 752

Warning: fopen(/install_f6828e4fe3.log) [function.fopen]: failed to open stream: Permission denied in /home/default/mysite.net/user/htdocs/gallery/modules/core/classes/Gallery.class on line 752

Warning: fopen(/install_f6828e4fe3.log) [function.fopen]: failed to open stream: Permission denied in /home/default/mysite.net/user/htdocs/gallery/modules/core/classes/Gallery.class on line 752

Notice: Undefined index: data.gallery.base in /home/default/mysite.net/user/htdocs/gallery/modules/core/classes/Gallery.class on line 275

Notice: Undefined index: storage.config in /home/default/mysite.net/user/htdocs/gallery/modules/core/classes/Gallery.class on line 275

Warning: fopen(/install_f6828e4fe3.log) [function.fopen]: failed to open stream: Permission denied in /home/default/mysite.net/user/htdocs/gallery/modules/core/classes/Gallery.class on line 752

This occurs whatever permissions I have set.

As an aside, I have successfully installed g2 on another domain on the same server. So now I am really puzzled!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-12 16:59

/install_f6828e4fe3.log

What is the path you are specifying for your g2data directory? That looks like you're trying to put it in root of the filesystem /
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mcf

Joined: 2005-11-11
Posts: 24
Posted: Sat, 2009-09-12 17:02

It's definitely the folder above htdocs, not the root of the whole system. Like I say, the thing works if done in exactly the same way on a different domain on the same server - even with the issues mentioned above about vhosts (which has the same override btw)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-12 17:48

Have you tried blowing everything away and starting fresh with that site?

I'd also create a phpinfo file under each site's G2 directory and compare them to see if there are any differences.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mcf

Joined: 2005-11-11
Posts: 24
Posted: Sat, 2009-09-12 18:08

I have lost count of the number of times I have installed and reinstalled. I haven't deleted the domain and recreated it though, maybe that will happen next.

Good idea about the phpinfo thing. I will do that.

 
mcf

Joined: 2005-11-11
Posts: 24
Posted: Sun, 2009-09-13 09:32

Update:

I have compared the phpinfo outputs, and they are identical (except for the expected differences: hostname etc.)

My only option i to rebuild the problem domain and start from a clean sheet.

Thanks for your help.