Solved

Installing PHP into Apache 2

Posted on 2003-10-21
5
303 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
ID: 9594002
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
ID: 9597757
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
ID: 9605662
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
ID: 12119246
PAQed, with points refunded (250)

Computer101
E-E Admin
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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