Apache failed to start after implementing SSL Certificate on AWS Lightsail Wordpress Instance

Type: Bitnami Support Tool

I tried to configure “Let’s Encrypt” SSL Certifcate on my AWS Lightsail Wordpress instance. I used the step-by-step guide on AWS

Everything was working fine until I reached to Step 7: Create links to the Let’s Encrypt certificate files in the Apache server directory

When I excutred the following command
sudo /opt/bitnami/ctlscript.sh start

I got the following error
Job for bitnami.service failed because the control process exited with error code.
See “systemctl status bitnami.service” and “journalctl -xe” for details.

Then after searching the error I got when executing
systemctl status bitnami.service
journalctl -xe

I reached to a post on your community forum that advises to intall your diagnotstic tool.
I’ve done that and below is the output.

Will you please help me to solve this issue?

===== Begin of bndiagnostic tool output =====

? Apache: Found possible issues
✓ Mariadb: No issues found
? Connectivity: Found possible issues
✓ Wordpress: No issues found
? Resources: Found possible issues
? Processes: Found possible issues
✓ Php: No issues found


Found recent error or warning messages in the Apache error log.

[Thu Oct 07 19:32:13.627669 2021] [core:error] [pid 1862:tid 139986171049728] 
[client **ip_address**:42158] AH00126: Invalid URI in request 'bin/sh' 'POST 
/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1'
 [Thu Oct 07 21:06:06.390186 2021] [core:error] [pid 3351:tid 139986414077696] 
[client **ip_address**:33136] AH00126: Invalid URI in request 
Press [Enter] to continue:
'apache2/icons/sphere1.png' 'HEAD /icons/.%2e/%2e%2e/apache2/icons/sphere1.png 
 [Thu Oct 07 21:21:52.495208 2021] [core:error] [pid 3351:tid 139986867283712] 
[client **ip_address**:60190] AH00126: Invalid URI in request 
'apache2/icons/sphere1.png' 'HEAD /icons/.%2e/%2e%2e/apache2/icons/sphere1.png 

Please check the following guide to troubleshoot server issues:


The Apache configuration has errors:

AH00526: Syntax error on line 4 of /opt/bitnami/apache/conf/vhosts/wordpress-https-vhost.conf: SSLCertificateFile: file '/opt/bitnami/apache/conf/bitnami/certs/server.crt' does not exist or is empty

Please check the configuration.

Press [Enter] to continue:

Server ports 22, 80 and/or 443 are not publicly accessible. Please check the following guide to open server ports for remote access:



Your instance has little available RAM memory.

 total used free shared buff/cache available 
Mem: 983 305 86 9 592 504 
Swap: 634 4 630

You could try to increase your instance’s memory. Please check your cloud
provider’s documentation for more information.


One or more component’s processes are not running:

apache not running 
mariadb not running 
php-fpm not running

You can try to restart the process with the following command:
Press [Enter] to continue:

 $ sudo /opt/bitnami/ctlscript.sh start COMPONENT_NAME

===== End of bndiagnostic tool output =====

Hello @mlababidi84,

Did you follow our documentation? If not, please try to follow it:

Could you please share with us the code of the bnsupport so we can check the files?

Could you please try running the following commands to figure out what is happening?

$ systemctl status bitnami.service
$ journalctl -xe


Hi @davidg

I’m not pursuing a solution for this issue further, I’ll close this thread.

Thank you for your help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.