Apache crash on launch - W2008 Server - xampp

I installed Xampp on my Windows Server 2008. It worked fine, untill I decided to install some updates.
Now Apache doesn't start any more and I get these errors;
[Wed Aug 29 23:31:20.328125 2012] [core:warn] [pid 1540:tid 312] AH00098: pid file
C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Aug 29 23:31:20.968750 2012] [ssl:warn] [pid 1540:tid 312] AH01873: Init:Session Cache is not configured [hint: SSLSessionCache]
I'm trying to install Cacti on the server to monitor everything... Don't think it's relevant, but just saying

If you still need it:
http://httpd.apache.org/docs/2.4/upgrading.html#post_234
Apache 2.4 will not start with added SSL support on windows until additional module (compare to Apache 2.2 configuration) was enabled: socache_shmcb_module
This additional info is at the beginning of the httpd-ssl.conf, but it takes time to read it :)
# Required modules: mod_log_config, mod_setenvif, mod_ssl, socache_shmcb_module (for default value of SSLSessionCache)

Related

xampp apache is not starting after php update from 7.2 to 7.4

I tried to update PHP7.2 to PHP7.4 for my XAMPP Apache on Windows 10. Now Apache is not starting.
The log error is:
[Fri Jul 23 10:47:04.645093 2021] [mpm_winnt:notice] [pid 15604:tid 764] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Fri Jul 23 10:47:07.981978 2021] [mpm_winnt:notice] [pid 5588:tid 704] AH00364: Child: All worker threads have exited.
[Fri Jul 23 10:47:10.535573 2021] [mpm_winnt:notice] [pid 15604:tid 764] AH00430: Parent: Child process 5588 exited successfully.
The error message from apache is:
10:47:39 AM [Apache] Error: Apache shutdown unexpectedly.
10:47:39 AM [Apache] This may be due to a blocked port, missing dependencies,
10:47:39 AM [Apache] improper privileges, a crash, or a shutdown by another method.
10:47:39 AM [Apache] Press the Logs button to view error logs and check
10:47:39 AM [Apache] the Windows Event Viewer for more clues
10:47:39 AM [Apache] If you need more help, copy and post this
10:47:39 AM [Apache] entire log window on the forums
I followed this tutorial:
https://medium.com/oceanize-geeks/how-to-upgrade-lower-version-to-latest-php-version-in-xampp-on-windows-f7be9a70bbb0
PHP configuration
# # PHP-Module setup
#
LoadFile "C:/xampp/php/php7ts.dll"
LoadFile "C:/xampp/php/libpq.dll"
LoadModule php7_module "C:/xampp/php/php7apache2_4.dll"
<IfModule php7_module>
PHPINIDir "C:/xampp/php"
</IfModule>

xampp control new install

