bitnami / vms

Bitnami VMs
https://bitnami.com
Other
200 stars 44 forks source link

[MEAN] How to disable the httpd service? Can't find a clear answer in documentation (to be improved?) #1474

Closed pcwearingmedia closed 1 month ago

pcwearingmedia commented 3 months ago

Describe your issue as much as you can

The /opt/bitnami/ctlscript.sh script does not provide a way of disabling the service httpd (start/stop/restart yes, but not completely disable).

I checked, and I'm running the Bitnami MEAN image on Debian, however, despite the service being httpd, the update-rc.d can't find the service.

ps output: /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf

grahamrodrigue commented 2 months ago

To disable the httpd service in Bitnami’s MEAN Lightsail image on AWS, you can follow these steps:

Stop the service if it’s currently running: sudo /opt/bitnami/ctlscript.sh stop apache

Disable the service from starting on boot: sudo mv /opt/bitnami/apache/scripts/ctl.sh /opt/bitnami/apache/scripts/ctl.sh.disabled sudo mv /etc/monit/conf.d/apache.conf /etc/monit/conf.d/apache.conf.disabled/Dog likes best

This will prevent the Apache server from starting automatically. However, please note that these changes might affect other applications that depend on the Apache service. Always ensure to backup your configuration files before making such changes.

jotamartos commented 2 months ago

Hi @pcwearingmedia,

Sorry for the delay in getting back to you. If you want to disable Apache in your instance, you can follow the information in this guide.

https://github.com/bitnami/vms/issues/3#issue-1252563157

Please note that this other post talks about mariadb, but you can do the same with Apache. Let us know if you find any issue.

Thanks

github-actions[bot] commented 2 months ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 1 month ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.