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
Posts: 16503
Post a link to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16503
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
Posts: 24
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
Posts: 16503
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
Posts: 24
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?
Posts: 16503
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
Posts: 24
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!
Posts: 16503
Is this your server? Are you root?
grep -nri open_basedir /
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 24
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!
Posts: 16503
/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
Posts: 24
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)
Posts: 16503
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
Posts: 24
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.
Posts: 24
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.