Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
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.

DennyP - www.dennyp.com
DennyP Travel
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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
D
Enthusiast
Enthusiast
D Offline
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.

DennyP - www.dennyp.com
DennyP Travel
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Originally Posted by Rick
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!


DennyP - www.dennyp.com
DennyP Travel
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Originally Posted by DennyP
Is there a log file kept of the importer messages that might contain some help?


DennyP - www.dennyp.com
DennyP Travel
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
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:
Quote
/var/www/vhosts/dennyp.com/httpdocs/ubb
But it isn't working for files above the httpdocs directory for files in directories like
Quote
/var/www/vhosts/dennyp.com/cgi-bin/ubbcgi

I wrote this test script
Quote
<!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
Quote
/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.

DennyP - www.dennyp.com
DennyP Travel
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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
D
Enthusiast
Enthusiast
D Offline
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.

DennyP - www.dennyp.com
DennyP Travel
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
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?


DennyP - www.dennyp.com
DennyP Travel
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
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Originally Posted by Ruben
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


DennyP - www.dennyp.com
DennyP Travel
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by DennyP
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
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.

DennyP - www.dennyp.com
DennyP Travel
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
It finally worked and I'm testing the UBB.threads board now.


DennyP - www.dennyp.com
DennyP Travel
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
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Once I disabled basedir it went smoothly. Thanks.


DennyP - www.dennyp.com
DennyP Travel

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)