Tag Archives: servers

Google Gears – offline web applications

Posted on 30. May, 2007 by forouzani.

0

Today Google announced a new project they have been working on, called Google Gears. Its a browser extension which allows web applications to work both online and offline by using local storage and a synchronization system. Its not a new concept, similar products have already been released by Adobe and Joyent, but the fact that [...]

Continue Reading

Compiling and Installing Ruby and Rails on Ubuntu/Debian

Posted on 04. Feb, 2007 by forouzani.

0

The following will install the latest versions of Ruby, Rails and Mongrel on a Ubuntu machine:
# sudo apt-get install build-essential libreadline5-dev zlib1g-dev libncurses5-dev
# wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz (stable ruby)
# wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.4.tgz
# tar -xzf ruby-1.8.6.tar.gz
# cd ruby-1.8.6
# vim ext/Setup
Uncomment the entries for readline and zlib – save changes and exit
# ./configure –prefix=/usr (we want to install in /usr/bin [...]

Continue Reading

Compiling and installing MySql on Linux

Posted on 23. Nov, 2006 by forouzani.

0

Installing Mysql:
1) create a user under which the mysql server will be running
# groupadd mysql
# useradd -g mysql mysql
2) go to src download folder
# cd /usr/src/
3) download the latest version
# wget http://mysql.inspire.net.nz/Downloads/MySQL-5.0/mysql-5.0.27.tar.gz
4) Extract file
# tar -xzf mysql-5.0.27.tar.gz
5) Go into the directory
# cd mysql-5.0.27
6) If you get an error regarding ‘curses’ run these commands
# ./configure –prefix=/usr/local/mysql [...]

Continue Reading

Compiling and installing Apache on Linux

Posted on 18. Nov, 2006 by forouzani.

0

First we need to setup a user and user group under which the Apache server will be running.
# groupadd publicweb
# useradd -g publicweb publicweb
All actions performed by Apache (e.g. PHP script execution) will be restricted by this user’s privileges. Therefore we can explicitly rule which directories PHP scripts may read or change. Also all files [...]

Continue Reading

Compiling and installing PHP5 on Linux

Posted on 02. Nov, 2006 by forouzani.

0

Installing PHP5:
1) go to src download folder
# cd /usr/src/
2) find out the latest version
# lynx http://www.php.net/downloads.php
3) download the latest version
# wget http://www.php.net/mirror/php-5.2.1.tar.gz
4) Extract file
# tar -xzf php-5.2.1.tar.gz
5) Go into the directory
# cd php-5.2.1
6) Configure and install
# ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql –with-curl –with-dom –with-dom-xslt –with-dom-exslt –with-gd –enable-mbstring –with-mcrypt –with-mhash –with-mysqli=/usr/local/mysql/bin/mysql_config –with-openssl –enable-sockets –enable-track-vars –with-ttf –enable-gd-native-ttf [...]

Continue Reading