client denied by server configuration: app/etc/local.xml - apache

I have installed magento on one of my test server to study the features
Here when i navigate thru the admin site or upload some pictures for any product, the apache server will stop . When i opened the apache error log it is written as
[Wed May 18 16:34:34 2011] [error] [client 172.23.1.2] client denied by server configuration: D:/Projects/InhousePortfolio/eCommerce/Jewelry/magento/1/jewelleryStore/app/etc/local.xml
[Wed May 18 16:34:55 2011] [notice] Parent: child process exited with status 255 -- Restarting.
[Wed May 18 16:39:28 2011] [warn] pid file C:/Program Files/wamp/bin/apache/Apache2.2.11/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed May 18 16:39:28 2011] [notice] Apache/2.2.11 (Win32) PHP/5.2.9 configured -- resuming normal operations
[Wed May 18 16:39:28 2011] [notice] Server built: Dec 10 2008 00:10:06
[Wed May 18 16:39:28 2011] [notice] Parent: Created child process 5796
[Wed May 18 16:39:28 2011] [notice] Child 5796: Child process is running
[Wed May 18 16:39:28 2011] [notice] Child 5796: Acquired the start mutex.
[Wed May 18 16:39:28 2011] [notice] Child 5796: Starting 64 worker threads.
[Wed May 18 16:39:28 2011] [notice] Child 5796: Starting thread to listen on port 80.
Please let me know what is the problem.
Any help will be appreciated

Please check the Yireo site for answer:
http://www.yireo.com/tutorials/magento/magento-administration/1322-client-denied-by-server-configuration-appetclocalxml

Related

Apache: Could not initialize random number generator

I'm really frustrated, my apache server doesn't start, my error.log is this:
[Fri Jul 26 16:26:20.211050 2013] [core:notice] [pid 32240:tid 268] AH00094: Command line: 'c:\\users\\mrvisiont\\desktop\\xampp\\apache\\bin\\httpd.exe -d C:/Users/MrViSiOnT/Desktop/xampp/apache'
[Fri Jul 26 16:26:20.213050 2013] [mpm_winnt:notice] [pid 32240:tid 268] AH00418: Parent: Created child process 32112
[Fri Jul 26 16:26:20.225050 2013] [:crit] [pid 32112] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
[Fri Jul 26 16:26:20.227051 2013] [mpm_winnt:crit] [pid 32240:tid 268] AH00419: master_main: create child process failed. Exiting.
I don't know what is the meaning of "Could not initialize random number generator"
Anybody knows what is the issue????
EDIT:
When I run httpd.exe, error.log is:
[Fri Jul 26 16:52:31 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Jul 26 16:52:31 2013] [notice] Digest: done
[Fri Jul 26 16:52:31 2013] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 configured -- resuming normal operations
[Fri Jul 26 16:52:31 2013] [notice] Server built: Sep 10 2011 11:34:11
[Fri Jul 26 16:52:31 2013] [notice] Parent: Created child process 16760
no listening sockets available, shutting down
Unable to open logs
[Fri Jul 26 16:52:31 2013] [crit] (OS 87)El parámetro no es correcto. : master_main: create child process failed. Exiting.
EDIT (FYI): Thank you people!
When I comment ServerName line from httpd.conf... error.log is:
httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::8e3:cc40:2151:c412 for ServerName
[Fri Jul 26 17:03:11 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Jul 26 17:03:11 2013] [notice] Digest: done
[Fri Jul 26 17:03:12 2013] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 configured -- resuming normal operations
[Fri Jul 26 17:03:12 2013] [notice] Server built: Sep 10 2011 11:34:11
[Fri Jul 26 17:03:12 2013] [notice] Parent: Created child process 13816
httpd.exe: apr_sockaddr_info_get() failed for MRVISIONT-PC
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
no listening sockets available, shutting down
Unable to open logs
[Fri Jul 26 17:03:12 2013] [crit] (OS 6)Controlador no válido. : master_main: create child process failed. Exiting.
I had similar problem and troubleshooted for days before I finally stumbled upon the solution:
Ensure that your system's PATH environment variable does not contain illegal characters such as "b?????Ä/????????".
Removing such entries resolved the problem for me.
I had a similar problem:
[:crit] [pid 7368] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
I checked the system's PATH environment variable and found Chinese signs in it.
Since I deleted them, Apache works fine.
Check your environment settings. There may be an invalid character in it. See http://www.apachelounge.com/viewtopic.php?t=5535
Besides that: it looks like you are missing the logs directory.
I ran into this issue today for a completely different reason: No PATH environment variable (at all).
The environment variable hint put me on the right track. Dumping environment vars via a test application instead of starting Apache revealed the underlying issue. The Windows CreateProcess() API is generally difficult to work with.

