Previous Thread
Next Thread
Print Thread
Rate Thread
#182104 09/13/2003 5:27 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
I'm running 6.4 and I had been having problems with PHP and safe mode awhile back so I turned the accelerator off. Now there have been some changes made and I want to try it again but when I enable it I can only see threads from today in the foums lists. I have Allens hack installed that removed the "threads from the last 10, 20, whatever days and just shows them all. Is there anything else that I can look for that may point to the cause?

Sponsored Links
#182105 09/13/2003 6:06 PM
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
I remember having the same problem a while back due to ultimatebb.php not being able to read the members directory.

#182106 09/13/2003 8:41 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
The members directory caused the views to be limited to just today? I can try to move it and see if it helps. Did you have to put them in any particular place to get them to work?

#182107 09/13/2003 8:55 PM
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
dayspruned...

and, has the test php succuessfully ran for the accel?


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
#182108 09/13/2003 9:59 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
The test runs successfully with the safe mode warning. I was able to run it before but some people would get an error if they weren't logged in. Now it seems to be okay except for the missing threads in the forum view.

Sponsored Links
#182109 09/13/2003 10:06 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
Hmm, more info. If I'm logged out I see all of the threads but anyone that's logged in sees just today and the stickies. I also ran across and error that may help. It says;

Accelerator error

I can't seem to create the new counter file (

the/path/to/the/counter/file

)

I know it's pointing to the proper path for the cache folder. I remember something someone said awhile back pointing to this issue caused by either the safe mode or the config of Apache on the FreeBSD server I'm on. I have a feeling that the upgrade to 6.6 may not help this issue.

#182110 09/13/2003 10:23 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
Wow, this link goes to the thread that has Allen's code for removing the days pruned that I added to my board. If you read painfool's reply he had the exact same problem. I guess I need to remove that hack.

#182111 09/13/2003 11:07 PM
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Do you have open_basedir restrictions like I do?

#182112 09/13/2003 11:10 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
Yep, I believe I do, removing the hack didn't help. I still get one day only. I fixed the error with the file creation though.

#182113 09/14/2003 8:19 AM
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
When I was having the problem, my cache % was around 4% and I was seeing r=nfx in my URLs. This was a problem with open_basedir restrictions and my ultbb.php not being able to read the members directory because it was in cgi-bin. I moved my members directory into a directory readable by my PHP script, and the cache percentages recovered.

One way to see what errors the accelerator is throwing is to comment Line 33 with // and uncomment line 34 which turns on all error reporting. This would show you if open_basedir restrictions are causing the UBB to not be able to read the members directory. Another way is to look for the nfx in the url.

I'm on Digital Princeton still, too.

Sponsored Links
#182114 09/14/2003 12:48 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
I was seeing exactly what you're saying.

#182115 09/14/2003 2:23 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
Sub, your suggestion was EXACTLY what I needed. I moved the folder and all is well. Thanks.

#182116 09/14/2003 2:56 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Wow! You guys solved the problem even Charles didn't know how to fix! I moved the Members dir out of the cgi dir at the accelerator works fine smile

#182117 09/14/2003 3:07 PM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
So it wasn't that mod causing the problem? We have a low % cache hit rate too, and I think this server has safe-mode on as well. The Members' directory is moved out of the cgi-bin direcotory.


- Allen wavey
- What Drives You?
#182118 09/14/2003 3:35 PM
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
It's not safe mode causing the Accelerator issues. It's open_basedir restrictions on the PHP. If the Members directory is not in a directory readable by PHP then you have the problems.

Note: Charles helped me solve this one last year around 6.4 smile

#182119 09/14/2003 8:14 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
I added the spider bait hack and all is well. I haven't had time to upgrade to 6.6 and this helps a lot. Thanks guys!

#182120 09/14/2003 10:10 PM
Joined: Jul 2003
Posts: 272
Member
Member
Offline
Joined: Jul 2003
Posts: 272
Quote
quote:
Originally posted by TheX:
I added the spider bait hack and all is well. I haven't had time to upgrade to 6.6 and this helps a lot. Thanks guys!
Is there a way to test whether I'll run into this problem too? How do I find out whether I have that restriction or not? Does the PHP test script report it.. or do I need to ask my hosting provider?

#182121 09/14/2003 11:17 PM
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
The test script reported that the server was running PHP in safe mode and that there *might* be problems. The best way to find out is enable it and test. It wont do any permanent damage so give it a try.

#182122 09/15/2003 12:28 PM
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
2 easy ways to check for open_basedir restrictions:

1) phpinfo() - look for open_basedir and see if you have a value
2) ini_get('open_basedir') - Assuming your host allows it, you can fetch the value in a script and echo it to yourself.


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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 75951
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 2
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)