Moved to new hosting, trouble with Gallery setup

rogue3ky

Joined: 2008-11-29
Posts: 14
Posted: Tue, 2009-10-20 19:01

Hey all,

I was running gallery2.2 fine (it's a PHPNuke integration module) and I had to switch hosting. So, I set up my database, migrated it over, changed the database info in the config file, and tried to access it. No luck. It goes to the updater, but can't get past the first initial check. And, there's an error on the bottom of the page.

Quote:
Warning: Unknown(): open(/home/users/web/b1376/ipw.paskovic/phpsessions/sess_28fa4dcad8dc39be772d2c59bf12eda3, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/users/web/b1376/ipw.paskovic/phpsessions) in Unknown on line 0

It looks like my old path, but i've updated in config. Is there somewhere else I need to update it? I'm hoping this is a pretty easy fix. I think I've done all the hard stuff so far (migrating it all over)....

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11015
Posted: Tue, 2009-10-20 19:05

you need to set the session.save_path to a directory that's readable and writable by the web server.

You can change this in your php.ini or in your .htaccess (search google) or you can contact your host and ask them to fix the issue.

Also make sure you've followed this guide:
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
rogue3ky

Joined: 2008-11-29
Posts: 14
Posted: Tue, 2009-10-20 19:29

I added this line:

php_value session.save_path /home/xxxxx/xxxx/g2temp

I tried it in the php.ini file and the .htaccess (the one in the gallery directory) and neither one worked. The one in the php.ini file didn't do anything, and when I place it in the .htaccess file it crashes the upgrade script.

Am I putting in the wrong location? The folder I made is chmod 777 too.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11015
Posted: Tue, 2009-10-20 19:44

Ask your new host about that setting. If it's looking like your old path, make sure that nothing you brought over is specifying that.

Try just /tmp
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
rogue3ky

Joined: 2008-11-29
Posts: 14
Posted: Tue, 2009-10-20 19:51

Which file should I put this in? The php.ini or the .htaccess?

So, just do it like this?

php_value session.save_path /tmp

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11015
Posted: Tue, 2009-10-20 20:01

for php.ini
session.save_path = /tmp

Depending on if that's run as CGI or an Apache Module you may need to restart Apache

For .htaccess, try:
php_value session.save_path "/tmp"

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
rogue3ky

Joined: 2008-11-29
Posts: 14
Posted: Tue, 2009-10-20 20:01

I've tried editing both files and still get the same result. The path in the error at the bottom seems to be the path on my old hosting

(/home/users/web/b1376/ipw.paskovic/phpsessions

the ipw stands for ipowerweb, so I know that is not correct.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11015
Posted: Tue, 2009-10-20 20:08
Quote:
The path in the error at the bottom seems to be the path on my old hosting

Then make sure you don't have that set some place else. Check main.php, check gallery's .htaccess, check all the files you brought over. If you have SSH access you can do this from your webroot:

grep -nri 'ipw.paskovic' ./
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
rogue3ky

Joined: 2008-11-29
Posts: 14
Posted: Tue, 2009-10-20 20:30

So far I cannot find where it is pulling that path from. Grrrrr.

I guess I'll have to wait for the apache server to reboot to see if the php.ini change works. Seems no matter what I put in the .htaccess file that's in the gallery root it causes an internal service error page to load. Currently, all that is in it is:

#{gallerySection}

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11015
Posted: Tue, 2009-10-20 20:49

Contact your host. If you're on a shared hosting plan, it could be days, weeks, months or even years before a restart or reboot happens :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments