• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Debian Jessie Upgrade - Apache Configuration Template Error

Huskynarr

Basic Pleskian
Since 24 Hours i try to fix my Server after a Debian Upgrade to Jessie.
My Plesk Version is 12.5.

#/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Error occured while sending feedback. HTTP code returned: 502
Error occured while sending feedback. HTTP code returned: 502
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => *domains
)

Details: [2015-10-12 17:00:12] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '7080' '--https-port' '7081'] with exit code [255]
Error occured while sending feedback. HTTP code returned: 502
[2015-10-12 17:00:24] ERR [panel] Apache config (14446654410.80565200) generation failed: Template_Exception: Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
Error occured while sending feedback. HTTP code returned: 502
Can not restart web server:



Can me someone help me?
 
Last edited:
Code:
[Mon Oct 12 20:30:15.001000 2015] [:notice] [pid 15167:tid 140624078243712] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
[Mon Oct 12 20:30:15.001124 2015] [:notice] [pid 15167:tid 140624078243712] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"
[Mon Oct 12 20:30:15.001148 2015] [:notice] [pid 15167:tid 140624078243712] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.35 2014-04-04"
[Mon Oct 12 20:30:15.001165 2015] [:notice] [pid 15167:tid 140624078243712] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Oct 12 20:30:15.001183 2015] [:notice] [pid 15167:tid 140624078243712] ModSecurity: LIBXML compiled version="2.9.1"
[Mon Oct 12 20:30:15.001213 2015] [:notice] [pid 15167:tid 140624078243712] ModSecurity: Original server signature: Apache/2.4.10 (Debian) OpenSSL/1.0.1k
[Mon Oct 12 20:30:15.001231 2015] [:notice] [pid 15167:tid 140624078243712] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Mon Oct 12 20:30:15.002858 2015] [:notice] [pid 15167:tid 140624078243712] mod_qos(009): loaded MPM is 'event' but mod_qos should be used with MPM 'Worker' only.
[Mon Oct 12 20:30:15.002902 2015] [:notice] [pid 15167:tid 140624078243712] mod_qos(009): server version is 2.4 but mod_qos should be used with Apache 2.2 only.
[Mon Oct 12 20:30:15.004209 2015] [suexec:notice] [pid 15167:tid 140624078243712] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Oct 12 20:30:15.004252 2015] [wsgi:crit] [pid 15167:tid 140624078243712] mod_wsgi (pid=15167): The mod_python module can not be used on conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.
AH00016: Configuration Failed

D-Bus Fixed (restart forget ... :/ Fail )

But reconfiguration always failed.


