|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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?
|
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
|
Admin Emeritus
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.
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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?
|
|
|
|
|
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?
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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.
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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.
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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.
|
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
|
Admin Emeritus
Joined: Nov 2001
Posts: 745 |
Do you have open_basedir restrictions like I do?
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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.
|
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
|
Admin Emeritus
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.
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,848 |
I was seeing exactly what you're saying.
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,848 |
Sub, your suggestion was EXACTLY what I needed. I moved the folder and all is well. Thanks.
|
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
|
Master Hacker
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 
|
|
|
|
|
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.
|
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
|
Admin Emeritus
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 
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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!
|
|
|
|
|
Joined: Jul 2003
Posts: 272
Member
|
|
Member
Joined: Jul 2003
Posts: 272 |
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?
|
|
|
|
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
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.
|
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
|
Admin Emeritus
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.
|
|
|
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.
|
|
Posts: 808
Joined: July 2001
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 75951
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 2
|
|
|
|