Re: apache 2.4 envvars ? Deb 9.4

2018-07-16 Thread Peter Wiersig
Dave  writes:

> when i run apache2, i get an error APACHE_PID_FILE missspelled or 
> unknown var.
>
> and how do i include the "envvars" in the apache2.conf file ?
>
> please advise.

/usr/share/doc/apache2/README.Debian.gz:

   Apache2 Configuration under Debian GNU/Linux
   

   (...)
   
   Please be aware that this layout is quite different from the standard
   Apache configuration. Due to the use of environment variables, apache2
   needs to be started/stopped with '/etc/init.d/apache2', apachectl, or
   apache2ctl. Calling '/usr/bin/apache2' directly will not work with the
   default configuration. To call apache2 with specific command line
   arguments, just call apache2ctl with the same arguments.

I guess both of your problems vanish after you use apache2ctl instead.

Peter



apache 2.4 envvars ? Deb 9.4

2018-07-15 Thread Dave
when i run apache2, i get an error APACHE_PID_FILE missspelled or 
unknown var.


and how do i include the "envvars" in the apache2.conf file ?

if i remove this varible i get no error but, i get errors when i try to 
install php saying missing "envvars /var/run/apache2/pid.pid"


the envvars file only has 1 active line

APACHE_PID_FILE /var/run/apapche2.pid


please advise.