configuring php with apache
Moderator: General Moderators
-
cubanallstar
- Forum Newbie
- Posts: 4
- Joined: Wed Sep 03, 2003 5:31 am
- Location: Madchester, UK
configuring php with apache
hi guys ive run into some problems getting php to work on apache. Running redhat 7.2 OS and have started up apache and downloaded php 4.3.3 off php.net successfully. Ive also extracted the php download although im not too sure if this was successful as I got no message status, presume it went ok tho?! Im completly new to linux and have only been using it for about a week now, so still trying to find my feet. I really dont know what to do here so need you all to share the wealth!
regards
cubanallstar
-
cubanallstar
- Forum Newbie
- Posts: 4
- Joined: Wed Sep 03, 2003 5:31 am
- Location: Madchester, UK
With reference to the following heading in the above linked tutorial:
Making the Web Server Understand PHP Files
The files that were suggested did not exist Really quite unsure to whether I actually downloaded the php source properly. I mean the only other alternative that seems straight4ward at the mo would be to uninstall apache and to install a whole package containing apache and php, similar to the one suggested in the above link
??
Making the Web Server Understand PHP Files
The files that were suggested did not exist Really quite unsure to whether I actually downloaded the php source properly. I mean the only other alternative that seems straight4ward at the mo would be to uninstall apache and to install a whole package containing apache and php, similar to the one suggested in the above link
??
Isn't that enough?Redhat 7.2
Install the apache-devel RPM.
./configure --with-apxs=/usr/sbin/apxs
make && make install
httpd.conf should have the following:
LoadModule php4_module modules_folder/libphp4.so
AddModule mod_php4.c
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
</IfModule>
/etc/rc.d/init.d/httpd restart
-
cubanallstar
- Forum Newbie
- Posts: 4
- Joined: Wed Sep 03, 2003 5:31 am
- Location: Madchester, UK