• The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.
  • 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 Connectivity issues in Ubuntu Server 22.04

I just reinstalled Apache2 and i still having errors

apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/aclr.load: Cannot load /usr/lib/apache2/modules/mod_aclr.so into server: /usr/lib/apache2/mod_aclr.so: cannot open shared object file: No such file or directory
 
If the syntax error with the webmail is still present, simply remove the webmail conf file for now.

Disable the missing aclr module using
Code:
a2dismod aclr
 
Bash:
~# systemctl status apache2
× apache2.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Fri 2025-01-03 23:19:06 CET; 24min ago
       Docs: https://httpd.apache.org/docs/2.4/
        CPU: 354ms

ene 03 23:18:47 h2946496.stratoserver.net systemd[1]: Starting apache2.service - The Apache HTTP Server...
ene 03 23:19:06 h2946496.stratoserver.net apachectl[1810]: AH00112: Warning: DocumentRoot [/usr/share/plesk-service.localdomain] does not exist
ene 03 23:19:06 h2946496.stratoserver.net apachectl[1810]: AH00112: Warning: DocumentRoot [/usr/share/plesk-service.localdomain] does not exist
ene 03 23:19:06 h2946496.stratoserver.net apachectl[1810]: AH00526: Syntax error on line 15 of /etc/apache2/plesk.conf.d/webmails/iperona.com_webmail.conf:
ene 03 23:19:06 h2946496.stratoserver.net apachectl[1810]: SuexecUserGroup configured, but suEXEC is disabled: Missing suexec binary /usr/lib/apache2/suexec
ene 03 23:19:06 h2946496.stratoserver.net apachectl[1767]: Action 'start' failed.
ene 03 23:19:06 h2946496.stratoserver.net apachectl[1767]: The Apache error log may have more information.
ene 03 23:19:06 h2946496.stratoserver.net systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
ene 03 23:19:06 h2946496.stratoserver.net systemd[1]: apache2.service: Failed with result 'exit-code'.
ene 03 23:19:06 h2946496.stratoserver.net systemd[1]: Failed to start apache2.service - The Apache HTTP Server.


~# systemctl start apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.


~# plesk db
-bash: /usr/sbin/plesk: No existe el archivo o el directorio


~# systemctl status sw-cp-server sw-engine
Unit sw-engine.service could not be found.
● sw-cp-server.service - Startup script for Plesk control panel server
     Loaded: loaded (/usr/lib/systemd/system/sw-cp-server.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/sw-cp-server.service.d
             └─respawn.conf
     Active: active (running) since Fri 2025-01-03 23:18:46 CET; 24min ago
   Main PID: 1754 (sw-cp-serverd)
      Tasks: 2 (limit: 38333)
     Memory: 7.1M ()
        CPU: 64ms
     CGroup: /system.slice/sw-cp-server.service
             ├─1754 "sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config"
             └─1755 "sw-cp-server: worker process"

ene 03 23:18:42 h2946496.stratoserver.net systemd[1]: Starting sw-cp-server.service - Startup script for Plesk control panel server...
ene 03 23:18:46 h2946496.stratoserver.net systemd[1]: Started sw-cp-server.service - Startup script for Plesk control panel server.

Hi, after disable the module and try to restart return this again
 
Here is another error trying again to install plesk


Bash:
START Bootstrapper 18.0.66 prep-install for BASE AT Sat Jan  4 17:49:15 CET 2025
*****  problem report *****
ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'
*****  problem report *****
ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'
*****  problem report *****
ERROR while trying to run the following SQL query: SHOW TABLES LIKE 'misc'
STOP Bootstrapper 18.0.66 prep-install for BASE AT Sat Jan  4 17:50:11 CET 2025: PROBLEMS FOUND
 
Making progress.

Is the database service running?
Bash:
systemctl status mariadb

Yes i supose

Bash:
mariadb.service - MariaDB 10.6.18 database server
     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; preset: enabled)
     Active: active (running) since Sat 2025-01-04 17:49:17 CET; 1h 48min ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 141572 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, >    Process: 141574 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited,>    Process: 141576 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin>    Process: 141627 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited>    Process: 141629 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
   Main PID: 141612 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 253326)
     Memory: 106.2M (peak: 106.9M)
        CPU: 3.112s
     CGroup: /system.slice/mariadb.service
             └─141612 /usr/sbin/mariadbd



