Inastalling andCompiling Apache + Php4...

liunx

Guest
Ok, im having a little bit of trouble getting php to work on my server

Ive been using this tutorial to help me through the process: <!-- m --><a class="postlink" href="http://vbulletin.com/manual/apache.html">http://vbulletin.com/manual/apache.html</a><!-- m -->

Ive tried several times, and when i go to run a php script, i get "500 Internal Server Error". Any suggestions?

I am running Red Hat 7.1
Apache 1.3.20
Php 4.0.6

Please Help :(I forgot a few things,

I went and dug up my error log, and thias is what it said

[Sun Jul 1 10:35:58 2001] [error] [client xx.xx.xxx.xxx] file permissions deny server execution: /usr/local/apache/cgi-bin/vbulletin/admin/install.php
[Sun Jul 1 10:36:20 2001] [error] (8)Exec format error: exec of /usr/local/apache/cgi-bin/vbulletin/admin/install.php failed
[Sun Jul 1 10:36:20 2001] [error] [client xx.xx.xxx.xxx] Premature end of script headers: /usr/local/apache/cgi-bin/vbulletin/admin/install.php

The script i was trying to run can be found here <!-- m --><a class="postlink" href="http://kinetikclone.com/cgi-bin/vbulletin/admin/install.phpare">http://kinetikclone.com/cgi-bin/vbullet ... all.phpare</a><!-- m --> bolth PHP and Apache in a common directory/ /usr/local

Did you unpack tar-xvfphp-4.0.6pl1.tar
and tar-xvfapache_1.3.14.tar correctly

when you ran the configuration for Apache did it install properly
(Apache configuration) cd../apache_1.3.14./configure-prefix=/www

Did Php configure
the configuration on that one depends on you

did you <b>make</b>
<b>make instal</b>
those comands configure PHP to be usable by Apache

make and instal Apache

Copy php.ini to new location
cp/usr/local/php-4.0.6l1/php.ini-dist/usr/local/lib/php.ini
In order for Apache to work it must be copied to the proper directory

start Apache
test
<!-- m --><a class="postlink" href="http://localhost/">http://localhost/</a><!-- m -->

run test.php

<HTML>
<HEAD>
<TITLE> Test My PhP</TITLE>
</HEAD>
<BODY>
<?PHP
phpinfo();
?>
</BODY>
</HTML>
 
Back
Top