The path that you entered is invalid. migrating g1 -> g2

hostsmart

Joined: 2005-11-01
Posts: 5
Posted: Tue, 2005-11-01 21:27

Well I've looked at teh FAQ and the forums for 4 hours now and still can't find a solution.

I've just installed G2 2.0.1 from CVS and everything worked great. Now I'm trying to migrate a g1 galerry to the new installation.

At each attempt I get, The path that you entered is invalid. when entering the absolute path to the G1 albumn.

Yes, the absolute path is correct.

For the record, G1 albumn path = /var/www/vhosts/thedavidsons.ca/httpdocs/gallery/albums
G2 path = /var/www/vhosts/movingyou.ca/httpdocs/gallery2

This is really bothering me, because we have a number of users who want the latest and greatest, but if I can't get the migration to work, what chance do they have?

All advice would be appreciated


Gallery version (not just "2"): 2.0.1
PHP version (e.g. 4.3.11):unknown
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Apache on linux (fedora core3)
Database (e.g. MySql 4.0.11): MySql ver unknown
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 1.0): Firefox
--
For migration issues:
G2 URL (optional): http://www.movingyou.ca/galeery2
G2 version: 2.0.1
G1 URL (optional): http://www.thedavidsons.ca/gallery
G1 version:
G1 character set:
PHP memory limit:

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-01 23:49

could be an open_basedir issue.

please create a phpinfo file in
http://www.movingyou.ca/galeery2/info.php

code to enter in this file is:
<?php phpinfo(); ?>

also, do you have command line access?

 
hostsmart

Joined: 2005-11-01
Posts: 5
Posted: Wed, 2005-11-02 01:38

OK,

PHP info file is at http://www.movingyou.ca/gallery2/info.php

Open_basedir looks good to me.

Yes I have full comand line access.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-02 01:46

open_basedir: /var/www/vhosts/movingyou.ca/httpdocs
g1 albums dir: /var/www/vhosts/thedavidsons.ca/httpdocs/gallery/albums

-> open_basedir problem

open_basedir needs to be empty or include /var/www/vhosts/thedavidsons.ca/httpdocs/
else it won't work. ya, i'm good :)

 
hostsmart

Joined: 2005-11-01
Posts: 5
Posted: Wed, 2005-11-02 17:08

Sorry, that didn't work either.

I checked the php_info() from the other domain (http://www.thedavidsons.ca/gallery/info.php) and the open_basedir is set for that domain.
I then added the suggested path to the open_basedir as seen from the target domain (movingyou.ca) and no dice. Still the exact same issue.

Next idea?

 
hostsmart

Joined: 2005-11-01
Posts: 5
Posted: Wed, 2005-11-02 18:53

For the sake of completeness, I installed Gallery2 in the same area as the source gallery1 install (the davidsons.ca) and tried the import, it worked beautifully. So the problem seems to be going from one domain area to another. Additionally I cannot do a multi-site install, same issue.

Jordon

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-11-03 01:59

this all smells like a open_basedir restriction and my previous post showed that it is one.

could you please make sure that http://www.movingyou.ca/gallery2/info.php does work again? currently it's not available and as long as i don't see that it shows now an open_basedir value that includes both vhosts or just the whole vhost directory, i must assume that this is still the problem.

 
hostsmart

Joined: 2005-11-01
Posts: 5
Posted: Thu, 2005-11-03 05:01

Well, you are a genius.

I goofed in where I added the extra path to the open_basedir line in the httpd.conf (there are 4!) and, of course it didn't work. Got it right this time and the site imported like gold.

What is the deal with this open_baserdir thing anyway?

Thanks for your help.

Jordon

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-11-03 14:09

open_basedir restricts php to operate only within the given paths. a security measure useful for shared webhosting.