Installation 1. Installing MySQL 5 sudo apt-get install mysql-server mysql-client 2. Installing Apache2 sudo apt-get install apache2 3. Installing PHP5 sudo apt-get install php5 libapache2-mod-php5 sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl sudo apt-get install php5-xcache 4. Restart Apache sudo /etc/init.d/apache2

If a resource has moved to another server, you may wish to have URLs continue to work for a time on the old server while people update their bookmarks. Simply add (similar) to the following to your virtual host: <VirtualHost> ServerName ServerAlias DocumentRoot /var/www/site RewriteEngine on RewriteRule ^/blog/(.+)$1 [R,L] </VirtualHost>

To make .htaccess files work as expected, you need to edit this file: /etc/apache2/sites-available/default Look for a section that looks like this: Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # Uncomment this directive is you want to see apache2’s # default start page (in /apache2-default) when you go to / #RedirectMatch

How to save Swedish Characters in MySQL using PHP and display it on Web Page It was a headache and wastage of time when I came across the situation when I saw strange Swedish characters on one of my clients web page and its MySQL database. After googling I found several suggestions but no one

Virtual Hosts Virtual Hosts give you the ability to “host” more than one Web site and domain on your computer. With a virtual host you can have separate local domain names for each of your Web sites: for example, http://clientA/ for one site and http://clientB/ for another. When you type the URL for the Virtual