I installed PHP 5.2.17 as per the following tutorial
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204
apt-get installed PHP5.5 and apache 2.4.7
PHPINFO reports that the php version of the set host is still 5.5.9
when I restart apache2 service, I get the following in error.log.
[Thu Mar 19 14:18:53.648697 2015] [mpm_prefork:notice] [pid 23518] AH00169: caught SIGTERM, shutting down
[Thu Mar 19 14:18:54.741836 2015] [:notice] [pid 5543] FastCGI: process manager initialized (pid 5543)
[Thu Mar 19 14:18:54.754243 2015] [mpm_prefork:notice] [pid 5541] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.5.9-1ubuntu4.6 configured -- resuming normal operations
[Thu Mar 19 14:18:54.754317 2015] [core:notice] [pid 5541] AH00094: Command line: '/usr/sbin/apache2'
Removing php5.5 solved the problem.
The problem probably was a conflict between the two PHP versions, using same fastcgi implementation.
Related
Apache Error Log:
[Fri Dec 17 12:10:17.386441 2021] [mpm_winnt:notice] [pid 12996:tid 612] AH00455: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.12 configured -- resuming normal operations
[Fri Dec 17 12:10:17.386441 2021] [mpm_winnt:notice] [pid 12996:tid 612] AH00456: Apache Lounge VS16 Server built: Oct 7 2021 16:27:02
[Fri Dec 17 12:10:17.386441 2021] [core:notice] [pid 12996:tid 612] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Dec 17 12:10:17.399752 2021] [mpm_winnt:notice] [pid 12996:tid 612] AH00418: Parent: Created child process 18512
I added this:
#ThreadStackSize
<IfModule mpm_winnt_module>
ThreadStackSize 88888888
</IfModule>
at the very end of httpd.conf but the error is still the same. Thanks. I've been stuck here for almost 3 days now, the connection reset thing really is stubborn. I tried several resolve but neither of them solved the issue.
Add a proper SSL certificate. that should help. currently, you don't have an SSL certificate that doesn't match the domain name you are using.
It's pretty much in the title. I've tried everything I can think of but Apache2 is doing a restart every 1min and 3seconds - without fail. It's not doing a graceful restart, as every time it restarts the client can not connect, and are met with "This site can't be reached" in Chrome.
This is happening on a VPS hosted on Linode with the Ubuntu 16.04 image. As far as I know everything was setup as default. (I inherited the site, but trying to figure out this odd issue. )
Apache is version 2.4.18.
PHP is version 7.0.30
The site does not see a lot of traffic (maybe 1k hits/month) - so traffic should not be causing this either.
Below are the logs that I'm seeing from the Apache2 error.log
[Mon Aug 27 23:04:56.015029 2018] [core:notice] [pid 32672] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 27 23:05:56.492903 2018] [mpm_prefork:notice] [pid 32672] AH00169: caught SIGTERM, shutting down
[Mon Aug 27 23:05:58.000463 2018] [:notice] [pid 32730] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
[Mon Aug 27 23:05:58.001156 2018] [:notice] [pid 32730] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.2"
[Mon Aug 27 23:05:58.001857 2018] [:warn] [pid 32730] ModSecurity: Loaded APR do not match with compiled!
[Mon Aug 27 23:05:58.001959 2018] [:notice] [pid 32730] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.38 2015-11-23"
[Mon Aug 27 23:05:58.002041 2018] [:warn] [pid 32730] ModSecurity: Loaded PCRE do not match with compiled!
[Mon Aug 27 23:05:58.002155 2018] [:notice] [pid 32730] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Aug 27 23:05:58.002230 2018] [:notice] [pid 32730] ModSecurity: YAJL compiled version="2.1.0"
[Mon Aug 27 23:05:58.002300 2018] [:notice] [pid 32730] ModSecurity: LIBXML compiled version="2.9.2"
[Mon Aug 27 23:05:58.002460 2018] [:notice] [pid 32730] ModSecurity: StatusEngine call: "2.9.0,Apache/2.4.18 (Ubuntu),1.5.1/1.5.2,8.35/8.38 2015-11-23,Lua 5.1,2.9.2,<removed_for_SO>"
[Mon Aug 27 23:05:58.060493 2018] [:notice] [pid 32730] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Mon Aug 27 23:05:58.105989 2018] [:notice] [pid 32734] FastCGI: process manager initialized (pid 32734)
[Mon Aug 27 23:05:59.016019 2018] [mpm_prefork:notice] [pid 32731] AH00163: Apache/2.4.18 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Aug 27 23:05:59.017563 2018] [core:notice] [pid 32731] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 27 23:06:59.489457 2018] [mpm_prefork:notice] [pid 32731] AH00169: caught SIGTERM, shutting down
I see the issues with APR and PCRE not having the same version, but I had read in a different thread that this should not be causing the issue I am seeing.
If there is anything else I can setup to help figure this out - that would be appreciated, or if someone else has run across something similar that would be helpful too.
I've already tried looking at HTOP to see what processes are running - nothing out of the ordinary there, I do see a CPU spike AFTER I see the restart command (Which makes sense given apache is restarting)
We do have logrotate installed (another common thing I have seen) however logrotate is set to run weekly, so I don't think that its causing this either.
We're hosting wordpress on the site as well.
Let me know if there is anything else I can add to this that might help.
EDIT: Checked on cronjobs as well - no cronjobs
So today, I was trying to do two things: get rid of extensions like .php in my domains, and use an A record to point a subdomain I have to the IP of the server on which the site I am developing is running on.
I did both at the same time, then restarted httpd, but when it came back up - I couldn't access the website at all. httpd claims it is running fine. I decided to remove the rewrite rules to see if I had somehow introduced a bug into httpd.conf, but after another restart, it still didn't serve webpages. I tried restarting the server instance - no luck again.
I hadn't changed anything else and the server was serving webpages fine before this. I am trying to access the page using just the IP address, so I don't think the A record could have made a difference either.
The output in httpd's error log is the following:
[Wed Aug 10 16:39:44.263098 2016] [suexec:notice] [pid 1843] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
[Wed Aug 10 16:39:44.308130 2016] [auth_digest:notice] [pid 1843] AH01757: generating secret for digest authentication ...
[Wed Aug 10 16:39:44.308701 2016] [lbmethod_heartbeat:notice] [pid 1843] AH02282: No slotmem from mod_heartmonitor
[Wed Aug 10 16:39:44.662464 2016] [mpm_prefork:notice] [pid 1843] AH00163: Apache/2.4.18 (Amazon) configured -- resuming normal operations
[Wed Aug 10 16:39:44.662486 2016] [core:notice] [pid 1843] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Aug 10 16:40:02.960708 2016] [mpm_prefork:notice] [pid 1843] AH00171: Graceful restart requested, doing restart
[Wed Aug 10 16:40:03.042697 2016] [auth_digest:notice] [pid 1843] AH01757: generating secret for digest authentication ...
[Wed Aug 10 16:40:03.043290 2016] [lbmethod_heartbeat:notice] [pid 1843] AH02282: No slotmem from mod_heartmonitor
[Wed Aug 10 16:40:03.105719 2016] [mpm_prefork:notice] [pid 1843] AH00163: Apache/2.4.18 (Amazon) configured -- resuming normal operations
[Wed Aug 10 16:40:03.105729 2016] [core:notice] [pid 1843] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Aug 10 16:40:03.105750 2016] [mpm_prefork:warn] [pid 1843] AH00167: long lost child came home! (pid 1968)
Any help?
Edit: I used dig on the domain that I pointed with the A-record, and it resolves to the IP (which currently times out but is otherwise the right IP). So it seemingly isn't an issue there, either. I can connect to the server with SSH fine.
I recently updated my xampp installation to current version with php7, however every thing seem to work fine until i tried testing out a laravel 5.2 project.
Accessing a page that doesn't make a database connection has no issue, but trying accessing a route that makes a db query i get the error "ERR_CONNECTION_RESET".
The error log doesn't really show any concrete errors that cause this.
[Fri Apr 22 20:50:41.365814 2016] [ssl:warn] [pid 2856:tid 436] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Apr 22 20:50:41.422857 2016] [mpm_winnt:notice] [pid 2856:tid 436] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.5 configured -- resuming normal operations
[Fri Apr 22 20:50:41.422857 2016] [mpm_winnt:notice] [pid 2856:tid 436] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 10:17:39
[Fri Apr 22 20:50:41.422857 2016] [core:notice] [pid 2856:tid 436] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Apr 22 20:50:41.427857 2016] [mpm_winnt:notice] [pid 2856:tid 436] AH00418: Parent: Created child process 7024
I have gone through php.ini configuration several times. What could cause this problem?
I've installed WampServer so many times, and everytime i face this problem.
The wamp tray icon is orange :
and i get this errors in the Apache Error Log :
[Sun May 31 07:29:32.246382 2015] [mpm_winnt:notice] [pid 2972:tid 376] AH00455: Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Sun May 31 07:29:32.246382 2015] [mpm_winnt:notice] [pid 2972:tid 376] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sun May 31 07:29:32.246382 2015] [core:notice] [pid 2972:tid 376] AH00094: Command line: 'f:\wamp\bin\apache\apache2.4.9\bin\httpd.exe -d F:/wamp/bin/apache/apache2.4.9'
[Sun May 31 07:29:32.527182 2015] [mpm_winnt:notice] [pid 2972:tid 376] AH00418: Parent: Created child process 2700
[Sun May 31 07:29:59.421630 2015] [mpm_winnt:crit] [pid 2972:tid 376] AH00419: master_main: create child process failed. Exiting.
When i test the port 80 it says :
Checked the System Environment Variables for errors and understood nothing there :
What Causes this problem?
Please check that you have the Visual C++ Redistributable for Visual Studio 2012 Update 4 installed on this computer.
Apache 2.4.9 requires this library to be installed.
Click the download button and then select either the X86(32bit) or X64(64bit) link to match the version of WAMPServer(32 or 64) that you installed.
If you are running on a 64bit Windows, its a good idea to download and install both the 64 and 32 bit libraries, as something somewhere you use in the future will also require the library.