note 36771 added to install.linux
| From: | jmruiz at esprov dot net | Date: | Tue, 21 Oct 2003 23:55:41 +0000 |
| Subject: | note 36771 added to install.linux | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59087@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/install.linux.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36771
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36771&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36771&report=yes
Search -- http://master.php.net/manage/user-notes.php