I am using Red Hat Enterprise Linux 4. I followed the Wiki instructions as best I could and went through it twice to recorded exactly what I did:
1# rm -rf php-4.4.2 (if present, start from scratch)
2# tar -xzvf php-4.4.2.tar.gz
3# cd php-4.4.2
4# wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-2.1.tgz
5# tar -xzvf php-litespeed-2.1.tgz
6# cd .. (This is skipped because it produces an error in step 8)
7# touch ac*
8# ./buildconf --force (if 6 above is not skipped, the following error is produced: -bash: ./buildconf: No such file or directory)
9# ./configure --with-litespeed --with-config-file-path=../conf --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-sqlite --enable-sqlite-utf8 --with-zlib --with-zlib-dir --with-bz2 --with-gd --enable-gd --enable-gd-native-ttf --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-ttf --with-freetype-dir=/usr/local/include --with-iconv=/usr/local --with-curl=/usr/local --enable-track-vars --with-gettext --enable-trans-id --enable-ftp --enable-mbstring --with-openssl=/usr/local --with-dom
10# make
11# make install
12# cd /usr/local/lsws/fcgi-bin/
13# mv lsphp lsphp.old
14# cp /usr/local/bin/php lsphp
15# cd ..
16# fcgi-bin/lsphp -v
Step 16 tests it and shows that litespeed is not present:
After restarting the server, I try to run phpinfo.php, which used to work, but now it times out.
I'm good at following directions, though I don't know some of the things that are going on. Perhaps some of the minor improvising I did, such as the one to prevent the error message in step 8 caused the problem?
Looking forward to getting this to work!
David
1# rm -rf php-4.4.2 (if present, start from scratch)
2# tar -xzvf php-4.4.2.tar.gz
3# cd php-4.4.2
4# wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-2.1.tgz
5# tar -xzvf php-litespeed-2.1.tgz
6# cd .. (This is skipped because it produces an error in step 8)
7# touch ac*
8# ./buildconf --force (if 6 above is not skipped, the following error is produced: -bash: ./buildconf: No such file or directory)
9# ./configure --with-litespeed --with-config-file-path=../conf --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-sqlite --enable-sqlite-utf8 --with-zlib --with-zlib-dir --with-bz2 --with-gd --enable-gd --enable-gd-native-ttf --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-ttf --with-freetype-dir=/usr/local/include --with-iconv=/usr/local --with-curl=/usr/local --enable-track-vars --with-gettext --enable-trans-id --enable-ftp --enable-mbstring --with-openssl=/usr/local --with-dom
10# make
11# make install
12# cd /usr/local/lsws/fcgi-bin/
13# mv lsphp lsphp.old
14# cp /usr/local/bin/php lsphp
15# cd ..
16# fcgi-bin/lsphp -v
Step 16 tests it and shows that litespeed is not present:
Code:
[root@plain lsws]# fcgi-bin/lsphp -v
PHP 4.4.2 (cli) (built: May 22 2006 21:26:28)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Code:
Request Timeout
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.
Looking forward to getting this to work!
David