|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
I've found some similar topics to this problem, but nothing in them addresses or solves my problem.
I'm converting from a 6.7.3. classic system (I know ... it's about time). The install went fine. I'm running the classic importer. I keep getting the following error: Checking... You entered the wrong path to the members directory I copy/pasted the member directory exactly from my Classic control panel as /var/www/vhosts/dennyp.com/Members. In some other topics I've seen references to a memberlist.cgi file in that directory. I have a memberslist.cgi file in that directory. Safe_mode is off.
DOCUMENT_ROOT /var/www/vhosts/dennyp.com/httpdocs - but I have my Members directory above the httpdocs directory.
The Classic board is running fine.
Running PHP Version 5.1.6.
Suggestions? Thanks.
Last edited by DennyP; 08/15/2009 9:23 PM.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, it sounds like everything should be working properly. It might be just easiest if you can open up a basic support ticket with ftp info so I can take a closer look.
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
I commented out all the ckthis function calls in the classic_import.php file (I first tried commenting out only the Member check, but then I got errors on all the other file tests). I then ran the classic_import.php program. It ran through all the import functions. It did it pretty fast. I did see some errors, but they went by too fast. I have 20,000 members, about 25 forums, and over 100,000 total messages. There was no way it could have converted all of it. When I looked at the message board, nothing was converted.
Is there a log file kept of the importer messages that might contain some help?
I checked the SQL files and the banned_email and banned_hosts tables were properly populate, but the other tables have either none (like the Forum table) or just a few records.
Last edited by DennyP; 08/15/2009 10:24 PM.
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
Hmm, it sounds like everything should be working properly. It might be just easiest if you can open up a basic support ticket with ftp info so I can take a closer look. Done as requested!
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
Is there a log file kept of the importer messages that might contain some help?
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
I think I found a clue by playing around with the import script. It seems that the 'file_exists' function works ok if the file being checked is in a directory below my httpdocs directory like: /var/www/vhosts/dennyp.com/httpdocs/ubb But it isn't working for files above the httpdocs directory for files in directories like /var/www/vhosts/dennyp.com/cgi-bin/ubbcgi I wrote this test script <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> </head>
<body> <?php $x="/var/www/vhosts/dennyp.com/cgi-bin/ubbcgi/vars_misc.cgi"; $y="/var/www/vhosts/dennyp.com/httpdocs/ubb/on.gif"; echo $x; ?>.<br/><? if (file_exists ($x)){ echo "It's there"; } else { echo "Not there"; } ?>.<br/><? echo $x; ?>.<br/><? if (file_exists ($y)){ echo "It's there"; } else { echo "Not there"; } ?> </body>
</html> It returned /var/www/vhosts/dennyp.com/cgi-bin/ubbcgi/vars_misc.cgi. Not there. /var/www/vhosts/dennyp.com/cgi-bin/ubbcgi/vars_misc.cgi. It's there But both files are there.
Last edited by DennyP; 08/16/2009 3:02 AM.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, well looks like you've debugged this quite a bit, so we'll just continue here for anyone else that might be following along.
Since it appears PHP can't read above your httpdocs directory and safe_mode is off then more than likely it's an open_basedir restriction.
If you want your classic board to remain operational, what I'd do is just copy your members directory to within your httpdocs directory.
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
What about the data in /var/www/vhosts/dennyp.com/cgi-bin/ubbcgi which is also above the httpdocs directory?
Also the forums which are in /var/www/vhosts/dennyp.com/httpdocs/ubb below httpdocs didn't get copied.
My current setting for open_basedir is.
open_basedir /var/www/vhosts/dennyp.com/httpdocs:/tmp
Could I just add a vhost.comf file in the conf director for my domain that has the following and restart Apache?:
<Directory /var/www/vhosts/dennyp.com/httpdocs> php_admin_value open_basedir /var/www/vhosts/dennyp.com </Directory>
Last edited by DennyP; 08/16/2009 1:30 PM.
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
Also ... with the above issue, how come my Classic board is running ok on this same server with some directories above httpdocs?
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
My 2 cents you are over evaluating the issue. Threads has a completely different structure than Classic. PHP versus cgi. MYSQL versus a flat file system. Once you finish upgrading you will not deal with cgi anymore not above and or below the root locations. You will have php scripts and all the data will be stored in MYSQL. Probably the reason the import script did not work was because of your reported problem of the members folder above the root was not accessible so the script died trying to import posts because the poster list is in the Members directory.
Don't forget the importer is a php script not a cgi script.
I had a similar problem when I upgraded to threads. I had the member files above the root and I was on a windows host. It sounds like you are on a dedicated or vps server and you have more control over your server than I had. But the most simplistic resolution for me was to move the members directory below the root set file/folder permissions update the control panel. Then run the importer for threads.
I don't understand what other directory's for Classic other than the Member files would have been above the root in your case. But I never had a need to do so either.
All you have for paths in the control panel is cgi files, Non cgi files,Variables files and Member files. The directories can be named what ever you want but the setting paths remain as I stated above
So what other path setting are you talking about that is above the root other than member files?
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
So what other path setting are you talking about that is above the root other than member files? cgi-bin is above the root also the non-cgi is below the root but wasn't imported - moving the members file did not change that
|
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
Also ... with the above issue, how come my Classic board is running ok on this same server with some directories above httpdocs? Because the alias for your cgi-bin directive in apache is set to read the cgibin directory; whereas the other is protected by openbasedir
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
I created the vhost.conf file with (I'll remove it once I'm converted) ...
<Directory /var/www/vhosts/dennyp.com/httpdocs> php_admin_value open_basedir none </Directory>
And the import is proceeding ... it's been running quite a while as I expected it would take a while with all the postings and forums that I have.
I will report back (for posterity for others who may search on this) on it's completion status.
Last edited by DennyP; 08/16/2009 8:04 PM.
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
It finally worked and I'm testing the UBB.threads board now.
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
Your probably good to go since you disabled basedir . So hopefully you did not have any other errors during the upgrade.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
Once I disabled basedir it went smoothly. Thanks.
|
|
|
1 members (Ruben),
476
guests, and
111
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|