You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Devraj Mukherjee <de...@gmail.com> on 2010/01/01 00:15:17 UTC

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 <pm...@columbus.rr.com> 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.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> 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 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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] Getting PHP to work w Apache 1.3.41

Posted by Frank Gingras <fr...@gmail.com>.

Daniel Reinhardt wrote:
> 
> --------------------------------------------------
> From: "Paul McFerrin" <pm...@columbus.rr.com>
> Sent: 01 January, 2010 2:55
> To: <us...@httpd.apache.org>
> 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" <de...@gmail.com>
>>> Sent: 31 December, 2009 23:15
>>> To: <us...@httpd.apache.org>; <pm...@columbus.rr.com>
>>> 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 
>>>> <pm...@columbus.rr.com> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] Getting PHP to work w Apache 1.3.41

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
--------------------------------------------------
From: "Paul McFerrin" <pm...@columbus.rr.com>
Sent: 01 January, 2010 2:55
To: <us...@httpd.apache.org>
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" <de...@gmail.com>
>> Sent: 31 December, 2009 23:15
>> To: <us...@httpd.apache.org>; <pm...@columbus.rr.com>
>> 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 <pm...@columbus.rr.com> 
>>> 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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] Getting PHP to work w Apache 1.3.41

Posted by Paul McFerrin <pm...@columbus.rr.com>.
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" <de...@gmail.com>
> Sent: 31 December, 2009 23:15
> To: <us...@httpd.apache.org>; <pm...@columbus.rr.com>
> 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 
>> <pm...@columbus.rr.com> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] Getting PHP to work w Apache 1.3.41

Posted by Eric Covener <co...@gmail.com>.
On Thu, Dec 31, 2009 at 10:01 PM, Paul McFerrin
<pm...@columbus.rr.com> wrote:
> 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.

You have to build it, presumably from the top-level directory.

http://www.php.net/manual/en/install.unix.apache.php

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] Getting PHP to work w Apache 1.3.41

Posted by Paul McFerrin <pm...@columbus.rr.com>.
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" <de...@gmail.com>
> Sent: 31 December, 2009 23:15
> To: <us...@httpd.apache.org>; <pm...@columbus.rr.com>
> 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 
>> <pm...@columbus.rr.com> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] Getting PHP to work w Apache 1.3.41

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
--------------------------------------------------
From: "Devraj Mukherjee" <de...@gmail.com>
Sent: 31 December, 2009 23:15
To: <us...@httpd.apache.org>; <pm...@columbus.rr.com>
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 <pm...@columbus.rr.com> 
> 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 <URL:http://httpd.apache.org/userslist.html> 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