Previous Thread
Next Thread
Print Thread
Hop To
#155406 10/05/2001 12:40 AM
Anonymous
Unregistered
Anonymous
Unregistered
Apparently, my ISP (Interland) will only let me run PHP scripts from inside my cgi-bin directory and only from the command line. (See below) Does this mean Interland has not installed the correct Apache module? Is there a way I can tell if they have installed the module but that it is improperly configured?

For example, I have to run scripts like this:
#!/usr/local/bin/php
<?
print("Hello world!n");
?>

Instead of like this:
<?PHP
print("Hello world!n");
?>

#155407 10/05/2001 12:44 AM
Anonymous
Unregistered
Anonymous
Unregistered
I'm asking about this PHP stuff in the context of trying to get the UBB 6.10 "accelerator" to work.

#155408 10/05/2001 12:54 AM
Anonymous
Unregistered
Anonymous
Unregistered
It sounds as though they have installed it as a CGI binary rhater then compiled it into Apache either static or as a DSO. They further have limited it's use to the cgi-bin.

It's pretty dogone restrictive but I don't know enough about it yet to say if this is good or bad. I would guess it's atypical but that's as far as I'll got for now.

At the moment you cannot use the UBB Accelerator. It is looking for the script in the non cgi directory but we might be able to do something in the arrangement to accomodate you. I'll look into it.

#155409 10/05/2001 4:18 AM
Anonymous
Unregistered
Anonymous
Unregistered
YOu'll need to make some minor tweaks.

Open ubb_lib.cgi in Notepad - inside you'll find references to $ULTIMATEBB, near the top.

One points towards the Perl script, one towards the PHP.

Alter the PHP one to use CGIURL, not NonCGIURL, then copy ultimatebb.php and vars_config.inc.php into the CGI directory.

You'll need to add the #! line to the ultimatebb.php script

It SHOULD work after that, assuming that PHP is sane. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

#155410 10/05/2001 4:40 PM
Anonymous
Unregistered
Anonymous
Unregistered
Do I need to add the #!/usr/local/bin/php
to the ubbaccel_test.php and vars_config.inc.php scripts too?

#155411 10/05/2001 4:44 PM
Anonymous
Unregistered
Anonymous
Unregistered
Quote
ubbaccel_test.php
Yes, if you like to use the UBB Accelerator test
Quote
vars_config.inc.php
No.

#155412 10/05/2001 4:47 PM
Anonymous
Unregistered
Anonymous
Unregistered
I did everything you guys said including modifying ubb_lib.cgi and copying ultimatebb.php, vars_config.inc.php and ubbaccel_test.php into the CGI dir but I'm still getting internal server errors. I also checked the permissions and they seem okay on those files.

I'll go ahead and open a support ticket.

http://www.infopop.com/cgi-bin/support/c...tware@yahoo.com

Interland sucks.

#155413 10/05/2001 4:52 PM
Anonymous
Unregistered
Anonymous
Unregistered
I'm not sure how much help we'll be... <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" />

#155414 10/05/2001 5:17 PM
Anonymous
Unregistered
Anonymous
Unregistered
Maybe you need to change the .php extension to .cgi:

Rename ultimatebb.php to ultimatebb2.cgi and change in ubb_lib:

$ULTIMATEBB = "$vars_config{NonCGIURL}/ultimatebb.php";

to

$ULTIMATEBB = "$vars_config{CGIURL}/ultimatebb2.cgi";

#155415 10/05/2001 5:46 PM
Anonymous
Unregistered
Anonymous
Unregistered
Why would that be the case? I can run scripts like test.php from my cgi-bin dir. I also found out that Interland will allow you to run scripts from any any dir. I must have had the permissions set wrong when I tested it.

#155416 10/05/2001 6:19 PM
Anonymous
Unregistered
Anonymous
Unregistered
That was just a idea <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

#155417 10/05/2001 6:19 PM
Anonymous
Unregistered
Anonymous
Unregistered
Interland is doing something screwy with the files....

#155418 10/05/2001 7:47 PM
Anonymous
Unregistered
Anonymous
Unregistered
I got it working. It appears that the permissions of the non-cgi directory were not set correctly.

What I did was:
1. Re-upload *.PHP files into non-cgi directory.
2. Re-upload ubb_lib.cgi into cgi directory.
3. Change permissions of non-cgi directory to 755. (Permissions of PHP files were already set to 755 ?!)
4. Insert #!/usr/lib/.../php into first line of ubbaccel_test.php and ultimatebb.test
5. PHP files now executed correctly.

One problem remains:
"Your PHP version is 4.06: OK
Your PHP version has zlib: No

Your PHP version will have no issues with the UBB Accelerator. There does not appear to be zlib support in this PHP version. The UBB Accelerator will be unable to use zlib compression."

I was under the impression if I have V4 or greater of PHP zlib was included. Is there a way I can add support for zlib?

#155419 10/05/2001 8:25 PM
Anonymous
Unregistered
Anonymous
Unregistered
As I noted via email, it has to be actually compiled in if you're on UNix.

#155420 10/07/2001 1:33 AM
Anonymous
Unregistered
Anonymous
Unregistered
FYI, the final solution to this involved creating a custom installation of PHP. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (1 invisible), 875 guests, and 141 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)