Java and Ruby together. Is it a good thing?
There are some rumblings around the web using GlassFish to host rails applications to offer a simple deployment option instead of the traditional mongrel cluster and reverse proxy frontend. I am currently looking deep into the issues other both scenarios and will report my findings as soon as I make a education conclusion. Stay tuned.
Upgrading PHP LSAPI on LiteSpeed
Introduction
Upgrading PHP on LiteSpeed web server is not that hard but requires a few steps in order to bring the PHP version from the shipped version (4) to the latest version of PHP. The following will walk you through the necessary steps in order to successfully upgrade the PHP implementation in LiteSpeed web server.
Upgrading Process
Download the latest php source, currently at version 5.2.5, from php.net.
wget http://us2.php.net/distributions/php-5.2.5.tar.bz2
Unpack the PHP source.
tar -jxvf php-5.2.5.tar.bz2
Change directory to php-5.2.5/sapi
cd php-5.2.5/sapi
Download the latest PHP LSAPI source, currently at version 4.4, from litespeedtech.com
wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.4.tgz
Unpack the PHP LSAPI source.
tar -zxvf php-litespeed-4.4.tgz
Change directory to the parent directory. You should now be in the base directory of the PHP source
cd ..
Run:
touch ac*
./buildconf --force
Configure PHP source for compile. Run ./configure --help for all options. The below options are enough to support Gallery running on a PostgreSQL database.
./configure --prefix=/usr/local/php5 --with-litespeed \
--with-config-file-path=../php --with-pgsql --with-exif --enable-bcmath \
--with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-gettext
Compile PHP.
make
Change directory to the fcgi-bin folder in your Litespeed webserver installation.
cd /usr/local/lsws/fcgi-bin
Move the current lsphp binary.
mv lsphp lsphp.old
Copy the new lsphp from the source PHP source tree.
cp ~/php-5.2.5/sapi/litespeed/php ./lsphp
Test the new lsphp binary. Notice (litespeed) in the output.
# ./lsphp -v
PHP 5.2.5 (litespeed) (built: Dec 31 2007 00:56:37)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
We compiled PHP to look in ../php for its configuration file. This corresponds to the PHP folder in the base of the litespeed webserver installation. This is where you should have your php.ini file. If you need a default php.ini copy php.ini-recommended from the based of the PHP source tree.
Reference: http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi
Nginx on Solaris 10 11/06 5
Introduction
Nginx is a small webserver that has been built for speed and scalability. It is used for many large sites in Russia and is quite stable. I have been using this webserver for quite some time in a testing environment, I am very satisfied with its performance and memory footprint.
Prerequisites
First off you will need to make sure that you install Perl Compatible Regular Expression or PCRE for short. This will enable the correct processing of the configuration file. This installation process is different then most because it is a two step procedure for nginx. I will go over that when I go over the installation of Nginx. To install PCRE, follow the next section.
Note: Make sure that /opt/local is in your path, to check this type the following command.
echo $PATH
Installing PCRE
mkdir -p /opt/local/src
cd /opt/local/src
wget ftp://ftp.csx.cam.ac.uk:21//pub/software/programming/pcre/pcre-7.3.tar.gz
gunzip pcre-7.3.tar.gz
tar -xf pcre-7.3.tar
cd pcre-7.3
./configure --prefix=/opt/local
Configure Compile and Install
The configure options I used was the following:
./configure --with-pcre=/opt/local/src/pcre-7.3 \
--prefix=/opt/local --user=webservd --guest=webservd
Note: PCRE directory included in the configure statement is NOT the prefix to the pcre installation directory but it is indeed the source code directory of which version PCRE that we just installed.
make
make install
Once the Nginx configuration has been modified to suite your needs then you are all set to run your new and improved extreme fast, stable, and secure web server.