[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php postgres apache howto?



* Lance Hoffmeyer (lance@augustmail.com) [Dec 30. 2001 17:31]:

> Is there a Howto or docs on this subject?
> I have heard it is rather difficult to set
> this stuff up.

Not at all. Assuming you don't want to install this stuff with apt-get:

wget php 4.1.0, upack it into /usr/local/src
wget apache 1.3.22, unpack it into /usr/local/src
install postgres with apt-get or wget it and install it first.

This is very basic, but it should get it installed.

[tab] means literally hit tab, and assuming you do not have apache
already installed:

$ cd /usr/local/src/php[tab]
$ ./configure --with-apache=../apa[tab] --with-pgsql=/usr

(if you installed postgres from non-debian sources,
--with-pgsql=/usr/local)

$ su 
# make install
# exit
$ cd ../apache[tab]
$ ./configure \
--server-uid=www \
--server-gid=www \
--activate-module=src/modules/php4/libphp4.a
$ su 
# make install
# groupadd www
# useradd www
# exit

Then make sure the ouput of `/path/to/httpd -l' includes mod_php

If apache is already installed, replace --with-apache=/path in PHP's 
configure with --with-apxs (with no path) and `make install' for PHP
should install PHP as a shared module instead.

If you installed apache from non-debian source, use /etc/init.d/skeleton
to create your own rc script for it. Then use update-rc.d to install it. 

man 8 update-rc.d
 
-- 
Brian Clark | Debian GNU/Linux: 3950 packages to keep you busy.
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Fortune cookie: Outlook not so good, Microsoft ships anyway.



Reply to: