Problems troubleshooting a VirtualHost config
Posted by: VirtualMe (50.121.98.---)
Date: January 28, 2015 11:48AM

My Problem/ Question
Hello,
I can't see what I've done wrong and I'm hoping additional sets of eyes might find the problem.

As of right now I've setup two virtual hosts, one works (Joomla) and the other doesn't (WordPress). The two '<VirtualHost>' configurations are identical with the obvious exception that they're in different directories. Because this problem exists without "installing" either application, I thought the problem might be a typo or a Windows permissions issue. So, I copied the good config and pasted it over the top of the bad config then, copied the 'DocumentRoot' path and 'Directory' path directly from Windows Explorer and pasted the correct path; I used TextPad to 'find and replace' backslashes with forward slashes. Then, just for good measure, I deleted the original filesystem directory and recreated it by re-extracted (WordPress) with the directory name I wanted. Still I get a 403 (Forbidden) error when just trying to access the index.php file in the bad 'DocumentRoot' path.

I'd be very grateful if someone could tell me what I did wrong or point me to a virtual host troubleshooting guide.

Thanks for any help,
Michael

My Local Development Environment
Windows 7 Ultimate SP1 64 bit running WAMPServer 2.5 32 bit
(Apache 2.4.9, PHP 5.5.12, MySQL 5.6.17)

WAMP Manager icon: GREEN

Contents of the 'C:\Windows\System32\drivers\etc\hosts' file
# localhost name resolution is handled within DNS itself.
# c:\wamp\www\
127.0.0.1   localhost
::1         localhost

# wordpress.dev is a place to learn WordPress 4.1
# C:\Users\GigabyteAMD\websites\WordPress\4.1\
127.0.0.1   wordpress.dev
::1         wordpress.dev

# joomla.dev is a place to learn Joomla
# C:\Users\GigabyteAMD\websites\Joomla\3.3.6\
127.0.0.1   joomla.dev
::1         joomla.dev

Contents of the 'C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf' file
################
# localhost name resolution is handled within DNS itself.
# c:\wamp\www\
################
<VirtualHost *:80>
    ServerName localhost
    ServerAlias localhost
    DocumentRoot "c:/wamp/www"
    <Directory  "c:/wamp/www/">
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


################
# wordpress.dev is a place to learn WordPress 4.1
# C:\Users\GigabyteAMD\websites\WordPress\4.1\
################
<VirtualHost *:80>
    ServerName wordpress.dev
    ServerAlias www.wordpress.dev
    ServerAdmin SendMyEmail2@gmail.com
    DocumentRoot "C:/Users/GigabyteAMD/websites/WordPress/4.11"
    <Directory  "C:/Users/GigabyteAMD/websites/WordPress/4.1/">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


################
# joomla.dev is a place to learn Joomla
# C:\Users\GigabyteAMD\websites\Joomla\3.3.6\
################
<VirtualHost *:80>
    ServerName joomla.dev
    ServerAlias www.joomla.dev
    ServerAdmin SendMyEmail2@gmail.com
    DocumentRoot "C:/Users/GigabyteAMD/websites/Joomla/3.3.6"
    <Directory  "C:/Users/GigabyteAMD/websites/Joomla/3.3.6/">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

WAMPServer homepage: OK/ displays, works, etc.

phpMyAdmin homepage: OK/ displays, works, etc. (but, only after setting up VirtualHosts)

