Install Wordpress locally with NanoWeb Server – Ubuntu Gutsy 7.10

October 25, 2007

nano web and wordpress logos

A Windows user can install EasyPHP to use Wordpress locally and develop new themes for it. A Wordpress theme designer often, don’t want use many resources for Apache installation under linux, because he would only install CMS to make a Theme Design for it.
In this post, we will see how to do this job under Ubuntu Gutsy 7.10.

Brief introduction to NanoWeb Server

NanoWeb server is a light web server for linux written entirely in php. NanoWeb Server is specially design for little website that don’t need Apache as webserver. So, with NanoWeb Server we have a locally installation of our preferred CMS to test it without expensive consume of resources.


Install and configure NanoWeb Server, PHP5 and MySQL5 on Ubuntu Gutsy 7.10

apt-get update
apt-get install nanoweb php-pear php5 php5-cli php5-cgi php5-mysql mysql-server mysql-client

Optionally you can install nanoconfig to configure NanoWeb Server:

apt-get install nanoweb-nanoconfig

edit /etc/nanoweb/nanoweb.conf and uncomment this:
#Alias = /nanoconfig/ /usr/share/nanoweb-nanoconfig/

We have to restart nanoweb to reload configuration file:
/etc/init.d/nanoweb restart

Now, we can open our browser using URL http://127.0.0.1/ to see NanoWeb Server in action!

Install Wordpress to have finally our Development Platform for Themes

First of all we have to download Wordpress 2.3 files in /var/www/nanoweb :
cd /var/www/nanoweb
wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz

mysql -u root -p
mysql> CREATE DATABASE wordpress;

cd /var/www/nanoweb/wordpress
cp wp-config-sample.php wp-config.php

edit wp-config.php

// ** MySQL settings ** //
define(’DB_NAME’, ‘wordpress’); // The name of the database
define(’DB_USER’, ‘root’); // Your MySQL username
define(’DB_PASSWORD’, ‘yourpasswordhere’); // …and password

Now, we can run http://127.0.0.1/worpress and complete installation.
If you like this how-to, please add smokinglinux.com in your Technorati Favorites

Related Post

Leave a Reply