Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

make apache support php

hello, how can I configure my apache web server (I am using Redhat Linux) so that it can support php3 ? (I have downloaded php3)
0
ahchong
Asked:
ahchong
1 Solution
 
hardswordCommented:
configure your apache web server:)
1.  gunzip apache_1.3.x.tar.gz
2.  tar xvf apache_1.3.x.tar
3.  gunzip php-3.0.x.tar.gz
4.  tar xvf php-3.0.x.tar
5.  cd apache_1.3.x
6.  ./configure --prefix=/www
7.  cd ../php-3.0.x
8.  ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9.  make
10. make install
11. cd ../apache_1.3.x
12. ./configure --prefix=/www --activate-module=src/modules/php3/libphp3.a
13. make
14. make install
  Instead of this step you may prefer to simply copy the httpd binary overtop
  of your existing binary.  Make sure you shut down your server first though.
15. cd ../php-3.0.x
16. cp php3.ini-dist /usr/local/lib/php3.ini
You can edit /usr/local/lib/php3.ini file to set PHP options.
If you prefer this file in another location, use --with-config-file=/path in step 8.
17. Edit your httpd.conf or srm.conf file and add:
     AddType application/x-httpd-php3 .php3
  You can choose any extension you wish here.  .php3 is simply the one we suggest.  
18. Use your normal procedure for starting the Apache server.  

0
 
us111Commented:
Or if you have some problem with
compilation goto
http://www.redhat.com/
download and install the RPM packages for Apache, PHP3 and MySQL.
0
 
ahchongAuthor Commented:
Adjusted points from 20 to 55
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now