Keywords: LAMP/MAMP/WAMP - Google Cloud Platform - How to - Other
Description:
Hi, this is my first apache server, I used the bitnami launchpad lamp stack for Google cloud platform. I'm trying to enable authenticaton using a mysql db to store credentials. I followed this guide as it was the most applicable one I could find, though I of course used the equivalent paths for my distro. When I try to run apache with ctlscript I get:
Job for bitnami.service failed because the control process exited with error code.
See "systemctl status bitnami.service" and "journalctl -xe" for details.
When I run 'sudo systemctl status bitnami.service' I get:
● bitnami.service - LSB: bitnami init script
Loaded: loaded (/etc/init.d/bitnami; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-12-09 19:24:12 UTC; 31min ago
Process: 2423 ExecStart=/etc/init.d/bitnami start (code=exited, status=1/FAILURE)
Tasks: 21 (limit: 2011)
Memory: 104.1M
CGroup: /system.slice/bitnami.service
├─803 php-fpm: master process (/opt/bitnami/php/etc/php-fpm.conf)
├─807 php-fpm: pool www
├─808 php-fpm: pool www
├─809 php-fpm: pool www
├─810 php-fpm: pool www
├─811 php-fpm: pool www
├─812 php-fpm: pool www
├─813 php-fpm: pool www
├─814 php-fpm: pool www
├─815 php-fpm: pool www
├─816 php-fpm: pool www
├─817 php-fpm: pool www
├─818 php-fpm: pool www
├─819 php-fpm: pool www
├─820 php-fpm: pool www
├─821 php-fpm: pool www
├─822 php-fpm: pool www
├─823 php-fpm: pool www
├─824 php-fpm: pool www
├─825 php-fpm: pool www
└─826 php-fpm: pool www
Dec 09 19:24:11 bitnami-lampstack-5edc bitnami[2423]: Can't load driver file apr_dbd_mysql.so
Dec 09 19:24:12 bitnami-lampstack-5edc bitnami[2423]: 2020-12-09T19:24:11.999Z - error: Unable to perform start operation Export start for apache failed with exit code 1
Dec 09 19:24:12 bitnami-lampstack-5edc bitnami[2423]: ## 2020-12-09 19:24:12+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/010_bitnami_agent_extra...
Dec 09 19:24:12 bitnami-lampstack-5edc bitnami[2423]: ## 2020-12-09 19:24:12+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/020_bitnami_agent...
Dec 09 19:24:12 bitnami-lampstack-5edc bitnami[2423]: ## 2020-12-09 19:24:12+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/030_update_welcome_file...
Dec 09 19:24:12 bitnami-lampstack-5edc bitnami[2423]: ## 2020-12-09 19:24:12+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/040_bitnami_credentials_file...
Dec 09 19:24:12 bitnami-lampstack-5edc bitnami[2423]: ## 2020-12-09 19:24:12+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/050_clean_metadata...
Dec 09 19:24:12 bitnami-lampstack-5edc systemd[1]: bitnami.service: Control process exited, code=exited, status=1/FAILURE
Dec 09 19:24:12 bitnami-lampstack-5edc systemd[1]: bitnami.service: Failed with result 'exit-code'.
Dec 09 19:24:12 bitnami-lampstack-5edc systemd[1]: Failed to start LSB: bitnami init script.
~
I have been trying to check my logs but for some reason they don't seem to be being written to, even though I checked the envvar for APACHE_LOG_DIR and made sure I was looking in that directory.
Searching around, I found this link where people reported this error being due to a bug but I understood them to say it had been patched and (I think) I have updated apr-util to the latest version.
I've been wrestling with this for a few days now and am entirely confused, any advice would be greatly appreciated. I can post screenshots/copies of logs/outputs as needed