Everytime I install XAMPP on my new laptop I get this popup when closing:
enter error when i close xampp control panel
and this in the error log and I have no clue why
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::798c:c498:a91e:b3f0. Set the 'ServerName' directive globally to suppress this message
[Fri May 29 22:49:30.682665 2020] [core:warn] [pid 9748:tid 836] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri May 29 22:49:30.694634 2020] [ssl:warn] [pid 9748:tid 836] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Fri May 29 22:49:30.696594 2020] [:emerg] [pid 9748:tid 836] AH00020: Configuration Failed, exiting```

Spring Boot - Tomcat - Apache2 - HTTP 503 Error - ProxyIOBufferSize

I have installed my Spring Boot application at an Ubuntu version 18 server.
I use apache2 and lets encrypt to secure the application with SSL.
The application works fine in 95%, sometimes I get a HTTP 503 error at the client (Browser debugging view)
If HTTP 503 appears at the Browser/Client an entry is also made at apache2 log file which looks like this:
[Thu Mar 26 00:10:52.731383 2020] [proxy_ajp:error] [pid 16266:tid 139926293157632] [client
xxxx.xxxx.3.59:60869] AH00893: dialog to 127.0.0.1:9090 (localhost) failed, referer:
https domain
[Thu Mar 26 00:10:57.802571 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928]
(70014)End of file found: AH01030: ajp_ilink_receive() can't receive header
[Thu Mar 26 00:10:57.802597 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928] [client
xxx.xxx.3.59:60875] AH00992: ajp_read_header: ajp_ilink_receive failed, referer:
https domain
[Thu Mar 26 00:10:57.802628 2020] [proxy_ajp:error] [pid 16266:tid 139926720988928]
(120006)APR does not understand this error code: [client xxx.xxx.3.59:60875] AH00878: read
response failed from 127.0.0.1:9090 (localhost), referer: https domain
I found this thread:
We did some more investigation and found that the Apache setting that enables packets > 8192
(ProxyIOBufferSize 65536) was not going into effect because it was wrapped in an <IfModule
... > condition. (The module is loaded but we are investigating why the condition isn't
satisfied.) Tomcat 8.5 worked because it never sent packets larger than 8192, even though it
was allowed to, Tomcat 9 is sending bigger packets as it is configured to. With
ProxyIOBufferSize outside of the conditional, it is now working as expected.
My question now would be if it is possible that the size of ProxyIOBufferSize is to small and how can I adjust ProxyIOBufferSize in apache2 config file.
You can change ProxyIOBufferSize Directive of Module mod_proxy ref : https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyiobuffersize
Edit proxy section of /etc/apache2/sites-enabled/000-default.conf :
<Proxy>
ProxyIOBufferSize 65536
</Proxy>

Docker error: Error response from daemon: Mounts denied: on OS X

I've currently a problem and can't find a solution. I've created an apps folder in my document directory of my user and set it as apps path in the config. When I try to run the docker I get following error:
Error response from daemon: Mounts denied: The path
/users/username/documents/development/docker-apps is not shared from
OS X and is not known to Docker. You can configure shared paths from
Docker -> Preferences... -> File Sharing.
I've added the /Users in the preferences globally but the issue is still there:
When I try to add the path I get an error massage that it's not possible because I've added the /Users globally.
My research ended with no helpful answers so I would really appreciate if you can help me with this problem.
I've found the problem. It seems that OS X with Docker has a problem with the path. On Linux all works fine but in OS X not. So when you write this here in the terminal, it will work but not in the Docker:
/users/username/documents/development/docker-apps
So when you add another / at the end like this:
/users/username/documents/development/docker-apps/
it will work.
For MacOS Docker 3.0 or higher answer provided by
François Alexandre
Docker: Mounts denied. The paths ... are not shared from OS X and are not known to Docker
"With the new version 3.0.0 of Docker for mac, you need to disable use
gRPC FUSE for file sharing in Preferences>Experimental Features."
For me it was running docker run shell script as sudo that resolved the issue.
IND00237:dispatcher-sdk-2.0.22 rahul.saini$ ./bin/docker_run.sh ./out host.docker.internal:4503 8080
docker: Error response from daemon: Mounts denied:
The paths /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/vhosts_conf and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/custom_vars and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/global_vars and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/rules_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/filters_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/rewrite_rules and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/farms_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/clientheaders_any and /users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/out/virtualhosts_any
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
ERRO[0000] error waiting for container: context canceled
IND00237:dispatcher-sdk-2.0.22 rahul.saini$ sudo su
Password:
sh-3.2# cd /Users/rahul.saini/aem-cloud-sdk/aem-sdk-2020.6.3766.20200619T110731Z-200604/dispatcher-sdk-2.0.22/
sh-3.2# ./bin/docker_run.sh ./out host.docker.internal:4503 8080
Running script /docker_entrypoint.d/10-check-environment.sh
Running script /docker_entrypoint.d/20-create-docroots.sh
Running script /docker_entrypoint.d/30-wait-for-backend.sh
Waiting until host.docker.internal is available
host.docker.internal resolves to 192.168.65.2
Running script /docker_entrypoint.d/40-generate-allowed-clients.sh
Running script /docker_entrypoint.d/50-check-expiration.sh
Running script /docker_entrypoint.d/60-check-loglevel.sh
Running script /docker_entrypoint.d/70-check-forwarded-host-secret.sh
Starting httpd server
[Wed Jul 01 08:05:16.270293 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured.
[Wed Jul 01 08:05:16.270332 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: APR compiled version="1.6.3"; loaded version="1.6.3"
[Wed Jul 01 08:05:16.270337 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: PCRE compiled version="8.42 "; loaded version="8.42 2018-03-20"
[Wed Jul 01 08:05:16.270339 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: LIBXML compiled version="2.9.8"
[Wed Jul 01 08:05:16.270341 2020] [:notice] [pid 1:tid 140296106285960] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Wed Jul 01 08:05:16.341071 2020] [mpm_worker:notice] [pid 1:tid 140296106285960] AH00292: Apache/2.4.43 (Unix) Communique/4.3.4-20200424 mod_qos/11.63 configured -- resuming normal operations
[Wed Jul 01 08:05:16.341107 2020] [core:notice] [pid 1:tid 140296106285960] AH00094: Command line: 'httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf -D FOREGROUND -D ENVIRONMENT_DEV'

wamp on windows7 - This webpage is not available

I have been using WAMP on my localhost for a few weeks and since this morning it doesn't work.
This is the error I get when loading localhost: This webpage is not available.
Firefox error is: Unable to connect. Firefox can't establish a connection to the server at localhost.
If I try to load phpmyadmin from the wamp menu, it will return the same error.
This is my apache error log:
[Mon Sep 15 23:10:36.435939 2014] [ssl:warn] [pid 2064:tid 308] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 15 23:10:36.557946 2014] [mpm_winnt:notice] [pid 2064:tid 308] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Mon Sep 15 23:10:36.557946 2014] [mpm_winnt:notice] [pid 2064:tid 308] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Mon Sep 15 23:10:36.557946 2014] [core:notice] [pid 2064:tid 308] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Mon Sep 15 23:10:36.559946 2014] [mpm_winnt:notice] [pid 2064:tid 308] AH00418: Parent: Created child process 4796
[Mon Sep 15 23:10:37.751014 2014] [ssl:warn] [pid 4796:tid 208] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 15 23:10:37.779016 2014] [mpm_winnt:notice] [pid 4796:tid 208] AH00354: Child: Starting 64 worker threads.
The day before having these problems I followed some instructions on how to make localhost load faster. I got to these instructions by simply googling "localhost slow" but I don't have the exact links to these things.
I do recall though, having disabling IPV6 (which I think is causing some problems now) in the regedit, by adding DisabledComponents with the value fffffff to the registry.
I've already deleted that key.
I also played around with the host file (which I believe I have reverted back to the original).
I currently only have one localhost in it (127.0.0.1). The rest are commented out.
If anyone needs more info, please let me know.
edit: I forgot to mention that when I run google app engine server, my localhost works fine with GAE applications but still doesn't budge for WAMP.

Resources