2025-01-04 17:49:17 1 [Note] Event Scheduler: scheduler thread started with id 1                      612]: 2025-01-04 17:49:17 0 [Note] /usr/sbin/mariadbd: ready for connections.                               612]: Version: '10.6.18-MariaDB-0ubuntu0.22.04.1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Ubuntu 22>Started mariadb.service - MariaDB 10.6.18 database server.                                                  ebian-start[141632]: Upgrading MySQL tables if necessary.                                                   ebian-start[141638]: Looking for 'mariadb' as: /usr/bin/mariadb
ebian-start[141638]: Looking for 'mariadb-check' as: /usr/bin/mariadb-check
ebian-start[141638]: This installation of MariaDB is already upgraded to 10.6.7-MariaDB.
ebian-start[141638]: There is no need to run mysql_upgrade again for 10.6.18-MariaDB.
ebian-start[141638]: You can use --force if you still want to run mysql_upgrade
 
Can you access mariadb?

Bash:
mysql -uadmin -p$(cat /etc/psa/.psa.shadow)

Do you have a psa db backup in
Code:
ls -1 /var/lib/psa/dumps/mysql.daily*
 
Can you access mariadb?

Bash:
mysql -uadmin -p$(cat /etc/psa/.psa.shadow)

Do you have a psa db backup in
Code:
ls -1 /var/lib/psa/dumps/mysql.daily*

Yes, the first one returns
Code:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 276
Server version: 10.6.18-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04


The second one returns:

Code:
~# ls -1 /var/lib/psa/dumps/mysql.daily*
/var/lib/psa/dumps/mysql.daily.dump.0.gz
/var/lib/psa/dumps/mysql.daily.dump.1.gz
/var/lib/psa/dumps/mysql.daily.dump.2.gz
/var/lib/psa/dumps/mysql.daily.dump.3.gz
/var/lib/psa/dumps/mysql.daily.dump.4.gz
/var/lib/psa/dumps/mysql.daily.dump.5.gz
/var/lib/psa/dumps/mysql.daily.dump.6.gz
/var/lib/psa/dumps/mysql.daily.dump.7.gz
/var/lib/psa/dumps/mysql.daily.dump.8.gz
 
This is the whole "/var/log/plesk/install/plesk_18.0.66_installation.log" file

Bash:
START Bootstrapper 18.0.66 prep-install for BASE AT Sat Jan  4 17:49:15 CET 2025

**** Product prep-install started.
Create user 'psaadm' and group 'psaadm'
 Group 'psaadm' already exists
 Checking for the user 'psaadm'...
 User 'psaadm' already exists
Create group 'swkey-data'
 Group 'swkey-data' already exists
 Trying to add supplementary group 'swkey-data' for user 'psaadm'...  already there
Create group 'psaserv'
 Group 'psaserv' already exists
 Trying to add supplementary group 'psaserv' for user 'psaadm'...  already there
Create group 'psacln'
 Group 'psacln' already exists
 Trying to got legacy variables... done
config updated
===> Updated /etc/psa/psa.conf
 Trying to save legacy variables... done
 Checking that /opt/psa/bin/chrootsh registered as login shell...

===> Performing safe prep-install database actions


===> Upgrading database

 Trying to start service mariadb... inactive
done
 Trying to establish test connection... connected
done
 Trying to find Plesk database psa... not found
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'


ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'

 Trying to backup MySQL database... done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.18.0.65-18.0.66.20250104-174918.dump.gz
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'


ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'

===> Cumulative Plesk database upgrade (revertable stage) has been started.
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'


ERROR while trying to run the following SQL query: SHOW TABLES LIKE 'misc'


===> Restoring database from backup /var/lib/psa/dumps/mysql.preupgrade.18.0.65-18.0.66.20250104-174918.dump.gz


**** Product prep-install for BASE failed.

*****  problem report *****
ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'
*****  problem report *****
ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'
*****  problem report *****
ERROR while trying to run the following SQL query: SHOW TABLES LIKE 'misc'
STOP Bootstrapper 18.0.66 prep-install for BASE AT Sat Jan  4 17:50:11 CET 2025
START Bootstrapper 18.0.66 prep-install for BASE AT Sat Jan  4 22:12:59 CET 2025

**** Product prep-install started.
Create user 'psaadm' and group 'psaadm'
 Group 'psaadm' already exists
 Checking for the user 'psaadm'...
 User 'psaadm' already exists
Create group 'swkey-data'
 Group 'swkey-data' already exists
 Trying to add supplementary group 'swkey-data' for user 'psaadm'...  already there
Create group 'psaserv'
 Group 'psaserv' already exists
 Trying to add supplementary group 'psaserv' for user 'psaadm'...  already there
Create group 'psacln'
 Group 'psacln' already exists
 Trying to got legacy variables... done
config updated
===> Updated /etc/psa/psa.conf
 Trying to save legacy variables... done
 Checking that /opt/psa/bin/chrootsh registered as login shell...

