You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Roger Williams <ro...@roger.jp> on 2002/04/07 06:17:00 UTC
RE: Apache2 and PHP Better..lol
## ---- PHP BUILD ---- ##
Once your at this point copy the two directories in /usr/src to /usr/local.
$ cd /usr/local/apache_1.3.x
$ ./configure
$ cd /usr/local/
$ gunzip -d php-4.0.3.tar.gz | tar xf -
Here is what I use. You need to update the version numbers for your needs.
Roger
Good luck
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install
$ cd ../php-4.0.x
$ cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options.
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php
$ cd /usr/local/apache_1.3.x
./configure --prefix=/var/www
--enable-suexec
--suexec-userdir=virtual_html/cgi-local
--suexec-docroot=/var/www/htdocs
--with-perl=/usr/bin/perl
--add-module=/usr/local/apache_1.3.20/src/modules/standard/mod_s
o.c
--activate-module=src/modules/php4/libphp4.a
--activate-module=src/modules/frontpage/mod_frontpage.o
make
make install
adduser www:www
modify httpd.conf to start as www.
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php
/var/www/bin/apachectl start
Thats It !!!!!
-----Original Message-----
From: James Harr [mailto:james@grickle.org]
Sent: Saturday, April 06, 2002 11:03 PM
To: users@httpd.apache.org
Subject: Re: Apache2 and PHP
I believe php has a plugin for it. Look in the readme under 'plugins/apxs2'
or 'plugins/apache2' or something like that. The option is something along
the lines of --with-apxs2='path-to-apxs-for-apache-2.x'. PS - make sure you
include all the cool stuff into apache (not just basics). Like png, libgd
and whatnot.
Later,
jh
On Sat, 6 Apr 2002 13:57:10 -0700
"Richard B. Pyne" <rp...@kinfolk.org> wrote:
> Has anyone installed Apache 2 with PHP? I am anxious to
> move to httpd-2.0.35, but in my ignorance, I can't see
> how to add PHP to the system.
>
> Thanks in advance for any tip or help.
>
> --Richard
>
> ------------------------------
> Richard B. Pyne, NZ7K
> rpyne@kinfolk.org
> http://pyne.kinfolk.org/rbp2
>
>
>
> ---------------------------------------------------------------------
> 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
> 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
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
For additional commands, e-mail: users-help@httpd.apache.org