Can't use a folder outside XAMPP

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

Can't use a folder outside XAMPP

Postby vitorneves » 27. January 2016 00:00

i've installed last version of xampp (with php7) and is trying to configure my projects on a folder outside xampp

i had add this to host file testes.local

and at httpd-vhosts.conf file i had inserted this
<VirtualHost *:80>
ServerAdmin postmaster@localhost
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
ErrorLog "logs/error.log"
CustomLog "logs/access.log" combined
<Directory "C:/xampp/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all

<VirtualHost *:80>
ServerAdmin my@email.address
php_value error_reporting 22517
php_flag display_errors on
php_flag short_open_tag off
php_flag register_globals off
DocumentRoot "C:/projectos/testes.local"
ServerName testes.local
ServerAlias *.testes.local
ErrorLog "logs/testes.local-error.log"
CustomLog "logs/testes.local-access.log" combined
<Directory "C:/projectos/testes.local">
#Options -Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all

When i try to start apache, i'm getting this error
22:26:44 [Apache] Error: Apache shutdown unexpectedly.
22:26:44 [Apache] This may be due to a blocked port, missing dependencies,
22:26:44 [Apache] improper privileges, a crash, or a shutdown by another method.
22:26:44 [Apache] Press the Logs button to view error logs and check
22:26:44 [Apache] the Windows Event Viewer for more clues
22:26:44 [Apache] If you need more help, copy and post this
22:26:44 [Apache] entire log window on the forums

Vitor Neves
Posts: 1
Joined: 26. January 2016 23:52
Operating System: Windows 7 64bits

Re: Can't use a folder outside XAMPP

Postby Altrea » 27. January 2016 00:39


I cannot reproduce your issue. Your shown configuration works fine.
Please take a look into your Apache error.log

best wishes,
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 8244
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 34 guests