===> Performing safe prep-install database actions


===> Upgrading database

 Trying to start service mariadb... active
done
 Trying to establish test connection... connected
done
 Trying to find Plesk database psa... not found
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'


ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'

 Trying to backup MySQL database... done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.18.0.65-18.0.66.20250104-221259.dump.gz
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'
ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'

===> Cumulative Plesk database upgrade (revertable stage) has been started.
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'


ERROR while trying to run the following SQL query: SHOW TABLES LIKE 'misc'


===> Restoring database from backup /var/lib/psa/dumps/mysql.preupgrade.18.0.65-18.0.66.20250104-221259.dump.gz


**** Product prep-install for BASE failed.

*****  problem report *****
ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'
*****  problem report *****
ERROR while trying to run the following SQL query: SELECT val FROM misc WHERE param = 'aps_database'
*****  problem report *****
ERROR while trying to run the following SQL query: SHOW TABLES LIKE 'misc'
STOP Bootstrapper 18.0.66 prep-install for BASE AT Sat Jan  4 22:13:54 CET 2025
 
Thank you.

The mysql.daily.dump.* contain the following database tables:

Code:
USE `psa`;
USE `mysql`;
USE `horde`;
USE `apsc`;
USE `roundcubemail`;
USE `phpmyadmin`;
USE `psa`;
USE `mysql`;
USE `horde`;
USE `apsc`;
USE `roundcubemail`;
USE `phpmyadmin`;

It looks like the psa db is missing. let's import it from the backup.

Code:
zcat /var/lib/psa/dumps/mysql.daily.dump.0.gz | mysql -uadmin -p$(cat /etc/psa/.psa.shadow)

This command will import all the databases included in the SQL dump, not just psa.
 
Really good news!

It seems to have finally been installed as around 200 posts like this have appeared (replacing Ubuntu packages 22 with 24)

Code:
Preparing to unpack .../187-plesk-php83-soap_8.3.14-ubuntu.24.04.241125.1221_amd64.deb ...
Unpacking plesk-php83-soap (8.3.14-ubuntu.24.04.241125.1221) ...

The php8.3-fpm package keeps failing but this time when it finished, I was able to run the plesk version command and it returned something other than "this command does not exist"

Code:
Setting up php-common (2:93ubuntu2) ...
Setting up plesk-ui-library (18.0-v.ubuntu.24.04+p18.0.66.1+t241218.0730) ...
Setting up plesk-rrd (1.9.0-v.ubuntu.24.04+p18.0.64.0+t240829.0722) ...
Setting up php8.3-curl (8.3.6-0ubuntu0.24.04.3) ...

Creating config file /etc/php/8.3/mods-available/curl.ini with new version
Setting up libmagic-mgc (1:5.45-3build1) ...
Setting up libapache2-mod-fcgid-psa (2.3.9.5-v.ubuntu.24.04+p18.0.63.0+t240715.1009) ...
Setting up php8.3-fpm (8.3.6-0ubuntu0.24.04.3) ...
NOTICE: Not enabling PHP 8.3 FPM by default.
NOTICE: To enable PHP 8.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.

Code:
Descargando archivo report-update: 100% finalizado.
Descargando archivo pool/PSA_18.0.66_16056/examiners/py_launcher.sh: 100% finalizado.
Descargando archivo pool/PSA_18.0.66_16056/examiners/save-installation-info.php: 100% finalizado.
Descargando archivo pool/PSA_18.0.66_16056/examiners/php_launcher.sh: 100% finalizado.

ERROR: Se ha producido un error cuando se intentaban instalar los paquetes.
¡Importante! Puede que su software no esté operativo.
Visite https://support.plesk.com/ para encontrar una solución.

~# plesk
Usage: plesk [command]

Commands:
  bin - Run the specified Plesk command-line utility (e.g., domain, client)
  checkupgrade - Download the preupgrade checker for the latest, or specific Plesk version
  conf - Open the specified Plesk configuration file in the editor
  daily - Run daily maintenance script
  db - Database related commands. Open MySQL console by default.
  ext - Call a command-line interface of the specified Plesk extension
  help - Show help and exit
  installer - Plesk Installer shortcuts and command completion
  listupgrade - List versions current instance can upgrade to
  log - Follow Plesk logs
  login - Generate login link for specified user
  php - Run a PHP script using the Plesk PHP interpreter
  repair - Check and repair Plesk
  sbin - Run the specified Plesk internal utility
  version - Show product version information

