I had created two VirtualHosts earlier namely [localhost] and "phpsite". Yesterday I renamed "phpsite" as "phppages" and added one more virtual host named "techsupport.com". I use port 8088 on my Apache server. But now I am able to use [localhost]:8088 and phpsite:8088 though there's no virtual host named "phpsite" and if I go for techsupport.com:8088 I get nothing.
Here's my vhost content:
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
#<VirtualHost *:80>
# ServerAdmin webmaster#dummy-host.example.com
# DocumentRoot "c:/Apache24/docs/dummy-host.example.com"
# ServerName dummy-host.example.com
# ServerAlias www.dummy-host.example.com
# ErrorLog "logs/dummy-host.example.com-error.log"
# CustomLog "logs/dummy-host.example.com-access.log" common
#</VirtualHost>
#<VirtualHost *:80>
# ServerAdmin webmaster#dummy-host2.example.com
# DocumentRoot "c:/Apache24/docs/dummy-host2.example.com"
# ServerName dummy-host2.example.com
# ErrorLog "logs/dummy-host2.example.com-error.log"
# CustomLog "logs/dummy-host2.example.com-access.log" common
#</VirtualHost>
<VirtualHost *:8088>
ServerAdmin admin#example.com
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias www.localhost.com
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
<Directory "c:/wamp/www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</Directory>
</VirtualHost>
<VirtualHost *:8088>
DocumentRoot "e:/techsupport"
ServerName techsupport.com
ServerAlias www.techsupport.com
ErrorLog "logs/techsupport-error.log"
CustomLog "logs/techsupport-access.log" common
<Directory "e:/TechSupport">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</Directory>
</VirtualHost>
<VirtualHost *:8088>
DocumentRoot "e:/phppages"
ServerName phppages
ServerAlias www.phppages.com
ErrorLog "logs/phppages-error.log"
CustomLog "logs/phppages-access.log" common
<Directory "e:/PHPPages">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</Directory>
</VirtualHost>
Apache's error log shows this:
[Sun Aug 25 12:50:06.646882 2013] [mpm_winnt:notice] [pid 7936:tid 500] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Sun Aug 25 12:50:06.646882 2013] [mpm_winnt:notice] [pid 7936:tid 500] AH00456: Server built: Feb 22 2013 22:08:37
[Sun Aug 25 12:50:06.646882 2013] [core:notice] [pid 7936:tid 500] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Aug 25 12:50:06.647883 2013] [mpm_winnt:notice] [pid 7936:tid 500] AH00418: Parent: Created child process 912
[Sun Aug 25 12:50:07.216263 2013] [mpm_winnt:notice] [pid 912:tid 384] AH00354: Child: Starting 150 worker threads.
[Sun Aug 25 12:51:15.409867 2013] [mpm_winnt:notice] [pid 7936:tid 500] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Aug 25 12:51:17.411205 2013] [mpm_winnt:notice] [pid 912:tid 384] AH00364: Child: All worker threads have exited.
[Sun Aug 25 12:51:17.433218 2013] [mpm_winnt:notice] [pid 7936:tid 500] AH00430: Parent: Child process 912 exited successfully.
[Sun Aug 25 12:51:30.206760 2013] [mpm_winnt:notice] [pid 11396:tid 204] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Sun Aug 25 12:51:30.207763 2013] [mpm_winnt:notice] [pid 11396:tid 204] AH00456: Server built: Feb 22 2013 22:08:37
[Sun Aug 25 12:51:30.207763 2013] [core:notice] [pid 11396:tid 204] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Aug 25 12:51:30.208763 2013] [mpm_winnt:notice] [pid 11396:tid 204] AH00418: Parent: Created child process 4808
[Sun Aug 25 12:51:30.670070 2013] [mpm_winnt:notice] [pid 4808:tid 384] AH00354: Child: Starting 150 worker threads.
[Sun Aug 25 13:25:30.406049 2013] [mpm_winnt:notice] [pid 11396:tid 204] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Aug 25 13:25:32.406924 2013] [mpm_winnt:notice] [pid 4808:tid 384] AH00364: Child: All worker threads have exited.
[Sun Aug 25 13:25:32.423935 2013] [mpm_winnt:notice] [pid 11396:tid 204] AH00430: Parent: Child process 4808 exited successfully.
[Sun Aug 25 13:28:38.706114 2013] [mpm_winnt:notice] [pid 10328:tid 516] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Sun Aug 25 13:28:38.706114 2013] [mpm_winnt:notice] [pid 10328:tid 516] AH00456: Server built: Feb 22 2013 22:08:37
[Sun Aug 25 13:28:38.706114 2013] [core:notice] [pid 10328:tid 516] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Aug 25 13:28:38.708114 2013] [mpm_winnt:notice] [pid 10328:tid 516] AH00418: Parent: Created child process 4716
[Sun Aug 25 13:28:39.170423 2013] [mpm_winnt:notice] [pid 4716:tid 380] AH00354: Child: Starting 150 worker threads.
[Sun Aug 25 13:33:14.347584 2013] [mpm_winnt:notice] [pid 10328:tid 516] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Aug 25 13:33:16.349839 2013] [mpm_winnt:notice] [pid 4716:tid 380] AH00364: Child: All worker threads have exited.
[Sun Aug 25 13:33:16.369232 2013] [mpm_winnt:notice] [pid 10328:tid 516] AH00430: Parent: Child process 4716 exited successfully.
[Sun Aug 25 13:33:18.445939 2013] [mpm_winnt:notice] [pid 7048:tid 464] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Sun Aug 25 13:33:18.445939 2013] [mpm_winnt:notice] [pid 7048:tid 464] AH00456: Server built: Feb 22 2013 22:08:37
[Sun Aug 25 13:33:18.445939 2013] [core:notice] [pid 7048:tid 464] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Aug 25 13:33:18.446940 2013] [mpm_winnt:notice] [pid 7048:tid 464] AH00418: Parent: Created child process 2556
[Sun Aug 25 13:33:18.801179 2013] [mpm_winnt:notice] [pid 2556:tid 324] AH00354: Child: Starting 150 worker threads.
[Sun Aug 25 13:35:23.175992 2013] [mpm_winnt:notice] [pid 7048:tid 464] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Aug 25 13:35:25.178255 2013] [mpm_winnt:notice] [pid 2556:tid 324] AH00364: Child: All worker threads have exited.
[Sun Aug 25 13:35:25.197268 2013] [mpm_winnt:notice] [pid 7048:tid 464] AH00430: Parent: Child process 2556 exited successfully.
[Sun Aug 25 13:35:28.224795 2013] [mpm_winnt:notice] [pid 10616:tid 504] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Sun Aug 25 13:35:28.224795 2013] [mpm_winnt:notice] [pid 10616:tid 504] AH00456: Server built: Feb 22 2013 22:08:37
[Sun Aug 25 13:35:28.224795 2013] [core:notice] [pid 10616:tid 504] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Aug 25 13:35:28.225792 2013] [mpm_winnt:notice] [pid 10616:tid 504] AH00418: Parent: Created child process 4012
[Sun Aug 25 13:35:28.599042 2013] [mpm_winnt:notice] [pid 4012:tid 324] AH00354: Child: Starting 150 worker threads.
[Sun Aug 25 13:43:03.326392 2013] [mpm_winnt:notice] [pid 10616:tid 504] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Aug 25 13:43:07.389104 2013] [mpm_winnt:notice] [pid 4012:tid 324] AH00364: Child: All worker threads have exited.
[Sun Aug 25 13:43:07.404736 2013] [mpm_winnt:notice] [pid 10616:tid 504] AH00430: Parent: Child process 4012 exited successfully.
[Sun Aug 25 13:45:26.908312 2013] [mpm_winnt:notice] [pid 4788:tid 504] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Sun Aug 25 13:45:26.970818 2013] [mpm_winnt:notice] [pid 4788:tid 504] AH00456: Server built: Feb 22 2013 22:08:37
[Sun Aug 25 13:45:26.970818 2013] [core:notice] [pid 4788:tid 504] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Aug 25 13:45:26.970818 2013] [mpm_winnt:notice] [pid 4788:tid 504] AH00418: Parent: Created child process 5084
[Sun Aug 25 13:45:27.517719 2013] [mpm_winnt:notice] [pid 5084:tid 384] AH00354: Child: Starting 150 worker threads.
In httpd.cnf file:
Listen 0.0.0.0:8088
(Earlier it was just Listen 8088)
And
Include conf/extra/httpd-vhosts.conf
is uncommented as it should be.
I am helpless right now and have already spent 2 days on it. Please help.
Thanks
I had created two VirtualHosts earlier namely [localhost] and "phpsite". Yesterday I renamed "phpsite" as "phppages" and added one more virtual host named "techsupport.com". I use port 8088 on my Apache server. But now I am able to use [localhost]:8088 and phpsite:8088 though there's no virtual host named "phpsite" and if I go for techsupport.com:8088 I get nothing.
The only reason that "phppages" is not working and "phpsite" is working could be because you have a DNS entry or an entry in the host file for "phpsite" and not for "phppages". To debug this I would start by pinging them.
ping phppages
ping phpsite
While we're at the name resolution topic, your techsupport.com:8088 is not going to work because techsupport.com gets resolved to external site. If they don't have port 8088 open to the public, you simply won't be able to navigate to that site on that port. However, if they did then you would have been able to browse their pages not yours.
I'm not sure how WAMP manages host names, but the first thing to check is your DNS Server if you have one, otherwise check C:\Windows\System32\drivers\etc\hosts.
To make phppages work add the following lines to your C:\Windows\System32\drivers\etc\hosts:
127.0.0.1 phppages www.phppages.com
# Similarly for techsupport.com and www.techsupport.com
127.0.0.1 techsupport.com www.techsupport.com
After this your phppages and techsupport urls should work.
Caution: Adding public URLs to your hosts file might cause confusions in future when/if you removed that virtual host from httpd-vhosts.conf and forget to remove corresponding host name from the host file, in which case these public URLs will not be reachable to the correct destination. So, it is not recommended to use public host names for your virtual hosts.
Hope this helps.
Related
I have a php websocket server running but I want to connect to it via https. This is my JS: var conn = new WebSocket('wss://81.169.228.159:3671/wss2');
And this is my apache config:
ProxyPass /wss2/ ws://domain:3671/
I have proxy and proxy_wstunnel enabled.
So, what am I doing wrong?
ERROR LOG:
[Mon Mar 13 04:38:04.228450 2017] [mpm_prefork:notice] [pid 6683] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 04:38:04.228471 2017] [core:notice] [pid 6683] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 12:42:39.475641 2017] [:error] [pid 12432] [client 195.169.9.201:8546] script '/var/www/html/luukwuijster.io/phpinfo.php' not found or unable to stat
[Mon Mar 13 12:56:25.370986 2017] [mpm_prefork:notice] [pid 6683] AH00169: caught SIGTERM, shutting down
[Mon Mar 13 12:56:26.539948 2017] [mpm_prefork:notice] [pid 26932] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 12:56:26.539972 2017] [core:notice] [pid 26932] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 13:06:36.280229 2017] [mpm_prefork:notice] [pid 26932] AH00169: caught SIGTERM, shutting down
[Mon Mar 13 13:06:37.473220 2017] [mpm_prefork:notice] [pid 27256] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 13:06:37.473248 2017] [core:notice] [pid 27256] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 13:19:52.144983 2017] [mpm_prefork:notice] [pid 27256] AH00169: caught SIGTERM, shutting down
[Mon Mar 13 13:19:53.235045 2017] [mpm_prefork:notice] [pid 27775] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 13:19:53.235083 2017] [core:notice] [pid 27775] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 13:22:21.467607 2017] [mpm_prefork:notice] [pid 27775] AH00169: caught SIGTERM, shutting down
[Mon Mar 13 13:22:22.618416 2017] [mpm_prefork:notice] [pid 27911] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 13:22:22.618455 2017] [core:notice] [pid 27911] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 13:28:08.356148 2017] [mpm_prefork:notice] [pid 27911] AH00169: caught SIGTERM, shutting down
[Mon Mar 13 13:28:09.546926 2017] [mpm_prefork:notice] [pid 28540] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 13:28:09.546964 2017] [core:notice] [pid 28540] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 13:35:26.856446 2017] [mpm_prefork:notice] [pid 28540] AH00169: caught SIGTERM, shutting down
[Mon Mar 13 13:35:28.532498 2017] [mpm_prefork:notice] [pid 29153] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 13:35:28.532541 2017] [core:notice] [pid 29153] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 13:46:19.084561 2017] [ssl:error] [pid 29170] [client 208.93.152.93:54712] AH02042: rejecting client initiated renegotiation
[Mon Mar 13 13:57:14.410892 2017] [mpm_prefork:notice] [pid 29153] AH00169: caught SIGTERM, shutting down
[Mon Mar 13 13:57:16.465381 2017] [mpm_prefork:notice] [pid 29927] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Mar 13 13:57:16.465424 2017] [core:notice] [pid 29927] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 13 14:00:03.312882 2017] [:error] [pid 29936] [client 81.169.228.159:33706] PHP Notice: Undefined index: text in /var/www/html/luukwuijster.io/slack/cronofy/huiswerk.php on line 9
I assume that you have a React\Socket\Server listening on port 8080 (aka php push-server.php). The tutorial on the ratchet website should get you up to this point.
I also assume that you have already configured and loaded the proxy and proxy_wstunnel apache modules as mentioned in the question.
Below is the config I personally use to achieve a WebSocket connection.
I use /ws/ instead of the /wss2/ mentioned in the tutorial for a better looking URL. Feel free to adjust the config as necessary.
Apache Config
#SSL (Secure)
<VirtualHost *:443>
DocumentRoot /FILE_PATH_TO_WEBROOT
ServerName local.sitename.com
ServerAlias local.sitename.com
<Directory /FILE_PATH_TO_WEBROOT>
Options FollowSymLinks
AllowOverride all
php_flag display_errors On
Require all granted
</Directory>
SSLCertificateFile /etc/httpd/ssl/.crt
SSLCertificateKeyFile /etc/httpd/ssl/.key
ProxyRequests Off
ProxyPass "/ws/" "ws://local.sitename.com:8080/"
</VirtualHost>
#NON-SSL (Insecure)
<VirtualHost *:80>
DocumentRoot /FILE_PATH_TO_WEBROOT
ServerName local.sitename.com
ServerAlias local.sitename.com
<Directory /FILE_PATH_TO_WEBROOT>
Options FollowSymLinks
AllowOverride all
php_flag display_errors On
Require all granted
</Directory>
ProxyRequests Off
ProxyPass "/ws/" "ws://local.sitename.com:8080/"
</VirtualHost>
Secure JavaScript Socket Connection
var conn = new WebSocket('wss://local.sitename.com/ws/');
Insecure JavaScript Socket Connection
var conn = new WebSocket('ws://local.sitename.com/ws/');
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.
As the title says, there's a certain #include() that causes Apache to crash when it's executed.
This is the incriminated code, located in profile.php:
<hr>
#include('sections/userInformations', array('userOwner' => $profileUser, 'userVisitor' => $user))
<hr>
The $profileUser and $user come from the PagesController.php:
public function getProfile($username) {
return View::make('profile', array(
'privacy' => Privacy::where('user', '=', $username)->first(),
'profileUser' => User::where('username', '=', $username)->first(),
'user' => Auth::user()
));
}
Apache error.log:
[Thu Apr 17 18:17:30.840838 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00428: Parent: child process 1716 exited with status 3221225725 -- Restarting.
[Thu Apr 17 18:17:31.146862 2014] [ssl:warn] [pid 2536:tid 324] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:31.183859 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations
[Thu Apr 17 18:17:31.184859 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Thu Apr 17 18:17:31.184859 2014] [core:notice] [pid 2536:tid 324] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Apr 17 18:17:31.185859 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00418: Parent: Created child process 2904
[Thu Apr 17 18:17:31.627883 2014] [ssl:warn] [pid 2904:tid 396] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:31.781898 2014] [ssl:warn] [pid 2904:tid 396] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:31.819900 2014] [mpm_winnt:notice] [pid 2904:tid 396] AH00354: Child: Starting 150 worker threads.
[Thu Apr 17 18:17:33.170971 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00428: Parent: child process 2904 exited with status 3221225725 -- Restarting.
[Thu Apr 17 18:17:33.482989 2014] [ssl:warn] [pid 2536:tid 324] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:33.520991 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations
[Thu Apr 17 18:17:33.520991 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Thu Apr 17 18:17:33.520991 2014] [core:notice] [pid 2536:tid 324] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Apr 17 18:17:33.522991 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00418: Parent: Created child process 2064
[Thu Apr 17 18:17:33.966015 2014] [ssl:warn] [pid 2064:tid 392] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:34.120025 2014] [ssl:warn] [pid 2064:tid 392] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:34.159026 2014] [mpm_winnt:notice] [pid 2064:tid 392] AH00354: Child: Starting 150 worker threads.
PHP_ERROR_LOG is empty.
Actually there are 2 consequent crashes...
Give the following a go:
http://blog.codexpedia.com/apache-server/parent-child-process-exited-with-status-3221225725-restarting-on-xamp-apache/
httpd.conf:
<IfModule mpm_winnt_module>
ThreadStackSize 8888888
</IfModule>
Your actual error is [mpm_winnt:notice] [pid 2536:tid 324] AH00428: Parent: child process 2904 exited with status 3221225725 -- Restarting..
Try searching for exited with status 3221225725...
This seems to be a problem on windows,
Try adding the following at the end of apache config file: httpd.conf
<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>
then restart apache.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin#example.com to inform them of the time this error occurred, and the actions you performed just before this error
.
More information about this error may be available in the server error log.
error_log:
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
[Tue Dec 03 17:09:22.142866 2013] [mpm_winnt:notice] [pid 14156:tid 408] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Tue Dec 03 17:09:22.142866 2013] [mpm_winnt:notice] [pid 14156:tid 408] AH00456: Server built: Feb 22 2013 22:08:37
[Tue Dec 03 17:09:22.142866 2013] [core:notice] [pid 14156:tid 408] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Tue Dec 03 17:09:22.144866 2013] [mpm_winnt:notice] [pid 14156:tid 408] AH00418: Parent: Created child process 14052
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
[Tue Dec 03 17:09:22.809904 2013] [mpm_winnt:notice] [pid 14052:tid 300] AH00354: Child: Starting 150 worker threads.
[Tue Dec 03 17:11:22.260736 2013] [core:alert] [pid 14052:tid 1552] [client 127.0.0.1:52157] C:/wamp/www/nmb48/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Dec 03 17:11:28.206076 2013] [mpm_winnt:notice] [pid 14156:tid 408] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 03 17:11:30.214191 2013] [mpm_winnt:notice] [pid 14052:tid 300] AH00364: Child: All worker threads have exited.
[Tue Dec 03 17:11:30.236192 2013] [mpm_winnt:notice] [pid 14156:tid 408] AH00430: Parent: Child process 14052 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
[Tue Dec 03 17:11:31.524266 2013] [mpm_winnt:notice] [pid 10180:tid 408] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Tue Dec 03 17:11:31.525266 2013] [mpm_winnt:notice] [pid 10180:tid 408] AH00456: Server built: Feb 22 2013 22:08:37
[Tue Dec 03 17:11:31.525266 2013] [core:notice] [pid 10180:tid 408] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Tue Dec 03 17:11:31.526266 2013] [mpm_winnt:notice] [pid 10180:tid 408] AH00418: Parent: Created child process 7664
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
[Tue Dec 03 17:11:32.229306 2013] [mpm_winnt:notice] [pid 7664:tid 300] AH00354: Child: Starting 150 worker threads.
[Tue Dec 03 17:12:19.407005 2013] [mpm_winnt:notice] [pid 10180:tid 408] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 03 17:12:21.411119 2013] [mpm_winnt:notice] [pid 7664:tid 300] AH00364: Child: All worker threads have exited.
[Tue Dec 03 17:12:21.434121 2013] [mpm_winnt:notice] [pid 10180:tid 408] AH00430: Parent: Child process 7664 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
[Tue Dec 03 17:12:23.036212 2013] [mpm_winnt:notice] [pid 904:tid 408] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Tue Dec 03 17:12:23.036212 2013] [mpm_winnt:notice] [pid 904:tid 408] AH00456: Server built: Feb 22 2013 22:08:37
[Tue Dec 03 17:12:23.036212 2013] [core:notice] [pid 904:tid 408] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Tue Dec 03 17:12:23.037212 2013] [mpm_winnt:notice] [pid 904:tid 408] AH00418: Parent: Created child process 9288
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
[Tue Dec 03 17:12:23.732252 2013] [mpm_winnt:notice] [pid 9288:tid 300] AH00354: Child: Starting 150 worker threads.
[Tue Dec 03 17:15:00.675229 2013] [mpm_winnt:notice] [pid 904:tid 408] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 03 17:15:02.683344 2013] [mpm_winnt:notice] [pid 9288:tid 300] AH00364: Child: All worker threads have exited.
[Tue Dec 03 17:15:02.706345 2013] [mpm_winnt:notice] [pid 904:tid 408] AH00430: Parent: Child process 9288 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
[Tue Dec 03 17:15:04.385441 2013] [mpm_winnt:notice] [pid 4544:tid 408] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Tue Dec 03 17:15:04.385441 2013] [mpm_winnt:notice] [pid 4544:tid 408] AH00456: Server built: Feb 22 2013 22:08:37
[Tue Dec 03 17:15:04.385441 2013] [core:notice] [pid 4544:tid 408] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Tue Dec 03 17:15:04.386441 2013] [mpm_winnt:notice] [pid 4544:tid 408] AH00418: Parent: Created child process 11524
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
[Tue Dec 03 17:15:05.087481 2013] [mpm_winnt:notice] [pid 11524:tid 300] AH00354: Child: Starting 150 worker threads.
[Tue Dec 03 17:21:07.324200 2013] [mpm_winnt:notice] [pid 4544:tid 408] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 03 17:21:09.328314 2013] [mpm_winnt:notice] [pid 11524:tid 300] AH00364: Child: All worker threads have exited.
[Tue Dec 03 17:21:09.351316 2013] [mpm_winnt:notice] [pid 4544:tid 408] AH00430: Parent: Child process 11524 exited successfully.
You haven't given enough information for people to be able to reply to "how to fix this error?".
It could be all manner of things, and without info it's impossible to tell.
Did the issue start after you uploaded a file? Perhaps a new .php file, or .htaccess file?
These (and other) file types can cause a server problem, so check what you last uploaded (if anything) and upload a previous version, or better yet back up files you recently added (if any) and remove them from the server, and see if the error goes away.
You need to examine the log files more closely. Read through and see if you can see anything that looks serious, paste the log entry details into Stack Overflow search (and Google) and see if others have details about it.
You should typically be looking in /var/log/apache2/error.log, but depends on what the config is set to.