note 36771 deleted from install.unix by bjori
| From: | bjori@php.net | Date: | Wed, 22 Mar 2006 19:41:43 +0000 |
| Subject: | note 36771 deleted from install.unix by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106333@lists.php.net to get a copy of this message | ||
Note Submitter: jmruiz at esprov dot net
----
The following is a modified version of Doc Nielsen's script. The issue I had was that $prefix
needed to be different for the "php" and the "thttpd" parts. So it had to be
set twice. The first value is the base directory were you want the "php directory installed, in
my case "/usr". The second has to be the DocumentRoot of you http server, in my case
"/var/www". There is something else to pay attention to. If you are going to use mysql for
other modules not included in the released source, you must use the directive --with-mysql (see last
parameter of the first config). Good luck.
#!/bin/sh
echo ********************************************
echo ** extracting and installing - php part **
echo ********************************************
prefix="/usr"
mysql_dir="/usr/local/mysql"
tar jxf php-4.3.3.tar.bz2
tar zxf thttpd-2.21b.tar.gz
cd php-4.3.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
--with-mysql=$mysql_dir
make all install
echo ********************************************
echo ** extracting and installing - thttpd part**
echo ********************************************
cd ../thttpd-2.21b/
prefix="/var/www"
./configure --prefix=$prefix
make all install