Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

pdf icons

Creating a Joomla Virtual Domain under Apache

The location Apache“s httpd.conf file is normally at
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

NOTE: This is assuming that Apache was installed in C:\Program Files on your local computer.

Open httpd.conf file in any text (i.e. ASCII) editor of your choice.

<Directory "C:/Program File/Apache Software Foundation/Apache2.2/htdocs">     </Directory> enties as shown in Diagram 1.

diagram1.gif

Select this code block. Copy and Paste this code block immediately below the original.

NOTE: Please ensure that both
<Directory . . . .> and the </Directory>tags exist.

Change <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" > </Directory>.

To

<Directory "D:/public_html/joomla"> as shown in Diagram 2

NOTE: Please note the use of the forward slash above.

diagram2.gif

These entries within Apache“s httpd.conf file ensure that Apache knows that D:\public_html\joomla exists and that directory permissions are set.

Once Apache knows the existence and location of D:\public_html\joomla appropriate entries in the httpd-vhost.conf must be made.

httpd-vhost.conf is normally located at
C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf

Open the above conf file in any other text (i.e. ASCII) editor of your choice.

Copy the block of code and paste it immmediately below the original code block.

diagram3.gif

Make the following changes as shown in Diagram 4

ServerAdmin: <Email Id>

DocumentRoot: <Path where your virtual domain is located>

ServerName: <Name of the website>

ErrorLog: <Folder where all Apache errors logs will be stored>

CustomLog: <Comment the CustomLog>

diagram4.gif

After making all the above entries in both httpd.conf and httpd-vhost.conf

Please Restart Apache Web Server

NOTE: The Apache Web Server icon is normally visible in the status bar of the Window.

Look at the extreme right hand side of the status bar.

If Apache Web Server does not restart please check all the entries made in the httpd.conf and httpd-vhost.conf files.

NOTE: Look especially carefully for spelling mistakes.

Making entries in Windows HOSTS file

Now its time to make entries in Windows HOSTS file as shown in Diagram 5

The HOSTS file contains mappings of IP addresses to host names.

There must be a single IP address / host name pair on a single line in the HOSTS file.

NOTE: The IP address and the Host name must be separated by a TAB.

The HOSTS file is normally located at C:\WINDOWS\system32\drivers\etc\hosts


diagram5.gif

OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download
LinkShare_180x150
Artisteer - DNN Skin Generator
Tapestry Theme - A Tumblog-Style Theme for Wordpress