Getting PHP to work w Apache 1.3.41
Getting PHP to work w Apache 1.3.41
am 31.12.2009 22:17:25 von Paul McFerrin
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. I seemed to so close but yet so far.
Rightnow my .php file jst downloads the contents.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Getting PHP to work w Apache 1.3.41
am 01.01.2010 00:15:17 von Devraj Mukherjee
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 w=
rote:
> 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. =A0What other files have to be modi=
fied?
> Where does PHP4 have to be installed? =A0Can someone tie things in for me=
.. =A0I
> seemed to so close but yet so far.
>
> Rightnow my .php file jst downloads the contents.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--=20
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Getting PHP to work w Apache 1.3.41
am 01.01.2010 01:52:40 von Daniel Reinhardt
--------------------------------------------------
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. I
>> seemed to so close but yet so far.
>>
>> Rightnow my .php file jst downloads the contents.
>>
Is PHP compiled to run with Apache?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Getting PHP to work w Apache 1.3.41
am 01.01.2010 03:55:45 von Paul McFerrin
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. I
>>> seemed to so close but yet so far.
>>>
>>> Rightnow my .php file jst downloads the contents.
>>>
>
> Is PHP compiled to run with Apache?
>
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Getting PHP to work w Apache 1.3.41
am 01.01.2010 04:01:57 von Paul McFerrin
I'm sure these is more to add to webserver. In my directory:
sapi/apache there are:
CREDITS libphp4.module.in mod_php4.h php_apache_http.h
apMakefile.libdir php.sym sapi_apache.c
apMakefile.tmpl mod_php4.c php4apache.dsp
config.m4 mod_php4.exp php_apache.c
But no instructions.
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. I
>>> seemed to so close but yet so far.
>>>
>>> Rightnow my .php file jst downloads the contents.
>>>
>
> Is PHP compiled to run with Apache?
>
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Getting PHP to work w Apache 1.3.41
am 01.01.2010 04:34:25 von Eric Covener
On Thu, Dec 31, 2009 at 10:01 PM, Paul McFerrin
wrote:
> I'm sure these is more to add to webserver. =A0In my directory: sapi/apac=
he
> there are:
>
> CREDITS =A0 =A0libphp4.module.in =A0 =A0 =A0 mod_php4.h =A0 =A0 =A0php_ap=
ache_http.h
> apMakefile.libdir =A0 =A0 =A0 php.sym =A0 =A0 =A0 =A0 sapi_apache.c
> apMakefile.tmpl =A0 =A0mod_php4.c =A0 =A0 =A0 =A0 php4apache.dsp
> config.m4 =A0 =A0 =A0 =A0 =A0mod_php4.exp =A0 =A0 =A0 php_apache.c
>
> But no instructions.
You have to build it, presumably from the top-level directory.
http://www.php.net/manual/en/install.unix.apache.php
--=20
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Getting PHP to work w Apache 1.3.41
am 01.01.2010 05:05:55 von Daniel Reinhardt
--------------------------------------------------
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. I
>>>> 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
directories.
Apache 2.xx series is much easier and more supported.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Getting PHP to work w Apache 1.3.41
am 01.01.2010 07:17:23 von Frank Gingras
Daniel Reinhardt wrote:
>
> --------------------------------------------------
> 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. I
>>>>> 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
> directories.
>
> Apache 2.xx series is much easier and more supported.
>
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
No, you don't want to use AddType.
Read this:
http://wiki.apache.org/httpd/PHPDownload
Frank.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org