Solved

make apache support php

Posted on 2000-04-29
3
233 Views
Last Modified: 2009-07-29
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
Comment
Question by:ahchong
3 Comments
 

Accepted Solution

by:
hardsword earned 55 total points
ID: 2762994
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
 
LVL 8

Expert Comment

by:us111
ID: 2763561
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
 

Author Comment

by:ahchong
ID: 2763631
Adjusted points from 20 to 55
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question