Setting up apache web server

Extreme noob question. I am trying to set up my apache web server. I bought a domain name from namecheap.com and have it directing to my servers IP address. I went through all the steps I believe to set up my apache server running with php. When I go to my domain name, I am at home and it is connected to the same wifi the server is, it goes to my webpage without a problem. My problem is that when I attempt to go to my domain name when I am not connected to the same wifi, I get 400 or 404 error messages. Would anyone know what I can do to fix this?
Thank you in advance!
EDIT:
Error Logs.
[Sat Jul 20 04:03:43 2013] [notice] Apache/2.2.25 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Sat Jul 20 04:03:43 2013] [notice] Server built: Jul 10 2013 01:52:12
[Sat Jul 20 04:03:43 2013] [notice] Parent: Created child process 2376
[Sat Jul 20 04:03:43 2013] [notice] Child 2376: Child process is running
[Sat Jul 20 04:03:43 2013] [notice] Child 2376: Acquired the start mutex.
[Sat Jul 20 04:03:43 2013] [notice] Child 2376: Starting 64 worker threads.
[Sat Jul 20 04:03:43 2013] [notice] Child 2376: Starting thread to listen on port 80.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Jul 20 04:05:37 2013] [warn] pid file C:/webdevs/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jul 20 04:05:37 2013] [notice] Apache/2.2.25 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Sat Jul 20 04:05:37 2013] [notice] Server built: Jul 10 2013 01:52:12
[Sat Jul 20 04:05:37 2013] [notice] Parent: Created child process 1628
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Jul 20 04:05:37 2013] [notice] Child 1628: Child process is running
[Sat Jul 20 04:05:37 2013] [notice] Child 1628: Acquired the start mutex.
[Sat Jul 20 04:05:37 2013] [notice] Child 1628: Starting 64 worker threads.
[Sat Jul 20 04:05:37 2013] [notice] Child 1628: Starting thread to listen on port 80.
[Sat Jul 20 04:22:20 2013] [warn] pid file C:/webdevs/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jul 20 04:22:20 2013] [notice] Apache/2.2.25 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Sat Jul 20 04:22:20 2013] [notice] Server built: Jul 10 2013 01:52:12
[Sat Jul 20 04:22:20 2013] [notice] Parent: Created child process 1728
[Sat Jul 20 04:22:22 2013] [notice] Child 1728: Child process is running
[Sat Jul 20 04:22:22 2013] [notice] Child 1728: Acquired the start mutex.
[Sat Jul 20 04:22:22 2013] [notice] Child 1728: Starting 64 worker threads.
[Sat Jul 20 04:22:22 2013] [notice] Child 1728: Starting thread to listen on port 80.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Jul 20 04:26:09 2013] [warn] pid file C:/webdevs/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jul 20 04:26:09 2013] [notice] Apache/2.2.25 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Sat Jul 20 04:26:09 2013] [notice] Server built: Jul 10 2013 01:52:12
[Sat Jul 20 04:26:10 2013] [notice] Parent: Created child process 1548
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Jul 20 04:26:10 2013] [notice] Child 1548: Child process is running
[Sat Jul 20 04:26:10 2013] [notice] Child 1548: Acquired the start mutex.
[Sat Jul 20 04:26:10 2013] [notice] Child 1548: Starting 64 worker threads.
[Sat Jul 20 04:26:10 2013] [notice] Child 1548: Starting thread to listen on port 80.
If I'm understanding you correctly, your web server is running on a machine that is connected to your local network. If so, it sounds like your web server is probably not publicly accessible due to a firewall or network configuration.
If your Internet connection uses a dynamic IP address, you'll likely need to set up a dynamic DNS service to point your domain to your IP address. On your network, you might also need to configure port forwarding to forward port 80 traffic to the specific IP address of the server.
For more information, check out http://lifehacker.com/160945/ask-lifehacker--host-my-web-site-at-home

