I found different error messages in the Apache's log file:
When Apache was using PHP-FPM to serve the PHP code, it seems it couldn't connect to the PHP-FPM service and that's why your application was not displayed. Was the service running when executing the ctlscript.sh script?
Now, the error is different
[Tue Jan 22 11:16:44.939060 2019] [mpm_prefork:notice] [pid 13184] AH00163: Apache/2.4.37 (Unix) OpenSSL/1.0.2p PHP/7.1.23 configured -- resuming normal operations
[Tue Jan 22 11:16:44.939103 2019] [core:notice] [pid 13184] AH00094: Command line: '/opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf'
[Tue Jan 22 11:16:48.943449 2019] [mpm_prefork:error] [pid 13184] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Tue Jan 22 11:16:49.944645 2019] [core:notice] [pid 13184] AH00052: child pid 13196 exit signal Segmentation fault (11)
If seems that you need to increase the MaxRequestWorkers value in the Apache configuration. You are using a micro instance and your PHP code may require a higher instance to run. Yo change this value, you will need to edit the
To ensure that Apache is working properly, can you try to deploy a PHP info page? You will need to run these commands
sudo mv /opt/bitnami/apps/hosting/htdocs /opt/bitnami/apps/hosting/htdocs.back
sudo mkdir /opt/bitnami/apps/hosting/htdocs
sudo echo "<?php phpinfo(); ?>" > /opt/bitnami/apps/hosting/htdocs/info.php
Can you access that example PHP file?
To recover your application's code, just run these commands
sudo rm -rf /opt/bitnami/apps/hosting/htdocs
sudo mv /opt/bitnami/apps/hosting/htdocs.back /opt/bitnami/apps/hosting/htdocs