httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Williams" <ro...@roger.jp>
Subject RE: Apache2 and PHP
Date Sun, 07 Apr 2002 04:14:53 GMT
$ cd /usr/local/apache_1.3.x
$ ./configure

$  cd /usr/local/
Here is what I do.  Of course you will need update the version numbers to
what you are trying to install.

Roger

GOOD LUCK

$ gunzip -d php-4.0.3.tar.gz | tar xf -


$ 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" <rpyne@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


Mime
View raw message