Thursday, May 15, 2008

How to write & display code in a blogger post

to display code simply use the html code tags.

Right click this page to view the code tags in this example below:

This is some example code!

How to set up multiple sites on XAMPP

If you are having a problem setting up multiple web sites using XAMPP try the following process:

Assumptions- root folders for your two sites are:

c:/mysite/
c:/myweb/

1) add these lines to the Windows Hosts file (C:\WINDOWS\system32\drivers\etc\hosts)

127.0.0.1. myweb
127.0.0.1. mysite

2) Into Apache's "\xampp\apache\conf\Http.conf" file add the following:


<Directory c:\myweb>

Order allow,deny

Allow from all

</Directory>



<Directory c:\mysite>

Order allow,deny

Allow from all

</Directory>



3) Add this is the "\xampp\apache\conf\extra\httpd-vhosts.conf" file:


<VirtualHost *:80>

ServerName myweb

DocumentRoot C:\myweb

<Directory C:\myweb>

IndexOptions +FancyIndexing NameWidth=*

Options Includes FollowSymLinks Indexes

AllowOverride All

Order allow,deny

Allow from all

</Directory>

</VirtualHost>



<VirtualHost *:80>

ServerName mysite

DocumentRoot C:\mysite

<Directory C:\mysite>

IndexOptions +FancyIndexing NameWidth=*

Options Includes FollowSymLinks Indexes

AllowOverride All

Order allow,deny

Allow from all

</Directory>

</VirtualHost>


Now open a browser and simple type either myweb or mysite and you should be able to see both of your site wih all the php in their full glory!