note 34984 deleted from install.unix by nlopess
| From: | nlopess@php.net | Date: | Sun, 15 Aug 2004 01:56:45 +0000 |
| Subject: | note 34984 deleted from install.unix by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74670@lists.php.net to get a copy of this message | ||
Note Submitter: Doc Nielsen ( Doc at DocNielsen dot DK )
----
My little script for compiling thttpd with php
works well on my debian system, though the path and/or --prefix may need to be set to /usr
#!/bin/sh
prefix="/usr/local"
rm -rf php-4* thttpd-2.*
wget http://www.php.net/distributions/php-4.3.2.tar.bz2
tar jxf php-4.3.*.tar.bz2
wget http://www.acme.com/software/thttpd/thttpd-2.21b.tar.gz
tar zxf thttpd-2.21b.tar.gz
cd php-4.3.*/
./configure --prefix=$prefix --with-thttpd=../thttpd-2.21b --with-config-file-path=$prefix/lib/php
--with-zlib --with-bz2 --with-gd --with-ttf --with-mysql
--with-mysql-sock=/var/run/mysqld/mysqld.sock --disable-rpath --disable-ipv6 --enable-static
--enable-roxen-zts --enable-track-vars --enable-force-cgi-redirect --with-gettext
make all install
cd ../thttpd-2.21b/
./configure --prefix=$prefix
make all install
/etc/init.d/thttpd stop
/etc/init.d/thttpd start