• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Issue ModSecurity and bad gateway 500 nginx

tomaszt

New Pleskian
Server operating system version
Ubuntu 18.04
Plesk version and microupdate number
18.0.65
Hello since last update i have much trouble with my plesk installation

Every night turn my plesk all the engines off apache and nginx and my websites are not resolvable i get then nginx500 bad gateway.

It's seems to have problems with ModSecurity because if i go to my plesk i see a error like this

apache2: Syntax error on line 147 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/security2.conf: No such file or directory

i have checked or this file exist and it's exist and have content but i have no idea why it can not be open.
also i get every hour mail like this:

run-parts: /etc/cron.hourly/01-awp_hourly exited with return code 1

Maybe someone can help me? I have search trough the forum and used couple of solutions but nothing have worked :(
 
Hello!
Looks like `/etc/cron.hourly/01-awp_hourly` is some custom cron script doesn't provided by Plesk. Probably it affects to your problem. Can you provide the context of it?
 
Hi this is it
#!/usr/bin/env /bin/bash
source "/var/awp/etc/config"
export LANG="en_US.UTF-8"
WAIT=$(echo $RANDOM | cut -c1-3)

if [ "$AIR_GAPPED" == "yes" ]; then
echo "AIR_GAPPED set to yes. Skipping execution of awp_hourly"
exit 0
fi

if [ "$AUTOMATIC_UPDATES" == "hourly" ]; then
sleep $WAIT
/var/awp/bin/aum -u >/dev/null 2>&1
if [ $? -ne 0 ]; then
yum -y upgrade awp awp-web >/dev/null 2>&1
fi
fi


But now i don't get it i get only ounce per day this mail

/etc/cron.daily/asl:
Error: ASL has not been configured
run-parts: /etc/cron.daily/asl exited with return code 1
 
And when i change to ASL

i get this error

apache2: Syntax error on line 147 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/security2.conf: No such file or directory again and than my websites are down
 
Back
Top