Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On Windows this Apache virtual host configuration is fine, but when on Linux it does not work the same.

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "/www/chess/htdocs"

    php_value include_path .;/www/chess/htdocs/includes
    ErrorLog "logs/chess-error.log"
    CustomLog "logs/chess-access.log" common

  <Directory "/www/chess/htdocs"> 
      Options FollowSymLinks
      AllowOverride AuthConfig FileInfo
      Order allow,deny
      Allow from all

    AddType application/x-compress .Z 
    AddType application/x-gzip .gz .tgz 
    AddType application/x-httpd-php .php 
    AddType application/x-httpd-php .php3 
    AddType application/x-httpd-php .html 
    AddType audio/x-ms-wma .wma 
    AddType application/octet-stream .jar .class 

    DefaultType application/x-httpd-php 

    AddDefaultCharset UTF-8 

Why would it work on a Windows environment but fail to configure properly on a Linux machine?

share|improve this question

migrated from Sep 10 '12 at 0:23

This question came from our site for professional and enthusiast programmers.

Any chance it's as simple as not in /var/www ? – Ddorda Sep 8 '12 at 19:07
This question is perfect for – Zagorax Sep 9 '12 at 7:06

2 Answers 2

The semicolon is the Windows path separator. In Linux it's the colon (:).

share|improve this answer
Sneaky. I like it. – Zac B Oct 16 '12 at 17:51

There are no quotes around .;/www/chess/htdocs/includes and you should use colons to separate folder paths.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.