Previous Thread
Next Thread
Print Thread
Hop To
#163616 02/05/2004 4:26 AM
Joined: Jan 2004
Posts: 3
D
stranger
stranger
D Offline
Joined: Jan 2004
Posts: 3
Hi!

If I have the php accelerator turned on, it works fine, except when at "today's active topics" I try to change pages, it won't change the page, instead puts "&r=npwm" on the end of the URL.

so instead of
http://www.disputa.ro/cgi-bin/disputa/ultimatebb.cgi?ubb=get_daily;p=2

I get

http://www.disputa.ro/cgi-bin/disputa/ultimatebb.cgi?ubb=get_daily&r=npwm

I've gotten so far with my searches, that this means "no password match" in the php, I just don't know what to do about it, since otherwise UBB logs me in, the password is correct etc.

Logging out/in, clearinc cache, cookies etc. does not help.

Although the string apears in the URL elswhere too, it only seems to cause trouble on this particular page (todays active topics).

#163617 02/05/2004 9:26 AM
Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
I noticed that your host is running PHP in Safe Mode. Judging by the error, I'd be willing to bet that your host is also using open_basedir restrictions, and your Members directory is in cgi-bin. This causes the accelerator to not be able to read member records.

The solution to this would be to move your members directory inside your noncgi folder.

#163618 02/05/2004 1:16 PM
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
If you do move your Members directory inside your NonCGI, please be sure to give it an obscure name. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
#163619 02/05/2004 3:46 PM
Joined: Jan 2004
Posts: 3
D
stranger
stranger
D Offline
Joined: Jan 2004
Posts: 3
Thanks, it looks like you're right with the open_basedir restrictions.

I'll try to do something about those first (I'll see if my host is willing do something about it, or not) before moving the Members folder <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

#163620 04/13/2004 2:36 PM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
I had a similar issue here... however this was the reply i got from my web provider:

Quote
Safe mode is not set to any directory unless specified. As the safe mode base directory now includes your document root you should no longer received any safe mode errors.
so.. technically - the cgi-bin folder isn't being touched by this restriction .. correct??

my webspace is setup:

&#0124;
&#0124;---cgi-bin
------&#0124;-Members
&#0124;--Webdocs

I'm thinking that they put the restriction on just webdocs.

NOw - before - they had the restriction on my entire webspace... but what's happening with me now is .. sometimes I get an output of text - suggesting that my provider has not activated PHP - and other times, when going to www.astelbania.com/ubb/ultimatebb.php - it just returns a 404 error .. then.. I close out my browser... go back to the site.. and it works... and I can click on a few of the forum threads.. and then almost at random - another output of Text...

If i click on the Forum Home link - 404 error..

Odd yes?

Suggestions?

#163621 04/13/2004 3:15 PM
Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
The easiest way to test to see if your provider has PHP enabled, and what version is to create a text file containing:
Code
<? phpinfo(); ?>
Save it as phpinfo.php, upload and execute. This will tell you if PHP is enabled, the version, and the configuration of PHP.

Safe Mode is NOT the cause of the error from earlier in the topic. The problem is the open_basedir restrictions prevent ultimatebb.php from seeing the cgi-bin directory because they are not in the same directory.

If you are getting 404 errors, and the PHP isn't even parsing, then your host has some problems with their server. 404 implies that the file has been moved/deleted. If you see that Whoops! Message that is in the comments at the beginning of ultimatebb.php, then your provider either has PHP disabled, or not correctly installed.

#163622 04/13/2004 3:28 PM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
ok..
with the test file.. this is the output..

UBB.classic Accelerator Test
Your PHP version is 4.2.2: OK
Your PHP version has zlib: Yes
Your PHP version has the md5() function: Yes
UBB.classic Accelerator should have no issues under this version of PHP. zlib compression is installed and will be used.

The file is most definately there.. because - sometimes it works!! Sometimes - at random - it does not! I get a code page. On top of that.. the other links using the ultimatebb.php file work - only the direct link does not from within the forums...

now.. i seem to only get these problems when I'm logged in... could this be an issue where i have to move the Members directory into my ubb(noncgi) directory?

http://www.astelbania.com/ubb/ultimatebb.php

If you click that - it may work.. it may not.. but i'll guarantee that it's there..

#163623 04/13/2004 3:41 PM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
For you to test.. i have created account for you

http://www.astelbania.com/cgi-bin/ultimatebb.cgi