Apache Error Log
[Wed Jan 28 04:56:40.068359 2015] [mpm_winnt:notice] [pid 4552:tid 412] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Jan 28 04:56:42.068359 2015] [mpm_winnt:notice] [pid 5864:tid 328] AH00364: Child: All worker threads have exited.
[Wed Jan 28 04:56:42.091796 2015] [mpm_winnt:notice] [pid 4552:tid 412] AH00430: Parent: Child process 5864 exited successfully.
AH00112: Warning: DocumentRoot [C:/Users/GigabyteAMD/websites/WordPress/4.11] does not exist
[Wed Jan 28 04:56:47.224609 2015] [mpm_winnt:notice] [pid 3636:tid 412] AH00455: Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Wed Jan 28 04:56:47.224609 2015] [mpm_winnt:notice] [pid 3636:tid 412] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Wed Jan 28 04:56:47.224609 2015] [core:notice] [pid 3636:tid 412] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Wed Jan 28 04:56:47.248046 2015] [mpm_winnt:notice] [pid 3636:tid 412] AH00418: Parent: Created child process 1884
AH00112: Warning: DocumentRoot [C:/Users/GigabyteAMD/websites/WordPress/4.11] does not exist
AH00112: Warning: DocumentRoot [C:/Users/GigabyteAMD/websites/WordPress/4.11] does not exist
[Wed Jan 28 04:56:48.490234 2015] [mpm_winnt:notice] [pid 1884:tid 328] AH00354: Child: Starting 64 worker threads.
[Wed Jan 28 04:58:12.002929 2015] [authz_core:error] [pid 1884:tid 852] [client ::1:58181] AH01630: client denied by server configuration: C:/Users/GigabyteAMD/websites/WordPress/4.11

Apache Access Log
::1 - - [28/Jan/2015:04:58:12 -0500] "GET / HTTP/1.1" 403 290

MySQL error log
2015-01-28 04:56:42 4600 [Note] wampmysqld: Arrêt normal du serveur

2015-01-28 04:56:42 4600 [Note] Giving 0 client threads a chance to die gracefully
2015-01-28 04:56:42 4600 [Note] Event Scheduler: Purging the queue. 0 events
2015-01-28 04:56:42 4600 [Note] Shutting down slave threads
2015-01-28 04:56:42 4600 [Note] Forcefully disconnecting 0 remaining clients
2015-01-28 04:56:42 4600 [Note] Binlog end
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'partition'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_METRICS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_CMP'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'INNODB_TRX'
2015-01-28 04:56:42 4600 [Note] Shutting down plugin 'InnoDB'
2015-01-28 04:56:42 4600 [Note] InnoDB: FTS optimize thread exiting.
2015-01-28 04:56:42 4600 [Note] InnoDB: Starting shutdown...
2015-01-28 04:56:44 4600 [Note] InnoDB: Shutdown completed; log sequence number 7144026
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'BLACKHOLE'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'ARCHIVE'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'MRG_MYISAM'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'MyISAM'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'MEMORY'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'CSV'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'sha256_password'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'mysql_old_password'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'mysql_native_password'
2015-01-28 04:56:44 4600 [Note] Shutting down plugin 'binlog'
2015-01-28 04:56:44 4600 [Note] wampmysqld: Arrêt du serveur terminé

2015-01-28 04:56:51 540 [Note] Plugin 'FEDERATED' is disabled.
2015-01-28 04:56:51 540 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-01-28 04:56:51 540 [Note] InnoDB: The InnoDB memory heap is disabled
2015-01-28 04:56:51 540 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-01-28 04:56:51 540 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-01-28 04:56:51 540 [Note] InnoDB: Not using CPU crc32 instructions
2015-01-28 04:56:51 540 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-01-28 04:56:51 540 [Note] InnoDB: Completed initialization of buffer pool
2015-01-28 04:56:51 540 [Note] InnoDB: Highest supported file format is Barracuda.
2015-01-28 04:56:52 540 [Note] InnoDB: 128 rollback segment(s) are active.
2015-01-28 04:56:53 540 [Note] InnoDB: Waiting for purge to start
2015-01-28 04:56:53 540 [Note] InnoDB: 5.6.17 started; log sequence number 7144026
2015-01-28 04:56:53 540 [Note] Server hostname (bind-address): '*'; port: 3306
2015-01-28 04:56:53 540 [Note] IPv6 is available.
2015-01-28 04:56:53 540 [Note]   - '::' resolves to '::';
2015-01-28 04:56:53 540 [Note] Server socket created on IP: '::'.
2015-01-28 04:56:53 540 [Note] Event Scheduler: Loaded 0 events
2015-01-28 04:56:53 540 [Note] wampmysqld: ready for connections.
Version: '5.6.17'  socket: ''  port: 3306  MySQL Community Server (GPL)

