• 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 Plesk using wrong directory for Apache web server config

marcvh

New Pleskian
Server operating system version
Debian 10.13
Plesk version and microupdate number
18.0.57 #5
Hello everyone,

Our company manages around 70 Plesk Obidian servers for various customers. For the past few days we're starting to see some errors involving the modifications of Apache web server config. Updating the Apache web server config generates the following error:

New configuration files for the Apache web server were not created due to the errors in configuration templates: mkdir: cannot create directory ‘/etc/httpd/conf/plesk.conf.d/webmails’: No such file or directorymktemp: failed to create file via template ‘/etc/httpd/conf/plesk.conf.d/webmails/<website-name>_webmail.conf.XXXXXX’: No such file or directoryCan not create temporary file. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter

These systems are Debian 10, which has it's Apache config in /etc/apache2/ so there is no /etc/httpd/. This has never been an issue in the past and Plesk has always just managed the configuration in /etc/apache2/ where it belongs. bug ID PPPM-11215 doesn't appear to be applicable here since nginx isn't being used.

Running a 'plesk repair web' just generates more of the error messages as seen above and doesn't manage to fix anything.

Anyone has any idea what's going on here?
 
Additionally, Plesk repair tries to connect to mysql using the wrong socket:

Errors occured in mail restore procedure
Some utilities have exited with errors:
/usr/lib/plesk-9.0/mailsrv_entities_dump
Unable to connect to Plesk Database: Can't connect to local
server through socket '/var/lib/mysql/mysql.sock' (2)
System error 2: No such file or directory
Fatal error: plesk::mysql::mError(connection
failed)/usr/lib/plesk-9.0/mail_admin_aliases
Unable to connect to Plesk Database: Can't connect to local
server through socket '/var/lib/mysql/mysql.sock' (2)
System error 2: No such file or directory
Unable to connect to the mysql database


While mysql.sock is alive and well in /var/run/mysqld:
root@web5:~# ls -la /var/run/mysqld/mysqld.sock
srwxrwxrwx 1 mysql mysql 0 Jan 28 02:35 /var/run/mysqld/mysqld.sock

Plesk seems to think that the Debian 10 machines are running CentOS/AlmaLinux since on that OS, Apache does exist in /etc/httpd/ and the MySQL socket does exist in /var/lib/mysql/.
 
Please contact Plesk support team on this, it needs to be checked on your server. Maybe it is an issue with the virtualization environment your server is using.

To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk-
 
Back
Top