Welcome, Guest. Please Login or Register.
November 17, 2017, 11:35:08 PM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Converters  |  Topic: Found a workaround for open_basedir errors!!! « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Found a workaround for open_basedir errors!!!  (Read 11109 times)
Andy
Noobie
*
Posts: 15


I'm a llama!


Found a workaround for open_basedir errors!!!
« on: March 23, 2003, 09:22:49 AM »
Reply with quote

Problem description: When running converter, get the following type of errors:

-------------------------------------------

Converting Settings...

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/xxxxxxx.com/httpdocs/yabbse/converter.php on line 255

Warning: file("/home/httpd/vhosts/xxxxxxx.com/cgi-bin/bb/Variables/agreement.txt") - Operation not permitted in /home/httpd/vhosts/xxxxxxx.com/httpdocs/yabbse/converter.php on line 255

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/xxxxxxx.com/httpdocs/yabbse/converter.php on line 256

-------------------------------------------

Problem Caused by:

I think this problem is caused by a security restriction imposed by service providers to prevent people from reading files contained in cgi-bin areas.

Workaround:

Copy the entire contents of your bulletin board directory located in your cgi-bin area, to a temporary directory under your public http area and then run the converter on this area.

Example:

Existing Yabb1G install directory =

/home/httpd/vhosts/xxxx.com/cgi-bin/bb

Planned new YabbSE directory:

/home/httpd/vhosts/xxxx.com/httpdocs/yabbse

Copy entire contents of /home/httpd/vhosts/xxxx.com/cgi-bin/bb to a temporary directory /home/httpd/vhosts/xxxx.com/httpdocs/yabb1Gtemp

Run conerter.php and answer:

YaBB 1 Gold Install directory: /home/httpd/vhosts/xxxx.com/httpdocs/yabb1Gtemp

How to Copy Entire Contents:

The best way I found of doing this was to set my ftp programme to copy everything in Binary mode, then copy the complete cgi-bin bulletin board directory onto my local system, and then ftp the whole lot back onto the server again (with ftp still set to binary).

Hope this helps!!
« Last Edit: March 23, 2003, 09:39:42 AM by Andy » Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?


WWW
Re:Found a workaround for open_basedir errors!!!
« Reply #1 on: March 20, 2004, 09:41:32 PM »
Reply with quote

Here's a better explanation of why you're getting that error. The open_basedir restriction prevents scripts from accessing stuff in folders outside of the "base" directory, in this case httpdocs. Because your cgi-bin folder is outside of the httpdocs folder, you can't access it with your script. Usually this isn't a problem because all your website files go in the same "base" directory and anything outside that base directory would be inaccessible from your browser. From the error messages you gave, it appears that your host is a reseller (kind of complicated - basically, a "reseller" is a host who uses another webhost's servers - they get the ability to set up and manage other accounts within their own account, so they can "re-sell" portions of their hosting plan). I'm not sure why the cgi-bin folder is outside your httpdocs folder, but it might just be the way the server is set up. Glad you got it working though.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Converters  |  Topic: Found a workaround for open_basedir errors!!! « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.076 seconds with 19 queries.