Issue when trying to configure new symfony2 - php

I tried going to http://localhost/Symfony/web/config and then I clicked on "configure your symfony application" and then I am getting the following error:
No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
Any idea what and how I should debug this? I am testing this on OS X Mountain Lion, apache2, and PHP 5.4.6
In my logs I am seeing the following:
[Tue Aug 28 00:59:29 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 00:59:51 2012] [notice] child pid 27878 exit signal Segmentation fault (11)
[Tue Aug 28 00:59:52 2012] [notice] child pid 27877 exit signal Segmentation fault (11)
[Tue Aug 28 00:59:52 2012] [notice] child pid 27875 exit signal Bus error (10)
[Tue Aug 28 01:00:10 2012] [notice] child pid 27879 exit signal Bus error (10)
[Tue Aug 28 01:00:14 2012] [notice] child pid 27882 exit signal Segmentation fault (11)
[Tue Aug 28 01:00:20 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 01:00:23 2012] [notice] child pid 27883 exit signal Bus error (10)
[Tue Aug 28 01:00:24 2012] [notice] child pid 27884 exit signal Segmentation fault (11)
[Tue Aug 28 01:00:26 2012] [notice] child pid 27885 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:09 2012] [notice] child pid 27889 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:09 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 01:01:15 2012] [notice] child pid 27892 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:16 2012] [notice] child pid 27893 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:20 2012] [notice] child pid 27894 exit signal Segmentation fault (11)

I guess you're looking for http://localhost/Symfony/web/config.php not http://localhost/Symfony/web/config.
It's in the docs. Check it: http://symfony.com/doc/current/book/installation.html#configuration-and-setup

Related

SegmentationFault (11) on Apache (macOS)

I'm getting a segmentation fault on macOS, but only when using PHP from homebrew (tried with 7.2, 7.3). If I switch back to default macOS PHP, it works fine.
[Tue Jun 02 22:47:54.220053 2020] [core:notice] [pid 66936] AH00052: child pid 35517 exit signal Segmentation fault (11)
[Tue Jun 02 22:47:55.289187 2020] [core:notice] [pid 66936] AH00052: child pid 35520 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:17.040809 2020] [core:notice] [pid 66936] AH00052: child pid 35521 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:18.116103 2020] [core:notice] [pid 66936] AH00052: child pid 35964 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:19.183073 2020] [core:notice] [pid 66936] AH00052: child pid 35966 exit signal Segmentation fault (11)
I tried to dump Apache core, but had no luck. It only happens (as far as I know) on login screens, such as PhpMyAdmin and wp-login.
Any thoughts?
Thanks!

Apache 2 PHP "not found or unable to stat" crashes our site

Our server started to get hit with a particular URL from many different IPs. The URL was for the file wp-login.php. We are running PHP but we are not running Word Press. This looks like some sort of brute force attack. We have thousands of error log entries that look like this:
[Mon Sep 25 08:49:02.199784 2017] [:error] [pid 55904] [client 85.101.234.119:62848] script '/var/www/html/wp-login.php' not found or unable to stat
[Mon Sep 25 08:52:59.426923 2017] [:error] [pid 62559] [client 157.50.13.248:57481] script '/var/www/html/wp-login.php' not found or unable to stat
[Mon Sep 25 08:59:24.561571 2017] [:error] [pid 73252] [client 42.115.49.147:39332] script '/var/www/html/wp-login.php' not found or unable to stat
[Mon Sep 25 09:03:36.470029 2017] [:error] [pid 74502] [client 24.14.179.217:34758] script '/var/www/html/wp-login.php' not found or unable to stat
Eventually we get the following error log entry:
[Tue Sep 26 07:31:04.925077 2017] [mpm_prefork:error] [pid 53301] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
Then we start getting thousands of these entries:
[Tue Sep 26 07:40:26.028058 2017] [core:notice] [pid 53301] AH00051: child pid 61097 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:27.032093 2017] [core:notice] [pid 53301] AH00051: child pid 61118 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:28.032829 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:40:38.034664 2017] [core:notice] [pid 53301] AH00051: child pid 61127 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:38.035026 2017] [core:notice] [pid 53301] AH00051: child pid 61116 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:38.035068 2017] [core:notice] [pid 53301] AH00051: child pid 61115 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:39.499756 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:40:49.501294 2017] [core:notice] [pid 53301] AH00051: child pid 73499 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501632 2017] [core:notice] [pid 53301] AH00051: child pid 73498 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501667 2017] [core:notice] [pid 53301] AH00051: child pid 73500 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501764 2017] [core:notice] [pid 53301] AH00051: child pid 61188 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501797 2017] [core:notice] [pid 53301] AH00051: child pid 61170 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:50.509833 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:41:00.512913 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:41:10.529013 2017] [core:notice] [pid 53301] AH00051: child pid 61268 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:41:10.535317 2017] [core:notice] [pid 53301] AH00051: child pid 61201 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:41:10.535367 2017] [core:notice] [pid 53301] AH00051: child pid 61204 exit signal Bus error (7), possible coredump in /etc/apache2
Then we have literally 100 or more apache2 processes running and our swap space maxes out and the server comes to a crawl and is unresponsive.
I temporarily fixed it by putting a blank wp-login.php page in the root and restarting apache. But now I can reproduce the same behavior by simply making a request to a bogus URL. I get a 404 but I also get more apache2 processes running and the same log entries.
I don’t know very much about Apache and it’s configuration. Is there anyone that can help me with this issue ?
Thanks,
Warren

Error Fetching http headers SOAP Client

