apache2ctl Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 5998
Joined: Sat Nov 16, 2019 12:49 am

Re: apache2ctl

Post by Joulinar »

you are going to execute the command as non-root user. Therefore path variable is missing full path to apache2ctl

Pls try sudo apache2ctl as current user or use user root
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: apache2ctl

Post by MichaIng »

Ahh, that's the mystery. Good to keep in mind that sbin directories are not in the PATH when doing interactive shell sessions with non-root users.
Burgess85
Posts: 60
Joined: Sat Mar 20, 2021 5:03 pm

Re: apache2ctl

Post by Burgess85 »

MichaIng wrote: Tue Sep 21, 2021 6:48 pm Ahh, that's the mystery. Good to keep in mind that sbin directories are not in the PATH when doing interactive shell sessions with non-root users.
Magic! Cheers
Post Reply