SSI Not Working

Problems with the Linux version of XAMPP, questions, comments, and anything related.

SSI Not Working

Postby regisb50 » 08. March 2010 15:14

I cannot get SSI to work in anything except the default XAMPP htdocs directory. I am using the system to serve as a local web host for testing before publishing the sites to an external web service.

I am working with a virtual machine running under VMware Workstation 6.5.3. I have loaded Ubuntu 9.1 and XAMPP 1.7.3a.

I have defined multiple virtual hosts for Apache in the directory /home/www/. For each site I created the directories:


For each site I edited hosts to contain the line " http://www.mysite.localhost"

And of course I uncommented the line in /opt/lampp/etc/httpd.conf: "Include etc/extra/httpd-vhosts.conf"

Last I edited /opt/lampp/etc/extra/httpd-vhosts.conf to contain the Virtual hosts ServerName, DocumentRoot, ...

I access my sites from Windows using http://www.mysite/localhost (I add a line the hosts file on these computers:

I test SSI functionality using the test file, test.shtml:

<HEAD><TITLE> Test Server Side Includes </TITLE></HEAD>
Current Date: <!--#echo var="DATE_LOCAL" -->
<P>Document Name: <!--#echo var="DOCUMENT_NAME" -->
<P>Environmental Variables:<BR>
<PRE><!--#printenv --></PRE>

If I don't get any date in the dislayed page SSI is not working.

SSI works when I put this file in the /opt/lampp/htdocs folder.

However, when I place it in my folder, /home/www/www.mysite/localhost SSI does not work.

All the normal web functional appears to be working in my personal web sites.

Any idea why SSI is not working in the specific folders?
Posts: 2
Joined: 08. March 2010 14:47

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 13 guests