Click to See Complete Forum and Search --> : PHP install on unix


Anon
05-08-2001, 07:21 AM
HI ALL

Well I have just installed apache 1.3.XX on my Unix sever which so no I want to install php 4.0.4.

I have followed the instruction manual but I get an error which say it cant find the httpd.h file when I configure it with apache and mysql I have found where the httpd.h file is and have put the path in (--with-apache=~/usr/apache/include) but it say it can not find it at the moment I do not have mysql installed but will do that after I have in stalled php

Regards

Mark

vincente
05-08-2001, 07:36 AM
Use the complete path, not the ~/usr/ path.

Anon
05-08-2001, 07:58 AM
done that still does not work!!!!!!!!! still have the same problem!!!!


thanks any way

Anon
05-09-2001, 01:44 PM
do --with-apache=/usr/apache or whereever the apache package is extracted under. it will look under the include directory for the correct libraries and headers.

Anon
05-11-2001, 06:24 PM
Yo,
Make sure you have the apache source that you compiled it from on the box, or the apache-devel rpm.

Try --with-apache=~usr/apache
It needs the root where the libs and header files live, so aiming it at /include will confuse configure since it automagically knows to check /include. It is looking for /apache/include/include the way you are doing it.

Or, if you are using DSO use the
--with-apxs=/usr/local/apache/bin/apxs

(or wherever apxs is)
in your configure directives.
DSO is the way if you don't have the source. Just did this myself.

Do a
locate -u; locate apxs

and find out if it is there. If there is multiple copies verify that the one you are using is the correct one. I was just installing this on a box where some bonehead had 3 apache installations. *&^%#&$@
Damn the packrats!

Had to ps -jef to figure out where it was running from after 20 minutes of wondering why php wouldn't work!
L8,
Neil