• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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