faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL : Questions in search of an Answer

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 18 people (50%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Configure can't find httpd.h yet it is where I said it is. I tried changing the path to httpd.h but that didn't work.

Jun 29th, 2003 09:47
suresh kc, Elizabeth Olule, Onno Benschop,


I found the same problem. tried everything from search engine nothing 
worked.
what i noticed though is - apache1.2* has src/include folder
apache 1.2*
/usr/local/apache/src/include/httpd.h
so it also tries to look at whatever top apache directory name you 
gave, followed by src/include
If your path was /usr/local/apache2/
then it tries to look for httpd.h file 
in /usr/local/apache2/src/include/
but apache2 doesn't have that folder
hence the error.
here is the solution
cd /usr/local/apache2/
mkdir src
cd src
mkdir include
cd ..
cp include/*.* src/include/
then go back to php folder.
then write the command
./configure --with-apache=/usr/local/apache2/
Done!