So, i have now disabled with:
a2dismod python
The Pyrhon Mod, now is my error log this:
Code:
[Mon Oct 12 20:36:57.124566 2015] [mpm_event:notice] [pid 15628:tid 139665400366976] AH00491: caught SIGTERM, shutting down
[Mon Oct 12 20:36:59.000817 2015] [:notice] [pid 15752:tid 139866669545344] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
[Mon Oct 12 20:36:59.000939 2015] [:notice] [pid 15752:tid 139866669545344] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"
[Mon Oct 12 20:36:59.000955 2015] [:notice] [pid 15752:tid 139866669545344] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.35 2014-04-04"
[Mon Oct 12 20:36:59.000968 2015] [:notice] [pid 15752:tid 139866669545344] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Oct 12 20:36:59.000981 2015] [:notice] [pid 15752:tid 139866669545344] ModSecurity: LIBXML compiled version="2.9.1"
[Mon Oct 12 20:36:59.000996 2015] [:notice] [pid 15752:tid 139866669545344] ModSecurity: Original server signature: Apache/2.4.10 (Debian) OpenSSL/1.0.1k
[Mon Oct 12 20:36:59.001013 2015] [:notice] [pid 15752:tid 139866669545344] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Mon Oct 12 20:36:59.002381 2015] [:notice] [pid 15752:tid 139866669545344] mod_qos(009): loaded MPM is 'event' but mod_qos should be used with MPM 'Worker' only.
[Mon Oct 12 20:36:59.002405 2015] [:notice] [pid 15752:tid 139866669545344] mod_qos(009): server version is 2.4 but mod_qos should be used with Apache 2.2 only.
[Mon Oct 12 20:36:59.003424 2015] [suexec:notice] [pid 15752:tid 139866669545344] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Oct 12 20:36:59.183771 2015] [auth_digest:notice] [pid 15754:tid 139866669545344] AH01757: generating secret for digest authentication ...
[Mon Oct 12 20:36:59.183911 2015] [:notice] [pid 15754:tid 139866669545344] mod_bw : Memory Allocated 0 bytes (each conf takes 48 bytes)
[Mon Oct 12 20:36:59.183922 2015] [:notice] [pid 15754:tid 139866669545344] mod_bw : Version 0.92 - Initialized [0 Confs]
[Mon Oct 12 20:37:00.009836 2015] [:notice] [pid 15758:tid 139866669545344] FastCGI: process manager initialized (pid 15758)
[Mon Oct 12 20:37:00.013578 2015] [:notice] [pid 15754:tid 139866669545344] mod_qos(009): loaded MPM is 'event' but mod_qos should be used with MPM 'Worker' only.
[Mon Oct 12 20:37:00.013613 2015] [:notice] [pid 15754:tid 139866669545344] mod_qos(009): server version is 2.4 but mod_qos should be used with Apache 2.2 only.
[Mon Oct 12 20:37:00.014177 2015] [wsgi:warn] [pid 15754:tid 139866669545344] mod_wsgi: Compiled for Python/2.7.8.
[Mon Oct 12 20:37:00.014188 2015] [wsgi:warn] [pid 15754:tid 139866669545344] mod_wsgi: Runtime using Python/2.7.9.
[Mon Oct 12 20:37:00.021064 2015] [mpm_event:notice] [pid 15754:tid 139866669545344] AH00489: Apache/2.4.10 (Debian) OpenSSL/1.0.1k Apache SVN/1.8.10 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 mod_qos/11.5 mod_wsgi/4.3.0 Python/2.7.9 mod_perl/2.0.9dev Perl/v
5.20.2 configured -- resuming normal operations
[Mon Oct 12 20:37:00.021096 2015] [core:notice] [pid 15754:tid 139866669545344] AH00094: Command line: '/usr/sbin/apache2'
 
Last edited:
Code:
/etc/init.d/apache2: 64: .: Can't open /etc/apache2/envvars
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
failed!

Code:
:~# systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since Di 2015-10-13 10:50:16 BST; 9s ago
  Process: 6295 ExecStart=/etc/init.d/apache2 start (code=exited, status=2)

Okt 13 10:50:16 servername apache2[6295]: /etc/init.d/apache2: 64: .: Can't open /etc/apache2/envvars
Okt 13 10:50:16 servername apache2[6295]: /etc/init.d/apache2: 76: .: Can't open /etc/apache2/envvars
Okt 13 10:50:16 servername apache2[6295]: ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
Okt 13 10:50:16 servername systemd[1]: apache2.service: control process exited, code=exited status=2
Okt 13 10:50:16 servername systemd[1]: Failed to start LSB: Apache2 web server.
Okt 13 10:50:16 servername systemd[1]: Unit apache2.service entered failed state.

Code:
:~# journalctl -xn
-- Logs begin at Mo 2015-10-12 22:23:19 BST, end at Di 2015-10-13 10:50:24 BST. --
Okt 13 10:50:01 servername CRON[6254]: pam_unix(cron:session): session closed for user root
Okt 13 10:50:10 servername sshd[6271]: Accepted keyboard-interactive/pam for root from 89.13.145.178 port 28625 ssh2
Okt 13 10:50:10 servername sshd[6271]: pam_unix(sshd:session): session opened for user root by (uid=0)
Okt 13 10:50:16 servername apache2[6295]: /etc/init.d/apache2: 64: .: Can't open /etc/apache2/envvars
Okt 13 10:50:16 servername apache2[6295]: /etc/init.d/apache2: 76: .: Can't open /etc/apache2/envvars
Okt 13 10:50:16 servername apache2[6295]: ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
Okt 13 10:50:16 servername systemd[1]: apache2.service: control process exited, code=exited status=2
Okt 13 10:50:16 servername systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Okt 13 10:50:16 servername systemd[1]: Unit apache2.service entered failed state.
Okt 13 10:50:24 servername sshd[6320]: Connection closed by 177.124.226.37 [preauth]
 