The connection was reset on wamp

I have installed wamp server on my pc. Then I have installed a zend application. I put it in the medaffiliate.com directory in www directory. When I access that directory by localhost/medaffiliate.com it just shows
The connection was reset
I have gone through many answers likes
https://serverfault.com/questions/74313/what-could-cause-an-101-error-in-wamp-under-windows-7
They are all saying about closing mysql_close($connect);. My Apache error log shows me
[Sat Jul 21 18:35:45 2012] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat Jul 21 18:35:45 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Sat Jul 21 18:35:45 2012] [notice] Server built: Oct 24 2010 13:33:15
[Sat Jul 21 18:35:45 2012] [notice] Parent: Created child process 6768
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Child process is running
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Acquired the start mutex.
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Starting 64 worker threads.
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Starting thread to listen on port 80.
[Sat Jul 21 18:36:21 2012] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat Jul 21 18:36:21 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Sat Jul 21 18:36:21 2012] [notice] Server built: Oct 24 2010 13:33:15
[Sat Jul 21 18:36:21 2012] [notice] Parent: Created child process 1140
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Child process is running
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Acquired the start mutex.
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Starting 64 worker threads.
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Starting thread to listen on port 80.
[Sat Jul 21 18:40:39 2012] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat Jul 21 18:40:39 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Sat Jul 21 18:40:39 2012] [notice] Server built: Oct 24 2010 13:33:15
[Sat Jul 21 18:40:39 2012] [notice] Parent: Created child process 7892
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Child process is running
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Acquired the start mutex.
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Starting 64 worker threads.
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Starting thread to listen on port 80.
I have found other persons who are facing such problem when they create connection with database. I have created an other project on my www directory and make a connection with database. It is working. But not my project.
I am using os:window 7. Apache : 2.2.17, PHP:5.3.4, Mysql : 5.1.53
I had a similar problem that I could not fix by increasing timeouts and memory limits.
After many hours of trial and error, I finally stumbled upon this other post: https://drupal.org/node/1597820, which solved the issue for me.
Add the following to the end of httpd.conf to increase the Apache stack size to 8MB.
<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>
I have experienced this error many times and the solution for me was to increase the apache binary (apache.exe or httpd.exe) stack size. You will need the Visual studio to do that, but you can use the trial version, as I did. You don't even need to turn it on. The command is:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64>editbin /STACK:8000000 "c:\Program Files (x86)\WAMP\apache\bin\apache.exe"
Change the paths above according to your environment of course.
In the Visual studio directory VC/binary/ there are several utilities by the name editbin.exe. Use the one suitable for you platform or try them one by one, until it works (as I did).

Apache won't start after memcache installation

