httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Reinhardt" <>
Subject Re: [users@httpd] Getting PHP to work w Apache 1.3.41
Date Fri, 01 Jan 2010 04:05:55 GMT

From: "Paul McFerrin" <>
Sent: 01 January, 2010 2:55
To: <>
Subject: Re: [users@httpd] Getting PHP to work w Apache 1.3.41

> Well yes & no.  I'm having to build PHP4 myself.  Instructions for installing 
> SAPI are not clearly written.  That's been my hard part.  Does not matter PHP4 
> or PHP5.  There is always a road-block.
> Daniel Reinhardt wrote:
>> --------------------------------------------------
>> From: "Devraj Mukherjee" <>
>> Sent: 31 December, 2009 23:15
>> To: <>; <>
>> Subject: Re: [users@httpd] Getting PHP to work w Apache 1.3.41
>>> You need to add something like
>>> AddType application/x-httpd-php .php
>>> to your Apache configuration file. You are also likely to get more
>>> information regarding this on the PHP resource centres.
>>> Also is there a reason you aren't choosing Apache 2.x + PHP5?
>>> On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin <>

>>> wrote:
>>>> I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
>>>> enough to tie things in as a fastcgi.  What other files have to be 
>>>> modified?
>>>> Where does PHP4 have to be installed?  Can someone tie things in for me.
>>>> seemed to so close but yet so far.
>>>> Rightnow my .php file jst downloads the contents.
>> Is PHP compiled to run with Apache?

Try this configure script:

./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr --libdir=/usr/lib --with-libdir=lib

 --sysconfdir=/etc --disable-safe-mode --disable-ipv6  --with-libexpat-dir=/usr  
--disable-magic-quotes --enable-zend-multibyte --enable-mbregex --enable-tokenizer=shared

 --with-config-file-scan-dir=/etc/php --with-config-file-path=/etc/httpd --enable-mod_charset

 --with-layout=PHP --enable-sigchild --enable-xml --with-libxml-dir=/usr --enable-simplexml

 --enable-spl --enable-filter --disable-debug --with-openssl=shared --with-pcre-regex=/usr

 --with-zlib=shared,/usr --enable-bcmath=shared --with-bz2=shared,/usr --enable-calendar=shared

 --enable-ctype=shared --with-curl=shared --with-curlwrappers --with-mcrypt=/usr 
 --enable-dba=shared --with-gdbm=/usr --with-db4=/usr --enable-dbase=shared --enable-exif=shared

 --enable-ftp=shared --with-gd=shared --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr

 --with-xpm-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr --enable-gd-native-ttf 
 --enable-gd-jis-conv --with-gettext=shared,/usr --with-gmp=shared,/usr --with-iconv=shared

 --with-imap-ssl=/usr --with-ldap=shared --enable-mbstring=shared --enable-hash  
--with-mhash=shared,/usr --with-mysql --enable-pdo=shared --with-pdo-mysql=shared,/usr 
 --with-pdo-sqlite=shared --with-pspell=shared,/usr --with-mm=/usr --enable-shmop=shared 
 --with-snmp=shared,/usr --enable-soap=shared --enable-sockets --with-sqlite=shared 
 --with-regex=php --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx=shared

 --with-xsl=shared,/usr --enable-zip=shared --with-tsrm-pthreads --enable-shared=yes 
 --enable-static=no --with-gnu-ld --with-pic

Its for Apache 2.xx you may have to change a few of the options, and the 

Apache 2.xx series is much easier and more supported.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message