Last edited:
How can i "refresh" the complete Apache?
I want to cry and kicking out my Server.

Complete Remove from apache and install via PLesk Autoinstaller was exactly the same Problem. He generate no Configuration Files.


Where are located the apache configuration templates?
 
Last edited:
You might want to purge apache packages, and then install again:

Code:
# dpkg -P --force-all apache2 apache2-bin  apache2-data  apache2-mpm-event  apache2-mpm-prefork  apache2-utils
(Reading database ... 153962 files and directories currently installed.)
Removing apache2-mpm-event (2.4.10-10+deb8u3) ...
Removing apache2-mpm-prefork (2.4.10-10+deb8u3) ...
dpkg: apache2-bin: dependency problems, but removing anyway as you requested:
apache2 depends on apache2-bin (= 2.4.10-10+deb8u3).
....
# apt-get -f install
Reading package lists... Done
...
# apt-get install apache2 apache2-bin  apache2-data  apache2-mpm-event  apache2-mpm-prefork  apache2-utils
...
 
:) The Error Message on Reconfigure is now other.

Now, only the nginx makes the same Problem.

Which Packages is it from Nginx?
 
Hello,

Only one package: sw-nginx.

But could you also post errors, it might be helpful for other people, who look for solution by googling errors
 
I have no removed all ... removed manuell apache/nginx directorys ... and installed new:
Code:
ERROR: Module mpm_event does not exist!
dpkg: error processing package apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on apache2 (>= 2.4); however:
  Package apache2 is not configured yet.

dpkg: error processing package libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache2
libapache2-mod-php5
E: Sub-process /usr/bin/dpkg returned an error code (1)

ERROR: Ein Fehler ist aufgetreten bei dem Versuch, Pakete zu installieren.
Achtung! Ihre Software ist vielleicht nicht betriebsbereit.
Bitte kontaktieren Sie den technischen Produktsupport.


On the Plesk install?! Thats a joke or?
I want to cry... i get no emails, no ad Views.. nothing.

The Error is always apache 2 and nginx.
The automatic generated Konfigurations corrupt.
The Templates.




Code:
file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
plesk sendmail[29499]: my_popen(): execve(/usr/sbin/sendmail.postfix) failed: No such file or directory [2]
plesk sendmail[29499]: Unable to execute MTA
plesk sendmail[29498]: sendmail unsuccessfully finished with exitcode 70
[2015-10-13 15:24:17] ERR [panel] Unable to send mail.
[2015-10-13 15:24:17] ERR [panel] Administrator notification failed: Unable to send mail.
apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory

Warning : failed to perform deferred action : httpd_reconfigure
Trying to restart service apache2... * apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since Tue 2015-10-13 15:24:18 BST; 6ms ago
  Process: 25886 ExecStop=/etc/init.d/apache2 stop (code=exited, status=2)
  Process: 29522 ExecStart=/etc/init.d/apache2 start (code=exited, status=2)


Okay, Why is there .. on a fresh Install unable die find the File? They must be created ... and isn't!
 
Last edited:
Seems mpm-envent not installed or not yet configured. Try to disable it now, and enable it after installation completed:
Code:
# a2dismod  mpm_event
Module mpm_event disabled.
To activate the new configuration, you need to run:
  service apache2 restart
# a2enmod  mpm_prefork
Considering conflict mpm_event for mpm_prefork:
# apt-get -f install
....
 
Code:
# /opt/psa/admin/bin/apache-config -t
[Tue Oct 13 18:59:51.235450 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Tue Oct 13 18:59:51.235529 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Tue Oct 13 18:59:51.235557 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Tue Oct 13 18:59:51.235570 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Tue Oct 13 18:59:51.235592 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 13 18:59:51.247057 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Tue Oct 13 18:59:51.247141 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Tue Oct 13 18:59:51.248006 2015] [core:warn] [pid 27708] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
AH00534: apache2: Configuration error: No MPM loaded.
Action '-t' failed.
The Apache error log may have more information.

# a2enmod  mpm_prefork
Enabling module mpm_prefork.
To activate the new configuration, you need to run:
  service apache2 restart

# service apache2 restart
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.

# apt-get install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


