Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help installing PHP

Status
Not open for further replies.

capitano

Programmer
Jul 30, 2001
88
0
0
US
I'm having trouble installing php4.1.2 on Linux 7.1 (RedHat). I'm following the instructions to the "T" but when I try running a test.php page, it just spits the output to the screen:

<?phpinfo();?>

In other words, It doesn't actually process the php code. What's up?

I'm doing this:
./configure --with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php.ini

finally, I made sure this line was in httpd.conf:
AddType application/x-httpd-php .php

And restarted web server:
'service httpd restart'

But still, nothing......
It still doesn't process PHP pages.

HELP!!!!

Bryan
 
Hi,

You also need in httpd.conf :

LoadModule php4_module modules/libphp4.so

AddModule mod_php4.c

(Assuming the libphp4.so module is in the normal redhat modules subdirectory - redhat normally place these modules in /usr/lib/apache and symbolically link to there from /etc/httpd/modules)


Hope this helps





 
If your using an RPM ditribution like Red Hat...why not get the RPMS?
 
Thank you. I have made sure those lines were in httpd.conf. They are. However, it doesn't look like libphp4.so was installed onto my system anywhere during the php4.1.2 installation. I can't find it after updatedb and locate.

Also, I cannot find that apxs script in my filesystem. Which is why i didn't use the --with-apxs flag. Where can I get this apxs thing?

Thanks for the help!

Bryan

 
Hi,

Oddly enough, on redhat its in the apache-devel rpm for some unknown reason - so you need to install that for apsx (/usr/sbin/apsx).

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top