Meselelerim-iz-
Epeycesi, şaka ciddi karışık
Anasayfa/Homepage Hakkımda/About Me Türkçe Yazılar Posts in English

Step by Step Nginx + Wordpress-mu Blog Service Creation - Step 3: PHP configuration

Friday, 29 May 2009

After a long break, helllloooo everyoneeee again. Kinda radio show opening, sorry :)

Now, we will configure php.

For spawning php processes (for using as fastcgi), we will use lighttpd spawn-fcgi, now it’s seperated from lighttpd project.
wget http://www.lighttpd.net/download/spawn-fcgi-1.6.2.tar.gz
tar -xzvf spawn-fcgi-1.6.2.tar.gz
cd pawn-fcgi-1.6.2
./configure
make
make install

Now, edit /usr/bin/spawn-php.sh. FCGIPROGRAM, FCGIPORT (select which you want), PHP_FCGI_CHILDREN (maybe 3 or 5) and set USERID=www-data, GROUPID=www-data.
Give it execute rights. chmod +x /usr/bin/spawn-php.sh

After that point, you can continue with blog.elderec.com. Because i will write same things, and i don’t like repetition…

Do whatever elderec did after “Now we create a init.d script /etc/init.d/fastcgi” point. Only make scripts “%PHP_SCRIPT” variable as “PHP_SCRIPT=/usr/bin/spawn-php.sh”%

After that steps, you must install some cache plugins for php, like eaccelerator or xcache. I prefer eaccelerator, because it caches and optimizes scripts. Xcache only caches. I said “must” because, i gained approx. %400 speed boost with eaccelerator.

Installing Wordpress-mu
wget http://mu.wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz

Now, move files etc. wihtin folder to your sites public folder. Copy wp-config-sample.php as wp-config.php and edit.

At last, open your browser and point your site.

That’s all folks!

hasan.cansiz.info @ 2009