This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

Restarting Apache on the LAMPStack

Subscribe to Restarting Apache on the LAMPStack 4 post(s), 2 voice(s)

 
Avatar danielrm 6 post(s)

I’ve created an instance of the LAMPStack AMI for use in the Amazon cloud.

I’ve made some modifications to the Apache config file and now need to restart Apache for them to take effect.

In a PuTTY session as bitnami user, I try the commands:

cd /opt/bitnami
sudo apache2 -k restart

I get the response:
apache2: bad user name {APACHE_RUN_USER}

What have I done wrong?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

You should use the “ctlscript.sh” script to manage the servers:

$ sudo /opt/bitnami/ctlscript.sh restart apache

 
Avatar danielrm 6 post(s)

Good. That worked. Previously I was reduced to rebooting the entire machine, which works but is no way to run a system!

Are these things documented anywhere? What else does that script do? I’ve looked in vain for documentation on the Bitnami stacks. Perhaps I’m looking in the wrong place.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

We should improve or documentation for sure :) But you can find a general description at https://bitnami.com/files/stacks/lampstack/1.2-3… Also if you can find more info about Amazon images check the following link https://bitnami.com/faq/virtual_machines

I hope it helps.

Forums LAMPStack