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 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
|
|
Posts: 32509
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?
Posts: 5
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.
Posts: 32509
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
Posts: 5
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?
Posts: 5
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
Posts: 32509
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.
Posts: 5
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
Posts: 32509
open_basedir restricts php to operate only within the given paths. a security measure useful for shared webhosting.