PHP error log
[28-Jan-2015 09:56:46 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[28-Jan-2015 09:56:46 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

[28-Jan-2015 09:56:48 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[28-Jan-2015 09:56:48 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

 in Unknown on line 0

The Windows Event Viewer
Log Name:      Application
Source:        Apache Service
Date:          1/28/2015 4:56:46 AM
Event ID:      3299
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      GigabyteAMD-PC
Description:
The Apache service named  reported the following error:
>>> AH00112: Warning: DocumentRoot [C:/Users/GigabyteAMD/websites/WordPress/4.11] does not exist     .
Event Xml:
<Event xmlns="[schemas.microsoft.com];
  <System>
    <Provider Name="Apache Service" />
    <EventID Qualifiers="0">3299</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-01-28T09:56:46.000000000Z" />
    <EventRecordID>6327</EventRecordID>
    <Channel>Application</Channel>
    <Computer>GigabyteAMD-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data>The Apache service named</Data>
    <Data>
    </Data>
    <Data>reported the following error:
&gt;&gt;&gt;</Data>
    <Data>AH00112: Warning: DocumentRoot [C:/Users/GigabyteAMD/websites/WordPress/4.11] does not exist</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

Error Message:
When trying to access http: //wordpress.dev/ from my system
Forbidden

You don't have permission to access / on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at wordpress.dev Port 80

OR, when trying to access http: //wordpress.dev/index.php from my system
Forbidden

You don't have permission to access /index.php on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at wordpress.dev Port 80

AV/ Firewall: Avast Free AntiVirus, Spybot-SD Resident, Windows Firewall

WAMPServer: C:\wamp\

==========
Windows 7 Ultimate SP1 64 bit
WAMPServer 2.5 32 bit (Apache 2.4.9, PHP 5.5.12, MySQL 5.6.17, phpMyAdmin 4.1.14, SqlBuddy 1.3.3, XDebug 2.2.5)
MySQL Workbench 6.2.4.12437
WordPress 4.1

Options: ReplyQuote
Re: Problems troubleshooting a VirtualHost config
Posted by: Otomatic (Moderator)
Date: January 28, 2015 02:20PM

Hi,

>DocumentRoot "C:/Users/GigabyteAMD/websites/WordPress/4.11"
> <Directory "C:/Users/GigabyteAMD/websites/WordPress/4.1/">
> AH00112: Warning: DocumentRoot [C:/Users/GigabyteAMD/websites/WordPress/4.11] does not exist

4.11 or 4.1 ?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Problems troubleshooting a VirtualHost config
Posted by: VirtualMe (50.121.98.---)
Date: January 28, 2015 03:50PM

Yes, that was it. I had a typo, it should have been '4.1' and NOT '4.11'. I'm up and running now. I'm sorry to have troubled you with such a stupid mistake.

Thank You,
Michael

==========
Windows 7 Ultimate SP1 64 bit
WAMPServer 2.5 32 bit (Apache 2.4.9, PHP 5.5.12, MySQL 5.6.17, phpMyAdmin 4.1.14, SqlBuddy 1.3.3, XDebug 2.2.5)
MySQL Workbench 6.2.4.12437
WordPress 4.1

Options: ReplyQuote
Re: Problems troubleshooting a VirtualHost config
Posted by: Otomatic (Moderator)
Date: January 28, 2015 05:05PM

Hi,

I made you a very short and terse response to try to show you that you had the answer in the eyes with the Apache error message.

> AH00112: Warning: DocumentRoot [C:/Users/GigabyteAMD/websites/WordPress/4.11] does not exist

Error messages are vitally important and should be read with great attention.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.