I am using a SOAP client for placing order in Magento (PHP) and Getting Error Fetching http headers while hitting that webservice.
When I restart httpd then the error disappears and I am able to place order again and again
What I tried
default_socket_timeout : 120
Code Snippet of SOAP CLIENT
$cli = new SoapClient($api_url_v2,
array(
'trace' =>true,
'connection_timeout' => 500000,
'keep_alive' => false,
)
);
checked around the httpd logs and found following
[Mon Oct 17 01:50:24 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml
[Mon Oct 17 01:53:53 2016] [notice] child pid 28113 exit signal Segmentation fault (11)
[Mon Oct 17 01:57:52 2016] [notice] child pid 29400 exit signal Segmentation fault (11)
[Mon Oct 17 02:01:14 2016] [notice] child pid 29401 exit signal Segmentation fault (11)
[Mon Oct 17 02:02:50 2016] [notice] child pid 29398 exit signal Segmentation fault (11)
[Mon Oct 17 02:05:38 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml
[Mon Oct 17 02:06:40 2016] [notice] child pid 28180 exit signal Segmentation fault (11)
Please let me know if any other information I can provide to track this out.
SOAP trace is not showing anything for me. this problem is with this web service only , my soap client is working fine with others.
Try editing php.ini file soap.wsdl_cache_enabled=1 and change it to soap.wsdl_cache_enabled=0

ModX Manager Failing to Load

I am attempting to login to my ModX install.
The manager login screen comes up, and I can type in my username and password. Once I hit login I am presented with the The connection was reset in firefox, and in Chrome with No data received - Unable to load the webpage because the server sent no data.
Error code: ERR_EMPTY_RESPONSE
The server is Ubuntu 13.10 running Apache 2 with php 5.5.3 and is my own personal server. All I've done is keep up with updates...
What can the issue be?
I don't know if this will help, but here is the log from my last restart of apache:
[Thu Apr 10 13:07:19.928031 2014] [mpm_prefork:notice] [pid 9826] AH00169: caught SIGTERM, shutting down
[Thu Apr 10 13:07:21.049656 2014] [suexec:notice] [pid 11164] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Thu Apr 10 13:07:21.077715 2014] [auth_digest:notice] [pid 11165] AH01757: generating secret for digest authentication ...
[Thu Apr 10 13:07:21.079094 2014] [:notice] [pid 11168] FastCGI: process manager initialized (pid 11168)
[Thu Apr 10 13:07:21.129505 2014] [:notice] [pid 11165] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu Apr 10 13:07:21.129536 2014] [:notice] [pid 11165] mod_python: using mutex_directory /tmp
[Thu Apr 10 13:07:21.232375 2014] [mpm_prefork:notice] [pid 11165] AH00163: Apache/2.4.6 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 PHP/5.5.3-1ubuntu2.3 mod_python/3.3.1 Python/2.7.5+ OpenSSL/1.0.1e configured -- resuming normal operations
[Thu Apr 10 13:07:21.232458 2014] [core:notice] [pid 11165] AH00094: Command line: '/usr/sbin/apache2'
[Thu Apr 10 13:08:09.296802 2014] [core:notice] [pid 11165] AH00051: child pid 11173 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:09.296887 2014] [core:notice] [pid 11165] AH00051: child pid 11187 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:34.337400 2014] [core:notice] [pid 11165] AH00051: child pid 11212 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:35.338551 2014] [core:notice] [pid 11165] AH00051: child pid 11188 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:35.338631 2014] [core:notice] [pid 11165] AH00051: child pid 11213 exit signal Segmentation fault (11), possible coredump in /etc/apache2

Issue with Codeigniter htaccess on local machine

Hi setup new code ignitior application on my local machine.
RewriteEngine on
RewriteCond $1 !^(index\.php|public|tmp|user_guide|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
This is .htaccess file content
and below is the config file content
$config['base_url'] = "http://localhost/myapp";
$config['index_page']= ""; $config['uri_protocol'] = "REQUEST_URI";
when i try to access application using http://localhost/myapp url gives ERROR 500
Error 500 localhost 10/05/11 20:43:26 Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3
So any idea what is the problem
[Wed Oct 05 21:50:22 2011] [alert] [client 127.0.0.1] C:/xampp/htdocs/myapp/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Oct 05 21:50:33 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Oct 05 21:50:33 2011] [notice] Child 4812: Exit event signaled. Child process is ending.
[Wed Oct 05 21:50:34 2011] [notice] Child 4812: Released the start mutex
[Wed Oct 05 21:50:35 2011] [notice] Child 4812: Waiting for 250 worker threads to exit.
[Wed Oct 05 21:50:35 2011] [notice] Child 4812: All worker threads have exited.
[Wed Oct 05 21:50:35 2011] [notice] Child 4812: Child process is exiting
Error in my_thread_global_end(): 1 threads didn't exit
[Wed Oct 05 21:50:43 2011] [notice] Parent: Child process exited successfully.
Error in my_thread_global_end(): 1 threads didn't exit
[Wed Oct 05 21:50:56 2011] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3 configured -- resuming normal operations
[Wed Oct 05 21:50:56 2011] [notice] Server built: Mar 5 2007 11:23:00
[Wed Oct 05 21:50:56 2011] [notice] Parent: Created child process 4164
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Child process is running
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Acquired the start mutex.
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Starting 250 worker threads.
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Starting thread to listen on port 443.
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Starting thread to listen on port 80.
It seem obvious to me - just enable Apache's mod_rewrite.
http://www.astahost.com/info.php/Apache-Tutorial-Enable-Mod_rewrite-Windows_t11623.html

Categories