Remember that if you have a soft error in your vhosts file that the default, first vhost, will be served.
If the error relates to an incorrect or non existent path then Apache can't start.
Apache has tunnel vision and can't think 'out of the box' so tell Apache exactly where every thing is located and make sure that the name's case is also correct - no room at all for errors here.
So you have an error in your vhost configuration.
You have told Apache in the first vhost (localhost) that XAMPP is located here:
D:/applications/xampp/
In your second vhost (fairykingdoms) you have told Apache that XAMPP is located here:
D:/xampp/
- Code: Select all
ScriptAlias /cgi-bin/ "D:/xampp/htdocs/website/cgi-bin/"
change this after adding a cgi-bin folder in your fairykingdom DocumentRoot folder
- Code: Select all
ScriptAlias /cgi-bin/ "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache/cgi-bin/"
Drop the forward slash after the Apache folder in both the DocumentRoot and the Directory directives but leave it in place after the cgi-bin folder name.
Remember also that Apache and most things in XAMPP are case sensitive unlike in Windows where case is not important.
Always check the \xampp\apache\logs\error.log file when apache can't start.
To check the syntax of your vhost file open a command prompt in the \xampp\apache\bin folder (cd to the folder) and issue this case sensitive command:
apache -SCopy and paste the result by using the Edit menu item in the console window.
I have tried to correct what I see and pasted it here with comments
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "D:/applications/xampp/htdocs"
<- should be the same as in your httpd.conf file<Directory "D:/applications/xampp/htdocs" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName fairykingdoms.com
ServerAlias
http://www.fairykingdoms.comDocumentRoot "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache"
<-No slashServerAdmin
serveradmin@fairykingdoms.com<Directory "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache">
<-No slashOptions Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache/cgi-bin/"
<-Create this folder in here and keep the slashCustomLog domlogs/website_access.log combined
ErrorLog domlogs/website_error.log
LogLevel error
</VirtualHost>
It is also normal practice when working at localhost level to empty your browser's cache (Temporary Internet Files) very often especially if you think that you have an unexplainable issue appear.
Good luck and fingers crossed for a positive outcome that let's you move forward with minimal hair loss.