Apache configuration errors not being logged

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Application configuration

bnsupport ID: 7167f087-005e-cb36-8aca-fe9fa87240e0

bndiagnostic output:

? Apache: Found possible issues
? Connectivity: Found possible issues
https://docs.bitnami.com/bch/apps/moodle/troubleshooting/deny-connections-bots-apache/
https://docs.bitnami.com/general/faq/administration/use-firewall/

bndiagnostic failure reason: The suggested guides are not related with my issue

Description:
Hi,

I have on purpose set an error in the /opt/bitnami/apache/conf/httpd.conf file, line 241.

I start Apache using
sudo /opt/bitnami/ctlscript.sh start apache
and it says “Started apache” but then a
sudo /opt/bitnami/ctlscript.sh status apache
sure enough says “apache not running”

I tried many of the regular log file locations as well as the documented ones such as
/opt/bitnami/apache2/logs/error_log
but none of them tell me where the httpd.conf file error is.

When I run the Bitnami Diag Tool, I get the following error telling me exactly what I need to know:


[Apache]

The Apache configuration has errors:

AH00526: Syntax error on line 241 of /opt/bitnami/apache2/conf/httpd.conf:
Either all Options must start with + or -, or no Option may.

Please check the configuration.

So, where does the tool get its info from? How can I access that log file?

Hello @DevyOppie,

The best way to check apache is to run the command below:

apachectl configtest

I will share your feedback with the team to improve this workflow.

Regards

Hi,

Thanks that works, but I still believe that errors such as this should be logged in the error.log file. I think this is the fist time I ever didn’t see a conf file error logged in some error files.

Thanks.