Solved

make apache support php

Posted on 2000-04-29
3
220 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
Comment Utility
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
Comment Utility
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
Comment Utility
Adjusted points from 20 to 55
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now