Apache WebDAV won't start on macOS install - macos

I've installed Apache on macOS Monterey using brew install httpd. I've edited httpd.conf and can serve basic pages from the slightly modified DocumentRoot and default <Directory> container.
I would like to enable WebDAV but if I uncomment any of the following lines in httpd.conf and do brew services restart httpd, the server won't start anymore.
#Include /usr/local/etc/httpd/extra/httpd-dav.conf
#LoadModule dav_fs_module lib/httpd/modules/mod_dav_fs.so
#LoadModule dav_module lib/httpd/modules/mod_dav.so
The only messages I get in error_log are:
[Wed Feb 08 18:30:50.703116 2023] [core:notice] [pid 31963] AH00094: Command line: '/usr/local/opt/httpd/bin/httpd -D FOREGROUND'
[Wed Feb 08 18:31:26.805106 2023] [mpm_prefork:notice] [pid 31963] AH00169: caught SIGTERM, shutting down
What am I missing here?

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>

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'

sudo apachectl -k start not work on MacOS HIGH SIERRA

I've run sudo apachectl -k start , but the httpd process wasn't created.
And when I've run apachectl configtest on terminal, it shows me Syntax OK.
Also I run other commands:
sudo apachectl -k restart => httpd not running, trying to start.
sudo apachectl -k stop => httpd (pid 1369?) not running
More info about apache error_log file: LogLevel debug
[Mon Nov 27 01:15:00.390588 2017] [unique_id:info] [pid 1572] AH01566: using ip addr 192.***.*.**
[Mon Nov 27 01:15:01.004998 2017] [ssl:info] [pid 1572] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Nov 27 01:15:01.008629 2017] [ssl:info] [pid 1572] AH01876: mod_ssl/2.4.25 compiled against Server: Apache/2.4.25, Library: OpenSSL/1.0.2j
[Mon Nov 27 01:15:01.046466 2017] [unique_id:info] [pid 1574] AH01566: using ip addr 192.***.**.*
[Mon Nov 27 01:15:02.000248 2017] [ssl:warn] [pid 1574] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 27 01:15:02.000473 2017] [ssl:info] [pid 1574] AH01887: Init: Initializing (virtual) servers for SSL
Maybe you have replaced the default ruby.
Open you terminal and enter:
sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/bin/ruby
It works for me. Hope it helps.
I have same issue, looks like apachectl is somehow broken after High Sierra update. Right now the solution for me is to control Apache daemon directly by launchctl:
sudo launchctl kickstart -r system/org.apache.httpd
Well, I've just updated the apache using brew. Then I configured my apache again and now everything works well.

Can't access my CKAN installation on Amazon EC2

I followed installation guide and deployment guide and I can access CKAN site but on port 5000, not on 8080.
What have I done wrong?
--edit1--
Error log.
/var/log/apache2/ckan_default.error.log is empty.
/var/log/apache2/error.log below:
[Wed Dec 16 03:56:05.341055 2015] [core:notice] [pid 31625] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 16 05:25:00.457734 2015] [:error] [pid 32024] [client 188.68.224.62:59132] script '/var/www/html/wp/httptest.php' not found or unable to stat
[Wed Dec 16 06:46:59.218607 2015] [mpm_prefork:notice] [pid 31625] AH00171: Graceful restart requested, doing restart
[Wed Dec 16 06:46:59.367788 2015] [mpm_prefork:notice] [pid 31625] AH00163: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 16 06:46:59.367809 2015] [core:notice] [pid 31625] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 16 06:54:00.009154 2015] [:error] [pid 966] [client 188.68.224.62:40707] script '/var/www/html/wp/httptest.php' not found or unable to stat
[Wed Dec 16 13:07:30.925196 2015] [mpm_prefork:notice] [pid 31625] AH00171: Graceful restart requested, doing restart
--edit2--
Changed everything back to how the deployment guide says.
/etc/apache2/sites-available/ckan_default.conf below
<VirtualHost 127.0.0.1:8080>
ServerName ec2-xx-xx-xx-xx.ap-southeast-2.compute.amazonaws.com
ServerAlias www.ec2-xx-xx-xx-xx.ap-southeast-2.compute.amazonaws.com
WSGIScriptAlias / /etc/ckan/default/apache.wsgi
# Pass authorization info on (needed for rest api).
WSGIPassAuthorization On
# Deploy as a daemon (avoids conflicts between CKAN instances).
WSGIDaemonProcess ckan_default display-name=ckan_default processes=2 threads=15
WSGIProcessGroup ckan_default
ErrorLog /var/log/apache2/ckan_default.error.log
CustomLog /var/log/apache2/ckan_default.custom.log combined
LogLevel info
<IfModule mod_rpaf.c>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1
</IfModule>
<Directory />
Require all granted
</Directory>
</VirtualHost>
Also tried changing the 127.0.0.1:8080 to *:8080 and tried public IP address (Amazon Elastic IP) and DNS address. None of them work.
ports.conf has listen 8080 (taken out listen 80)
wsgi script and nginx config as described in guide also.
I see the "Problem loading page" on Firefox visiting the root url on port 80 but visiting 8080 just hangs and both don't have HTTP response. I can still access CKAN on port 5000.
Amazon EC2 doesn't allow connections to port 8080 by default, so could open the port if you really wanted to access it externally.
However accessing CKAN via 8080 is only for testing that the apache deployment is working, so it makes no sense to make it available externally - you can test apache is working by ssh-ing to the box and using curl.
The CKAN deployment instructions continue by telling you to install nginx as a reverse proxy, exposing CKAN on the normal port 80.

Apache crash on launch - W2008 Server

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)

Resources