<VirtualHost _default_:80> DocumentRoot /usr/share/webapps/phpldapadmin/ </VirtualHost> <Directory /usr/share/webapps/phpldapadmin/> DirectoryIndex index.php Options +FollowSymLinks AllowOverride None Require all granted <IfModule mod_mime.c> <IfModule mod_php5.c> AddType application/x-httpd-php .php php_flag magic_quotes_gpc Off php_flag track_vars On php_flag register_globals Off php_value include_path . </IfModule> <IfModule !mod_php5.c> <IfModule mod_actions.c> <IfModule mod_cgi.c> AddType application/x-httpd-php .php Action application/x-httpd-php /cgi-bin/php5 </IfModule> <IfModule mod_cgid.c> AddType application/x-httpd-php .php Action application/x-httpd-php /cgi-bin/php5 </IfModule> </IfModule> </IfModule> </IfModule> </Directory>