• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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