Cannot start apache or access via ftp to update apache confirm issues being reported

Keywords: WordPress - AWS - Technical issue - Services (Apache, MariaDB, MySQL…)

bnsupport ID: 2c923578-4281-ae8d-9510-2786be1d3a57

bndiagnostic output:

? Apache: Found possible issues
? Connectivity: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/administration/use-pagespeed/#disable-pagespeed
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
https://docs.bitnami.com/bch/apps/moodle/troubleshooting/deny-connections-bots-apache/
https://docs.bitnami.com/general/faq/administration/use-firewall/

bndiagnostic failure reason: see description

Description:
Running AWS Wordpress Lightsail, the bn diagnostics made some suggestions but I can’t follow the steps - FTP access doesn’t resolve, have tried going from a backup snapshot, starting new instance and apache never seems to run and there would look to be issues with the apache and wp conf which all started with an expired cert.

Hi @paul9,

the error is clear in the Apache’s log

Syntax error on line 33 of /opt/bitnami/apps/wordpress/conf/htaccess.conf: </IfModule> without matching <IfModule> section

It seems you added these lines to that file and the last “” line is wrong

#BEGIN WordPress
<IFModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

</IfModule>

Please remove it and restart Apache

sudo /opt/bitnami/ctlscript.sh restart apache

Apart from that, please increase the instance’s resources to not to run into any performance issue when accessing the application.

Happy to help!


Was my answer helpful? Click on :heart: