This morning all was well in the installation "Zend Framework http://framework.zend.com/manual/2.3/en/user-guide/skeleton-application.html", after I include the "conf / extra / httpd -vhosts.conf "Virtual host could no longer access my local area and also can not access the Virtual host.
message:
Apache / 2.4.9 (Win64) PHP / 5.5.12 Server at Port 80 platform.localhost
httpd.conf
<Directory />
AllowOverride none
Require all denied
</ Directory>
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride FileInfo
Require local
</ Directory>
httpd-vhosts.conf
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "C:/wamp/www"
<Directory "C:/wamp/www">
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName localhost.platform
ServerAlias localhost.platform
DocumentRoot "C:/wamp/www/platform/public"
SetEnv APPLICATION_ENV "development"
<Directory "C:/wamp/www/platform/public">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.php index.sh
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
etc / hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 localhost.platform
Zend installed by composer Windowns using PowerShell
Thank you.
apache_error.log
[Sat Sep 13 19:19:32.833823 2014] [mpm_winnt:notice] [pid 2140:tid
400] AH00422: Parent: Received shutdown signal -- Shutting down the
server.
[Sat Sep 13 19:19:34.839937 2014] [mpm_winnt:notice] [pid 6108:tid
316] AH00364: Child: All worker threads have exited.
[Sat Sep 13 19:19:34.886940 2014] [mpm_winnt:notice] [pid 2140:tid
400] AH00430: Parent: Child process 6108 exited successfully.
AH00112: Warning: DocumentRoot
[C:/Apache24/docs/dummy-host.example.com] does not exist AH00112:
Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does
not exist
[Sat Sep 13 19:19:37.902112 2014] [mpm_winnt:notice] [pid 1272:tid
400] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming
normal operations
[Sat Sep 13 19:19:37.903112 2014] [mpm_winnt:notice] [pid 1272:tid
400] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Sat Sep 13 19:19:37.903112 2014] [core:notice] [pid 1272:tid 400]
AH00094: Command line:
'c:\wamp\bin\apache\apache2.4.9\bin\httpd.exe -d
C:/wamp/bin/apache/apache2.4.9'
[Sat Sep 13 19:19:37.906113 2014] [mpm_winnt:notice] [pid 1272:tid
400] AH00418: Parent: Created child process 5856
AH00112: Warning: DocumentRoot
[C:/Apache24/docs/dummy-host.example.com] does not exist AH00112:
Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does
not exist AH00112: Warning: DocumentRoot
[C:/Apache24/docs/dummy-host.example.com] does not exist AH00112:
Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does
not exist
[Sat Sep 13 19:19:39.532206 2014] [mpm_winnt:notice] [pid 5856:tid
316] AH00354: Child: Starting 64 worker threads.
Related
I'm trying to configure httpd on fedora, but my two day effort has gotten me nowhere.
I installed httpd and php, added the configuration file for the site, everything is fine. I try to load it and see "access denied." but I have already granted to the apache user and apache group 755 rights (on every folder along the path).
Errors in apache log:
[Mon Jun 06 20:25:18.088420 2022] [negotiation:error] [pid 12656:tid
12758] (13)Permission denied: [client 127.0.0.1:45920] AH00686: cannot
read directory for multi: /home/concasse_master/Desktop/sample/public/
[Mon Jun 06 20:25:18.089421 2022] [proxy_fcgi:error] [pid 12656:tid
12758] [client 127.0.0.1:45920] AH01071: Got error 'Unable to open
primary script: /home/concasse_master/Desktop/sample/public/index.php
(Permission denied)'
localhost.conf:
<VirtualHost *:8080>
ServerName localhost
DocumentRoot /home/concasse_master/Desktop/sample/public
ErrorLog logs/error.log
CustomLog logs/access.log combined
<Directory /home/concasse_master/Desktop/sample/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
I have read a ton of threads here and elsewhere but none of the suggestions have worked. I installed the latest version of WAMP 64 bit on a fresh install of Windows Server 2012 R2.
I created a subdirectory within the www directory called andrew. In that is an index.html file.
I added the following to the hosts file:
127.0.0.1 andrew
::1 andrew
I added the following to the httpd-vhosts.conf file:
<VirtualHost *:80>
DocumentRoot "c:/wamp64/www/andrew"
ServerName andrew
<Directory "c:/wamp64/www/andrew">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
I uncommented the virtual hosts line in httpd.conf
I stopped and started net dnscache
I restarted the WAMP services
I "Put Online" the WAMP server
Regardless, when I access the server from another machine like [server IP address]*/andrew/index.html I get a 403 Forbidden error.
Here is the apache error log ("[SERVER IP]" is really the server's actual IP):
[Fri Apr 22 17:10:32.628356 2016] [mpm_winnt:notice] [pid 4680:tid 424] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Fri Apr 22 17:10:34.656507 2016] [mpm_winnt:notice] [pid 4444:tid 312] AH00364: Child: All worker threads have exited.
[Fri Apr 22 17:10:34.672087 2016] [mpm_winnt:notice] [pid 4680:tid 424] AH00430: Parent: Child process 4444 exited successfully.
[Fri Apr 22 17:10:34.921723 2016] [auth_digest:notice] [pid 4724:tid 416] AH01757: generating secret for digest authentication ...
[Fri Apr 22 17:10:34.952892 2016] [mpm_winnt:notice] [pid 4724:tid 416] AH00455: Apache/2.4.17 (Win64) PHP/5.6.16 configured -- resuming normal operations
[Fri Apr 22 17:10:34.952892 2016] [mpm_winnt:notice] [pid 4724:tid 416] AH00456: Apache Lounge VC14 Server built: Oct 11 2015 11:49:07
[Fri Apr 22 17:10:34.952892 2016] [core:notice] [pid 4724:tid 416] AH00094: Command line: 'C:\\wamp64\\bin\\apache\\apache2.4.17\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.17'
[Fri Apr 22 17:10:34.952892 2016] [mpm_winnt:notice] [pid 4724:tid 416] AH00418: Parent: Created child process 4388
[Fri Apr 22 17:10:35.140157 2016] [auth_digest:notice] [pid 4388:tid 312] AH01757: generating secret for digest authentication ...
[Fri Apr 22 17:10:35.171357 2016] [mpm_winnt:notice] [pid 4388:tid 312] AH00354: Child: Starting 64 worker threads.
[Fri Apr 22 17:10:49.899265 2016] [authz_core:error] [pid 4388:tid 1040] [client 73.82.23.97:57193] AH01630: client denied by server configuration: C:/wamp64/www/andrew/index.html
[Fri Apr 22 17:10:50.055249 2016] [authz_core:error] [pid 4388:tid 1040] [client 73.82.23.97:57193] AH01630: client denied by server configuration: C:/wamp64/www/favicon.ico, referer: http://[SERVER IP]/andrew/index.html
I am now thinking it has to do with some setting on Windows 2012 Server, but I can't figure it out. Help.
Because Apache doesn't know to associate the IP address with your virtual host, it uses the main server settings. Probably you don't need a virtual host at all, but try this anyway:
<VirtualHost *:80>
DocumentRoot "c:/wamp64/www/andrew"
ServerName andrew
#of course, enter your IP address here
ServerAlias 1.2.3.4
<Directory "c:/wamp64/www/andrew">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
please don't forget to edit phpMyAdmin.conf file. It will save your time to face 403 Error (403 Forbidden). You should set Require all granted into it as follows (indipendently by used phpMyAdmin version):
Alias /phpmyadmin "c:/wamp64/apps/phpmyadmin5.0.2/"
<Directory "c:/wamp64/apps/phpmyadmin5.0.2/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require all granted
# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
I tried to configure my virtual PHP Devserver to use a part of the domain to serve different Directory's depending on the domain the request comes from... I guess that apache's missing the Virtual alias Module. I just can't figure out how i can check if it is there and if not how I can Install it... Below you'll find the site config file I was working on when I run a2dissite on it Apache Starts up just fine It's only when i enable vboxsf that it fails on startup/reload or whenever runs "configtest" on it's configuration...
Here is /etc/apache2/sites-available/vboxsf.conf
<VirtualHost *:80 *:8080>
ServerName sandbox
ServerAlias *.dev
LogLevel info
ErrorLog ${APACHE_LOG_DIR}/dev-error.log
CustomLog ${APACHE_LOG_DIR}/dev-access.log combined
RewriteEngine On
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /media/>
Order allow,deny
Allow from all
Require all granted
</Directory>
<Location /server-status>
SetHandler server-status
Order allow,deny
Allow from all
Require all granted
</Location>
UseCanonicalName Off
VirtualDocumentRoot /media/sf_%1
</VirtualHost>
The output from sudo service apache2 reload
* Reloading web server apache2 *
* The apache2 configtest failed. Not doing anything.
Output of config test was:
AH00526: Syntax error on line 30 of /etc/apache2/sites-enabled/vboxsf.conf:
Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
And tail /var/log/apache2/error.log
[Wed Mar 04 17:05:43.698449 2015] [mpm_prefork:notice] [pid 1172] AH00169: caught SIGTERM, shutting down
[Wed Mar 04 17:28:35.880536 2015] [mpm_prefork:notice] [pid 2604] AH00163: Apache/2.4.10 (Ubuntu) PHP/5.5.12-2ubuntu4 configured -- resuming normal operations
[Wed Mar 04 17:28:35.880657 2015] [core:notice] [pid 2604] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 04 17:32:39.675812 2015] [mpm_prefork:notice] [pid 2604] AH00169: caught SIGTERM, shutting down
[Wed Mar 04 17:32:40.788348 2015] [mpm_prefork:notice] [pid 2715] AH00163: Apache/2.4.10 (Ubuntu) PHP/5.5.12-2ubuntu4 configured -- resuming normal operations
[Wed Mar 04 17:32:40.788487 2015] [core:notice] [pid 2715] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 04 17:32:58.596151 2015] [mpm_prefork:notice] [pid 2715] AH00169: caught SIGTERM, shutting down
[Wed Mar 04 17:32:59.706649 2015] [mpm_prefork:notice] [pid 2787] AH00163: Apache/2.4.10 (Ubuntu) PHP/5.5.12-2ubuntu4 configured -- resuming normal operations
[Wed Mar 04 17:32:59.706763 2015] [core:notice] [pid 2787] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 04 17:49:48.283025 2015] [mpm_prefork:notice] [pid 2787] AH00169: caught SIGTERM, shutting down
... or defined by a module not included in the server configuration
You are most likely missing the mod_vhost_alias plugin for apache.
I am trying to use zend framework 1.12 on WAMP 2.5.
I took following steps to create zend project on WAMP:-
created a project using 'zf' tool from command line.
created an entry in host file.
127.0.0.1 zendy.local
added a virtual host entry in conf\extra\httpd-vhosts.conf.
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/zendy/public"
ServerName zendy.local
<Directory "C:/wamp/www/zendy/public">
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
enabled rewrite module
But when I try to access zendy.local I get HTTP 500 internal server error.
Excerpt from apache error log
[Sat Nov 15 09:19:13.739450 2014] [mpm_winnt:notice] [pid 3424:tid
552] AH00422: Parent: Received shutdown signal -- Shutting down the
server.
[Sat Nov 15 09:19:15.761937 2014] [mpm_winnt:notice] [pid
6832:tid 476] AH00364: Child: All worker threads have exited.
[SatNov 15 09:19:15.777562 2014] [mpm_winnt:notice] [pid 3424:tid 552]
AH00430: Parent: Child process 6832 exited successfully.
[Sat Nov 15 09:19:17.574459 2014] [mpm_winnt:notice] [pid 5700:tid 556] AH00455:
Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal
operations
[Sat Nov 15 09:19:17.574459 2014] [mpm_winnt:notice] [pid
5700:tid 556] AH00456: Apache Lounge VC11 Server built: Mar 16 2014
12:42:59
[Sat Nov 15 09:19:17.574459 2014] [core:notice] [pid
5700:tid 556] AH00094: Command line:
'c:\wamp\bin\apache\apache2.4.9\bin\httpd.exe -d
C:/wamp/bin/apache/apache2.4.9'
[Sat Nov 15 09:19:17.574459 2014]
[mpm_winnt:notice] [pid 5700:tid 556] AH00418: Parent: Created child
process 6780
[Sat Nov 15 09:19:17.918210 2014] [mpm_winnt:notice]
[pid 6780:tid 484] AH00354: Child: Starting 64 worker threads.
Any help will be appreciated
You are in Production mode so you are not able to see any error just 500 Internal Server Error.
So Just add SetEnv APPLICATION_ENV "development" in your virtual host it will bring you in development mode.
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/zendy/public"
ServerName zendy.local
SetEnv APPLICATION_ENV "development"
<Directory "C:/wamp/www/zendy/public">
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
So now zend framework shows you what is the actual error or exception bothering you.
I was working on a project yesterday in the localhost, and everything was fine, i could acces with no problem. But today, when i try to open any file of my webpage or access to localhost, i get
403 Forbbiden
You don't have permission to access / on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80
The weird par is that I actually can acces to localhost/phpmyadmin
The Apache error log says this:
[Sun May 25 14:18:04.111705 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00455:
Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Sun May 25 14:18:04.268714 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sun May 25 14:18:04.268714 2014] [core:notice] [pid 4996:tid 396] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Sun May 25 14:18:04.273714 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00418: Parent: Created child process 1152
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/wamp/vhost] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/wamp/vhost] does not exist