[users@httpd] Checking if MPM is working

2020-07-10 Thread Mahmood Naderan
Hi The output of "apache2 -V" and "apache2 -l" commands show that MPM prefork is not available in my apache web server. # apache2 -V [Fri Jul 10 15:13:36.293467 2020] [core:warn] [pid 25107] AH00111: Config variable ${APACHE_RUN_DIR} is not defined apache2: Syntax error on line 80 of /etc/apach

Re: [users@httpd] File structure for nearly identical sites

2020-07-10 Thread Yehuda Katz
Your best option to do that might be to add a separate file with that config and call it with IncludeOptional For example: ServerName $domain ServerAlias www.$domain DocumentRoot "/var/www/vhosts/$name" ErrorLog "/var/log/httpd/$name.error_log" CustomLog "/var/log/httpd/$nam

Re: [users@httpd] Checking if MPM is working

2020-07-10 Thread Holger Schramm
Am 10.07.20 um 12:47 schrieb Mahmood Naderan: Hi The output of "apache2 -V" and "apache2 -l" commands show that MPM prefork is not available in my apache web server. which os? i see ubuntu. but which one? # apache2 -V [Fri Jul 10 15:13:36.293467 2020] [core:warn] [pid 25107] AH00111: Confi

Re: [users@httpd] Checking if MPM is working

2020-07-10 Thread Eric Covener
> # apache2 -V > [Fri Jul 10 15:13:36.293467 2020] [core:warn] [pid 25107] AH00111: Config > variable ${APACHE_RUN_DIR} is not defined use apachectl - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional com

Re: [users@httpd] Checking if MPM is working

2020-07-10 Thread Mahmood Naderan
The server is Ubuntu 18.04 and I installed that via apt. The apachectl command says it is using MPM. # apachectl status   Apache Server Status for localhost (via ::1)    Server Version: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1    Server MPM: prefork    Server Built: 2020-03-13T12:

Re: [users@httpd] Checking if MPM is working

2020-07-10 Thread Mahmood Naderan
>Did you see this syntax error? OK I commented that line and left that to the apache's default. Now I can see MPM status # apache2 -V [Fri Jul 10 21:15:32.121146 2020] [core:warn] [pid 49516] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Fri Jul 10 21:15:32.121269 2020] [core:warn]

Re: [users@httpd] Checking if MPM is working

2020-07-10 Thread Eric Covener
On Fri, Jul 10, 2020 at 12:47 PM Mahmood Naderan wrote: > > >Did you see this syntax error? > > > OK I commented that line and left that to the apache's default. Put it back and continue to invoke apachectl instead of "apache2". ---

[users@httpd] Failure to start apache2 after SSL cert update.

2020-07-10 Thread Jack M. Nilles
I recently updated two virtual servers with new SSL certificates, restarted apache and got a failure to load. Here is a diagnostic: systemctl status apache2.service ● apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: dis

Re: [users@httpd] Failure to start apache2 after SSL cert update.

2020-07-10 Thread Antony Stone
On Friday 10 July 2020 at 23:54:05, Jack M. Nilles wrote: > I recently updated two virtual servers with new SSL certificates, restarted > apache and got a failure to load. > > Here is a diagnostic: Never mind what systemd tells you - what's in your apache log files? Also, have you checked the o

Re: [users@httpd] Failure to start apache2 after SSL cert update.

2020-07-10 Thread Miguel González
Have you checked the apache error logs? En 10 jul. 2020 23:54, en 23:54, "Jack M. Nilles" escribió: >I recently updated two virtual servers with new SSL certificates, >restarted apache and got a failure to load. > >Here is a diagnostic: > > systemctl status apache2.service >● apache2.service - T

Re: [users@httpd] Failure to start apache2 after SSL cert update.

2020-07-10 Thread Jack M. Nilles
The apache error logs all quit at the point just before I restarted it. User and group permissions for the SSL files are all root, as before. Jack > On 10 Jul 2020, at 15:00, Antony Stone > wrote: > > On Friday 10 July 2020 at 23:54:05, Jack M. Nilles wrote: > >> I recently updated two virtu