I installed memcache on my Ubuntu 10.04 machine but when it comes to restarting apache it gives me an error. My main root is /var/www/ and there is only index.php file in it.
Everything was working before installing memcache.
This is what I did.
Help please
ERROR:
myubuntu#ubuntu:~$ service apache2 restart
* Restarting web server apache2 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
APACHE LOG:
myubuntu#ubuntu:~$ tail -f /var/log/apache2/error.log
[Sun Mar 04 14:04:45 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sun Mar 04 18:54:35 2012] [notice] caught SIGTERM, shutting down
[Wed Mar 07 20:32:59 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Wed Mar 07 21:01:57 2012] [notice] caught SIGTERM, shutting down
[Fri Mar 09 22:20:06 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sat Mar 10 01:45:00 2012] [notice] caught SIGTERM, shutting down
[Sat Mar 10 10:58:24 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sat Mar 10 11:16:49 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Sat Mar 10 11:16:49 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico
You have to be root. You may want to use sudo when starting Apache.

Apache automatically restarting itself every couple of requests

I just started having a problem where Apache will automatically restart after every few requests it receives. It's been working fine for a long time and I'm not sure why this would happen. The only thing I did recently was add an entry to my vhosts file to listen for another virtual host on the IP that it's running on. However, I reset that back to what it was and I'm still seeing the problem.
This is what the error.log shows:
[Fri Feb 12 16:29:12 2010] [notice] Parent: child process exited with status 0 -- Restarting.
[Fri Feb 12 16:29:13 2010] [notice] Apache/2.2.8 (Win32) DAV/2 mod_fastcgi/2.4.6 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color mod_auth_sspi/1.0.1 SVN/1.4.3 PHP/5.2.5 configured -- resuming normal operations
[Fri Feb 12 16:29:13 2010] [notice] Server built: Jan 18 2008 00:37:19
[Fri Feb 12 16:29:13 2010] [notice] Parent: Created child process 6732
[Fri Feb 12 16:29:14 2010] [notice] Child 6732: Child process is running
[Fri Feb 12 16:29:14 2010] [notice] Child 6732: Acquired the start mutex.
[Fri Feb 12 16:29:14 2010] [notice] Child 6732: Starting 250 worker threads.
[Fri Feb 12 16:29:14 2010] [notice] FastCGI: process manager initialized
[Fri Feb 12 16:29:15 2010] [notice] Child 6732: Starting thread to listen on port 443.
[Fri Feb 12 16:29:15 2010] [notice] Child 6732: Starting thread to listen on port 82.
[Fri Feb 12 16:29:15 2010] [notice] Child 6732: Starting thread to listen on port 81.
[Fri Feb 12 16:29:15 2010] [notice] Child 6732: Starting thread to listen on port 80.
[Fri Feb 12 16:29:22 2010] [error] [client 192.168.3.12] (20024)The given path misformatted or contained invalid characters: Cannot map GET /wiki/index.php/Special:Random HTTP/1.1 to file, referer: http://review.laughlin.com:81/wiki/index.php/FullCircle
[Fri Feb 12 16:29:22 2010] [notice] Parent: child process exited with status 0 -- Restarting.
[Fri Feb 12 16:29:23 2010] [notice] Apache/2.2.8 (Win32) DAV/2 mod_fastcgi/2.4.6 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color mod_auth_sspi/1.0.1 SVN/1.4.3 PHP/5.2.5 configured -- resuming normal operations
[Fri Feb 12 16:29:23 2010] [notice] Server built: Jan 18 2008 00:37:19
[Fri Feb 12 16:29:23 2010] [notice] Parent: Created child process 7252
[Fri Feb 12 16:29:24 2010] [notice] Child 7252: Child process is running
[Fri Feb 12 16:29:24 2010] [notice] Child 7252: Acquired the start mutex.
[Fri Feb 12 16:29:24 2010] [notice] Child 7252: Starting 250 worker threads.
[Fri Feb 12 16:29:24 2010] [notice] FastCGI: process manager initialized
[Fri Feb 12 16:29:24 2010] [notice] Child 7252: Starting thread to listen on port 443.
[Fri Feb 12 16:29:24 2010] [notice] Child 7252: Starting thread to listen on port 82.
[Fri Feb 12 16:29:24 2010] [notice] Child 7252: Starting thread to listen on port 81.
[Fri Feb 12 16:29:24 2010] [notice] Child 7252: Starting thread to listen on port 80.
I'm running it through XAMPP (not my preference, but was set up before me) and here are the versions it lists:
Apache 2.2.8
MySQL 5.0.51
PHP 5.2.5 + PHP 4.4.8 rc2 dev + PEAR
PHP-Switch win32 1.0 (please use the "php-switch.bat")
XAMPP Control Version 2.5 from www.nat32.com
XAMPP Security 1.0
SQLite 2.8.15
OpenSSL 0.9.8g
phpMyAdmin 2.11.4
ADOdb 4.96
Mercury Mail Transport System v4.52
FileZilla FTP Server 0.9.25
Webalizer 2.01-10
Zend Optimizer 3.3.0a
eAccelerator 0.9.5.2 for PHP 5.2.5 (comment out in the php.ini)
Does anyone know any reasons this could be happening? I've trying manually restarting the Apache service many times without luck. Also found some suggestions to replace the libmysql.dll or other files in the bin, but I haven't had any luck with that either.
The only other thing I've done recently on that server is trying to get PHP running in IIS (which was already running on the machine for a long time on a different IP, but I was just trying to enable PHP). I had no luck with that so I've now disabled the attempts I made.
Turns out it was an interference from attempting to set up PHP in IIS as well on the same machine.