I’m a newbie with Apache and I was wondering if someone could help me troubleshoot a problem I’m having with running a website on my virtual host. I installed XAMPP 1.8.3 (xampp-win32-1.8.3-4-VC11-installer.exe) on my Windows 8.1. I created a virtual host and put the website in the root directory but when I find the website in a browser (http://mysite.local), the home page doesn't work property. I only see the HTML and the images. The CSS (which is in an include file) isn't read by the browser. The interesting thing is that the interior pages work perfectly in Firefox and IE. The website, however, doesn't fare as well in Chrome. In Chrome, clicking on some of the home page links will give me a 404 error code and only a few of the interior websites run perfectly.
(There is an .htaccess file in the root directory but I removed it and it doesn't seem to solve the problem.)
I’m not really sure how to troubleshoot this problem, and I was hoping someone in this forum could help me out. I have included below (1) the syntax I used to create a virtual host, (2) the error log, (3) Control Panel log, and (4) access log. Please let me know if you need any other information from me.
Thank you in advance!
1. Virtual host
etc\host:
- Code: Select all
127.0.0.1 localhost
127.0.0.1 mysite.local
extra\httpd-vhost.conf:
- Code: Select all
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/Users/mysite.local"
ServerName mysite.local
ErrorLog "logs/mysite.local-error.log"
CustomLog "logs/mysite.local-access.log" combined
<Directory "C:/Users/mysite.local">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
2. Error log:
- [Mon Jun 23 09:56:03.935251 2014] [authz_core:error] [pid 1380:tid 1728] [client 127.0.0.1:56705] AH01630: client denied by server configuration: C:/Users/mysite.local/
3. Control Panel Log:
- 3:49:32 PM [main] Initializing Control Panel
3:49:32 PM [main] Windows Version: Windows 8 64-bit
3:49:32 PM [main] XAMPP Version: 1.8.3
3:49:32 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
3:49:32 PM [main] You are not running with administrator rights! This will work for
3:49:32 PM [main] most application stuff but whenever you do something with services
3:49:32 PM [main] there will be a security dialogue or things will break! So think
3:49:32 PM [main] about running this application with administrator rights!
3:49:32 PM [main] XAMPP Installation Directory: "c:\xampp\"
3:49:32 PM [main] Checking for prerequisites
3:49:32 PM [main] All prerequisites found
3:49:32 PM [main] Initializing Modules
3:49:32 PM [Apache] Problem detected!
3:49:32 PM [Apache] Port 80 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
3:49:32 PM [Apache] Apache WILL NOT start without the configured ports free!
3:49:32 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
3:49:32 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
3:49:32 PM [Apache] Problem detected!
3:49:32 PM [Apache] Port 443 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
3:49:32 PM [Apache] Apache WILL NOT start without the configured ports free!
3:49:32 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
3:49:32 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
3:49:32 PM [main] Starting Check-Timer
3:49:32 PM [main] Control Panel Ready
4:02:24 PM [Apache] Problem detected!
4:02:24 PM [Apache] Port 80 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
4:02:24 PM [Apache] Apache WILL NOT start without the configured ports free!
4:02:24 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
4:02:24 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
4:02:24 PM [Apache] Problem detected!
4:02:24 PM [Apache] Port 443 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
4:02:24 PM [Apache] Apache WILL NOT start without the configured ports free!
4:02:24 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
4:02:24 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
4:02:24 PM [Apache] Attempting to start Apache app...
4:02:24 PM [Apache] Status change detected: running
4:02:24 PM [mysql] Attempting to start MySQL app...
4:02:25 PM [mysql] Status change detected: running
4:02:25 PM [filezilla] Attempting to start FileZilla app...
4:02:26 PM [filezilla] Status change detected: running
And here is the access log:
- 127.0.0.1 - - [23/Jun/2014:16:02:41 -0400] "GET /favicon.ico HTTP/1.1" 404 1057 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
127.0.0.1 - - [23/Jun/2014:16:02:53 -0400] "GET /serices/salesforce-data-visualization.html HTTP/1.1" 404 1187 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
127.0.0.1 - - [23/Jun/2014:16:03:05 -0400] "GET /about HTTP/1.1" 301 338 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
127.0.0.1 - - [23/Jun/2014:16:03:05 -0400] "GET /about/ HTTP/1.1" 200 9722 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
127.0.0.1 - - [23/Jun/2014:16:32:22 -0400] "GET / HTTP/1.1" 200 11735 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
127.0.0.1 - - [23/Jun/2014:16:32:26 -0400] "GET / HTTP/1.1" 200 11735 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
127.0.0.1 - - [23/Jun/2014:16:32:29 -0400] "GET /industries/ HTTP/1.1" 200 11932 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
127.0.0.1 - - [23/Jun/2014:16:32:33 -0400] "GET /services/ HTTP/1.1" 200 10345 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
127.0.0.1 - - [23/Jun/2014:16:32:36 -0400] "GET /about/contact.html HTTP/1.1" 200 10615 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"