Solved

Installing PHP into Apache 2

Posted on 2003-10-21
5
301 Views
Last Modified: 2010-03-04
I have downloaded and installed Apache2 but can't seem to get PHP to install.

I want all the XML functions and obviously mySQL.

Each time on php install I put
./configure --with-mysql --with-apxs=/usr/local/apache2/bin/apxs --with-xml

but I don't get anything in the modules directory ?

How do I install it !
0
Comment
Question by:tombentley
  • 2
5 Comments
 
LVL 4

Expert Comment

by:kalosi
Comment Utility
Do you run make and make install after configure ??

Just to make thing clear I don't know how familiar are you with the UNIX build environment but theese are the steps you should follow.


1) run the configure script with the options you want to enable, eg ./configure --with-mysql --with-apxs=/usr/local/apache2/bin/apxs --with-xml

2) type make to compile and build the php library
3) make install installs the libraries and configuration files.

david.
0
 

Author Comment

by:tombentley
Comment Utility
I have done that make and configure in PHP.

I then start Apache2  /usr/local/apache2/bin/apachectl start

But it won't run PHP. I have tried altering the httpd.conf to run PHP - but the advice I was following didn't seem to work. It referenced the modules folder - which I assume is the one in the apache dir. This didn't have any php module in after the make and build. I still have the old copy of apache 1.3 somewhere - do you think it is installing into that ?
0
 

Author Comment

by:tombentley
Comment Utility
done it now - for some reason it didn't build properly. A make clean did the job
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed, with points refunded (250)

Computer101
E-E Admin
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

9 Experts available now in Live!

Get 1:1 Help Now