ubbtest
password

.. It is only temporary.

#163624 04/13/2004 3:51 PM
Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
I duplicated the Text Problem. It shows the text because PHP was unable to parse the page for some reason. For that you would need to contact your host.

About the 404-Not Found, To troubleshoot that, You would need to look at the error_log file to determine what is causing the error.

#163625 04/13/2004 3:53 PM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
thanks Ron...
What should I tell them.. i would like to be as detailed as possible so that they can have as much to work with as possible..

I think if we solve one - we'll solve the other.

#163626 04/13/2004 4:00 PM
Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
I think I have figured out your problem with the 404 errors. This looks like a bug with changes made for spider friendly.

I'm guessing if you look in your error logs you will see http://www.astelbania.com/cgi-bin/ultimatebb.cgi&r=npwm which will generate a file not found error. To fix this, change line 689 of the ultimatebb.php from
$location = figurelocation();
to
$location = figurelocation(1);

#163627 04/13/2004 5:06 PM
Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
Re: http://www.astelbania.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=000011;p=1&r=npwm#000003

It is best to let the UBB call ultimatebb.php as it needs to. It isn't necessary to change your bookmarks <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

#163628 04/13/2004 6:47 PM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
Thanks Ron - you've been incredibly helpful!

I'll work on that tonight!

#163629 04/14/2004 9:44 AM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
Ron - hello..
Using SlickEDIT and editting the ultimatebb.php - i'm on line 689 and it's the "Get_ip" function...

ie:

function get_ip () {
$ipaddr = find_environmental("REMOTE_ADDR");
if ($ipaddr == "127.0.0.1" && find_environmental("HTTP_X_FORWARDED_FOR") != "")
[line 689]---> $ipaddr = find_environmental("HTTP_X_FORWARDED_FOR");

and as you know - there are many "$location = figurelocation();"

#163630 04/14/2004 9:48 AM
Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
Search for npwm in the code. Change the figurelocation right above it.

#163631 04/14/2004 10:32 AM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
Awesome !! Thank you... I've addressed that.. seems to work ok now..

All i have to figure out now is the parsing issues with the Webprovider.. they are equally being helpful -- so hopefully I'll have this resolve..

When i get news from them.. I'll post it here for the benefit of the Forum.

Cheers..

#163632 04/14/2004 11:20 AM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
Well, I received an email from my webprovider and he informs me that :

Quote
As far as safe mode is concerned, your safe mode is disabled and the open_basedir is set correctly
so far.. no more errors..

My web provider is great for making really good consessions for good customers - i'd happily endorse them if anyone wants to contact me seperately from the forums..

Thanks Ron for your help and insight - i learned a lot!!!

Cheers

#163633 04/14/2004 1:20 PM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
Just when you think it's all ok..

I still get the large pages of code, Ron -- but if i refresh it ... it works...

With safemode disabled... ???? What can it be??

Any ideas??

#163634 04/14/2004 3:17 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Do you have ssh access? If so, go to your noncgi directory and type: chmod +x ultimatebb.php

It's how I had to fix it a few times on a differant servers doing support; it should work for you.


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!
#163635 04/15/2004 9:36 AM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
Ya.. Ok.. I'll try that - right now my permissions are 755 !!! I'll put it to 777 - but the ultimatebb.php had execute rights ...*shrugs* i'll try anything for now..

#163636 04/15/2004 3:21 PM
Anonymous
Unregistered
Anonymous
Unregistered
Yeah, I don't know why he did that, but one of the times he did it, it was for my site and it worked like a charm <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

#163637 04/15/2004 4:11 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Your ultimatebb.php should be chmod 644, use the chmod +x to give it execute access, otherwise it won't work. I can update it for you if you'd like... It's just what I've had to do on certain boards.


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!
#163638 04/16/2004 9:53 AM
Joined: Mar 2004
Posts: 18
B
stranger
stranger
B Offline
Joined: Mar 2004
Posts: 18
well.. with chmod 777 permissions.. it HAS everything - including execute (the 7 marks execute rights). so already - the php file has execute permissions...

so if like you say - the file should have 644 - then effectively - there are no execute rights on the owner, group or the world...

744 - owner has execute rights.. - world and group - has r/w

so my original permissions for the file was to have everyon - world, owner and groups - to have execute - and this made the effect chmod to 755 - which is what i've had all along.


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), 458 guests, and 91 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)