Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
I've tried and tried and now I'm just stuck. I have a completely clean install. It won't upload attachments or pictures. Yes, the directories exist and are world writeable, when you run the check in the admin menu through config.inc.php it says it is correct. When you try to upload though, nothing gets uploaded. Looking at the php error log it says:

----------
[27-Jun-2002 00:06:41] PHP Warning: open_basedir restriction in effect. File is in wrong directory in /big/dom/xfishingfordeals/www/forums2/changebasic.php on line 121
[27-Jun-2002 00:06:41] PHP Warning: getimagesize: Unable to open '/tmp/phpS5ynMf' for reading. in /big/dom/xfishingfordeals/www/forums2/changebasic.php on line 121
[27-Jun-2002 00:06:41] PHP Warning: open_basedir restriction in effect. File is in wrong directory in /big/dom/xfishingfordeals/www/forums2/changebasic.php on line 139
----------

So I figured it was something FutureQuest (host) would have to change. I wrote them and got this explanation:

[]"That script is generating a lot of errors in your logs_cgi/phperror log, which is highly suspect in itself...

It is true that we run with 'open_basedir' for security reasons, however it appears that the failing program makes provisions for handling the 'open_basedir' environment...

If you look at the output of 'phpinfo()', you will find the 'open_basedir' is set to:
/big/dom/xfishingfordeals:/var/shadowdom/xfishingfordeals/logs_web:/usr/local/lib/php:/PHP4:/big/tmp:/big/dom/tmp

The 'read_dump.php' script is failing on line 252 because it is trying to access a file in '/tmp'... Unfortunately this is not allowed because all sites on the server operate as the same user level of 'apache'... If you wrote temporary files to '/tmp', then others could look at your files for which might contain sensitive data like credit card numbers for orders...

If you look at line 239 of that file, you will see it mentions reading the documentation on how to use the './tmp' directory instead to work around this problem...

The true 'tmp' directory for everyone to use with file uploads is not '/tmp' but rather '/big/dom/tmp', and this is how PHP is configured noted by the above string...

At this junction, you will need to keep working with the script as I am 100% confident that PHP file uploads is working properly for a large number of domains across different servers...

Hope this helps to clarify and expand upon the issue you are seeing...


Well, unfortunately it doesn't clarify anything. So I opened a support ticket at Infopop. Infopop's response was "When I test an attachment it goes up - but I get a 404 when I try to access it." It doesn't "go up" -- that's the problem! It never sucks the file from your computer to the server. That's why you get a 404 error, because the file ISN'T THERE! If I want them to check it further it will cost $75.

Between this problem and the email problem (new members don't get an email with their password), I haven't been able to switch our board over. I'm getting pressure to switch to VBulletin, and that just stinks, because I really like ubb.threads.

Does anyone have any suggestions on how to fix this so that the uploads actually upload, short of paying $75 for help with a product that should work already? (PLEASE don't misunderstand me -- I'm not one of those people who complains that this is too buggy, etc., because I don't think that. I'm just frustrated that Infopop wants us to pay extra to get something to work that should already work!) I know it works for most people, because I tested it on my own personal website (different host) and the uploads worked fine. But according to FutureQuest the difference is that they have the cgi-bin above the html tree, so PHP can't access it. Is that extremely unusual? Shouldn't there just be directions on how to get around this if your host is set up this way?

Thank you for any help or suggestions anyone can offer.


[:"red"]Lisa[/]
Sponsored Links
Entire Thread
Subject Posted By Posted
Can't upload -- open_basedir error Lisa_P 06/27/2002 6:19 PM
Re: Can't upload -- open_basedir error AllenAyres 06/27/2002 8:09 PM
Re: Can't upload -- open_basedir error Lisa_P 06/27/2002 8:19 PM
Re: Can't upload -- open_basedir error Dave_L_dup1 06/27/2002 11:32 PM
Re: Can't upload -- open_basedir error AllenAyres 06/27/2002 11:42 PM
Re: Can't upload -- open_basedir error Dave_L_dup1 06/27/2002 11:50 PM
Re: Can't upload -- open_basedir error Dave_L_dup1 06/28/2002 12:06 AM
Re: Can't upload -- open_basedir error Lisa_P 06/28/2002 4:25 PM
Re: Can't upload -- open_basedir error AllenAyres 06/28/2002 6:40 PM
Re: Can't upload -- open_basedir error Dave_L_dup1 06/28/2002 8:30 PM
Re: Can't upload -- open_basedir error Lisa_P 06/28/2002 8:39 PM
Re: Can't upload -- open_basedir error Dslam 08/15/2002 4:52 PM
Re: Can't upload -- open_basedir error Dslam 08/15/2002 4:59 PM
Re: Can't upload -- open_basedir error Jelly_Donut 04/12/2003 3:56 AM
Re: Can't upload -- open_basedir error Dave_L_dup1 04/12/2003 4:43 AM
Re: Can't upload -- open_basedir error Jelly_Donut 04/13/2003 2:37 AM
Re: Can't upload -- open_basedir error JoshPet 04/13/2003 3:08 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)