About the Dashboard Button:
Code:
Konfigurieren des Webservers nicht möglich:Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Error occured while sending feedback. HTTP code returned: 502 Error occured while sending feedback. HTTP code returned: 502 Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2015-10-13 19:20:50] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1] Error occured while sending feedback. HTTP code returned: 502 [2015-10-13 19:20:56] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1] Error occured while sending feedback. HTTP code returned: 502 [2015-10-13 19:20:57] ERR [panel] Apache config (14447604450.01483100) generation failed: Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8 AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 plesk sendmail[22995]: my_popen(): execve(/usr/sbin/sendmail.postfix) failed: No such file or directory [2] plesk sendmail[22995]: Unable to execute MTA plesk sendmail[22994]: sendmail unsuccessfully finished with exitcode 70 [2015-10-13 19:20:57] ERR [panel] Unable to send mail. [2015-10-13 19:20:57] ERR [panel] Administrator notification failed: Unable to send mail. Error occured while sending feedback. HTTP code returned: 502 AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8 AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
 
Last edited:
With this commands:
Code:
plesk repair fs -verbose
plesk repair web -verbose



Code:
 Repair server-wide configuration parameters for web servers? [Y/n] Y
    Repairing server-wide configuration parameters for web servers .. [2015-10-13 19:26:53] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/httpdmng' '--reconfigure-server'] with exit code [1]
Error occured while sending feedback. HTTP code returned: 502
[FAILED]
    - httpdmng failed: [2015-10-13 19:26:42] ERR [util_exec]
      proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t']
      with exit code [1]
      [2015-10-13 19:26:51] ERR [util_exec] proc_close() failed
      ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
      Error occured while sending feedback. HTTP code returned: 502
      [2015-10-13 19:26:52] ERR [panel] Apache config
      (14447607950.94597900) generation failed: Template_Exception:
      AH00548: NameVirtualHost has no effect and will be removed in
      the next release /etc/apache2/ports.conf:8
      AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
      Invalid command 'Require', perhaps misspelled or defined by a
      module not included in the server configuration

      file:
      /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
      line: 75
      code: 0
      plesk sendmail[25646]: my_popen():
      execve(/usr/sbin/sendmail.postfix) failed: No such file or
      directory [2]
      plesk sendmail[25646]: Unable to execute MTA
      plesk sendmail[25645]: sendmail unsuccessfully finished with
      exitcode 70
      [2015-10-13 19:26:52] ERR [panel] Unable to send mail.
      [2015-10-13 19:26:52] ERR [panel] Administrator notification
      failed: Unable to send mail.
      Error occured while sending feedback. HTTP code returned: 502
      AH00548: NameVirtualHost has no effect and will be removed in
      the next release /etc/apache2/ports.conf:8
      AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
      Invalid command 'Require', perhaps misspelled or defined by a
      module not included in the server configuration




So..... apache2.conf looks so:
Code:
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#    /etc/apache2/
#    |-- apache2.conf
#    |    `--  ports.conf
#    |-- mods-enabled
#    |    |-- *.load
#    |    `-- *.conf
#    |-- conf-enabled
#    |    `-- *.conf
#     `-- sites-enabled
#        `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

#<Directory /srv/>
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
    Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
GracefulShutDownTimeout 3
AddOutputFilter INCLUDES .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
 
Require apache directive supplied by mod_authz_*. You can enable it by a2enmod authz_host authz_user
 
..... They all already enabled.

My ServerSupport tell me this:
http://kb.odin.com/en/125735

That i have never found before. :/

After long Search im now here:

Code:
[Wed Oct 14 08:13:21.010942 2015] [:crit] [pid 18010:tid 140023622887296] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed
Action '-t' failed.
The Apache error log may have more information.
But, how can i compile this new with Plesk?
The Tutorials on kb.odin.com say very strange and unsafe methods.
 
You shoundn't recompile php. This is a known limitation of Apache 2.4 mpm-event.
mod_php will conflict with mpm_event. If you don't need php, you can disable it (a2dismod php), or switch to mpm_prefork (a2dismod mpm_event, a2enmod mpm_event)
 
Solution: I do not recommend, but I have the dumps and vhosts saved and exported.
Plesk purely talled.

Cause:
Distributions upgrade preparations not taken.
 
Back
Top