~# plesk version
Product version: Plesk Obsidian 18.0.66.1
     OS version: Ubuntu 24.04 x86_64
     Build date: 2024/12/18 14:00
       Revision: 324ab85b11f5f3ecd46fa49d0fbf77c9df62c277


Also the Plesk Login command works and returns me a URL that takes me here

1736028123793.png
 
Try to restart the Plesk services:
Bash:
systemctl restart sw-cp-server sw-engine

If the login page still takes you to the 502 page
Bash:
tail -f /var/log/plesk/panel.log
and try to login. See what is logged when you push the log in button. It is busy log so CTRL +c after the error is displayed.
 
Has started, meanwhile it shows me this

Translation: Repair operation in progress. Once completed, you will be redirected to the login page.

1736029034572.png
 
It seems that everything is correct, Apache2 is already active and Plesk is updated.

What should I do for the initial problem I had? (Change the policy and enable the firewall from Plesk)
 
No. That is mod security.

If you don't have a Firewall link in Tools & Settings, you will need to install it using
Bash:
plesk installer
Main components list for Plesk
===============================================================================

43 of 58 components selected

Please select the components of Plesk you want to install:

1. [=] Plesk
2. [=] BIND DNS server
3. [ ] PostgreSQL server
4. [=] Fail2Ban
5. [=] SELinux policy
6. [=] All language localization for Plesk
7. [=] Git
8. [=] Resource Controller (Cgroups)
9. [=] Plesk Migrator
10. [=] MySQL server
11. [.] <+> Webmail services // 1 of 2 components selected
12. [.] <+> Mail hosting // 4 of 6 components selected
13. [.] <+> Web hosting // 15 of 22 components selected
14. [.] <+> Plesk extensions // 14 of 18 components selected <<<<<<<<<
Primary components list / extensions
===============================================================================

Select the components you want to install:
1. [=] Plesk Web Server Configuration Troubleshooter
2. [=] Plesk Firewall <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Your's will not be an =. Empty is not installed, = is installed

You can also use the web install if you find that easier.
 
I tried to install it via plesk and I got the following error:

Code:
Installation started in background
Comprobando si se resuelven las dependencias del paquete.
Instalando paquetes
Reading package lists...
Building dependency tree...
Reading state information...
php-fpm is already the newest version (2:8.3+93ubuntu2).
php8.3-fpm is already the newest version (8.3.6-0ubuntu0.24.04.3).
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php8.3-fpm (8.3.6-0ubuntu0.24.04.3) ...
NOTICE: Not enabling PHP 8.3 FPM by default.
NOTICE: To enable PHP 8.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Job for php8.3-fpm.service failed because a timeout was exceeded.
See "systemctl status php8.3-fpm.service" and "journalctl -xeu php8.3-fpm.service" for details.
invoke-rc.d: initscript php8.3-fpm, action "start" failed.
x php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php8.3-fpm.service; enabled; preset: enabled)
Active: failed (Result: timeout) since Sun 2025-01-05 00:05:37 CET; 8ms ago
Docs: man:php-fpm8.3(8)
Process: 318179 ExecStart=/usr/sbin/php-fpm8.3 --nodaemonize --fpm-config /etc/php/8.3/fpm/php-fpm.conf (code=exited, status=0/SUCCESS)
Process: 318199 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.3/fpm/pool.d/www.conf 83 (code=exited, status=0/SUCCESS)
Main PID: 318179 (code=exited, status=0/SUCCESS)
CPU: 64ms

Jan 05 00:04:07 h2946496.stratoserver.net systemd[1]: Starting php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager...
Jan 05 00:05:37 h2946496.stratoserver.net systemd[1]: php8.3-fpm.service: start operation timed out. Terminating.
Jan 05 00:05:37 h2946496.stratoserver.net systemd[1]: php8.3-fpm.service: Failed with result 'timeout'.
Jan 05 00:05:37 h2946496.stratoserver.net systemd[1]: Failed to start php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager.
dpkg: error processing package php8.3-fpm (--configure):
installed php8.3-fpm package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of php-fpm:
php-fpm depends on php8.3-fpm; however:
Package php8.3-fpm is not configured yet.

dpkg: error processing package php-fpm (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
php8.3-fpm
php-fpm
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Iniciando los verificadores del producto y componentes...
Descargando archivo report-update: 0%
Descargando archivo report-update: 100% finalizado.
Descargando archivo pool/PSA_18.0.66_16056/examiners/py_launcher.sh: 0%
Descargando archivo pool/PSA_18.0.66_16056/examiners/py_launcher.sh: 100% finalizado.
Error: Se ha producido un error cuando se intentaban instalar los paquetes.
¡Importante! Puede que su software no esté operativo.
 
Back
Top