MESSENGER_HTTPS_CONF not finding Plesk Apache certificates
Posted: 28 Feb 2017, 17:17
I was trying to setup some of the new CSF MESSENGER_HTTPS features but LFD can't find the SSL certificates on a Plesk server for some reason. Any ideas?
Feb 28 09:57:33 web6 lfd[27641]: MESSENGER: Error starting HTTPS service: No SSL certs found in MESSENGER_HTTPS_CONF location
Feb 28 09:57:33 web6 lfd[27641]: MESSENGER: HTTPS service temporarily *DISABLED*
I tried setting MESSENGER_HTTPS_CONF to "/etc/httpd/conf/plesk.conf.d/vhosts/*.conf" (Plesk symlinks to every vhosts httpd.conf in this directory) . I also tried setting it to "/var/www/vhosts/system/*/conf/httpd.conf" (the actual locations) with no luck.
I'm including a sample vhost domain http.conf in case the syntax is a bit different with Plesk
<IfModule mod_ssl.c>
<VirtualHost 203.0.113.1:7081 >
ServerName "example.com:443"
ServerAlias "www.example.com"
ServerAlias "ipv4.example.com"
ServerAdmin "user@exmaple.com"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/example.com/httpdocs"
ErrorLog "/var/www/vhosts/system/example.com/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "prqgiywx" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/example.com/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "a67b51c7-b275-4277-b1f9-ba62c183420b"
</IfModule>
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/cert-5cpwQt
SSLCACertificateFile /usr/local/psa/var/certificates/cert-Zc1E8t
<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/example.com/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php53-fastcgi
FcgidMaxRequestLen 134217728
</IfModule>
<Directory /var/www/vhosts/example.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</IfModule>
SSLRequireSSL
Options -Includes -ExecCGI
</Directory>
<Directory /var/www/vhosts/example.com/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/example.com>
Options +FollowSymLinks
</Directory>
Include "/var/www/vhosts/system/example.com/conf/vhost_ssl.conf"
</VirtualHost>
</IfModule>
<VirtualHost 203.0.113.1:7080 >
ServerName "example.com:80"
ServerAlias "www.example.com"
ServerAlias "ipv4.example.com"
ServerAdmin "slang103@gmail.com"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/example.com/httpdocs"
ErrorLog "/var/www/vhosts/system/example.com/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "prqgiywx" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/example.com/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "a67b51c7-b275-4277-b1f9-ba62c183420b"
</IfModule>
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/example.com/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php53-fastcgi
FcgidMaxRequestLen 134217728
</IfModule>
<Directory /var/www/vhosts/example.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</IfModule>
Options -Includes -ExecCGI
</Directory>
<Directory /var/www/vhosts/example.com/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/example.com>
Options +FollowSymLinks
</Directory>
Include "/var/www/vhosts/system/example.com/conf/vhost.conf"
</VirtualHost>
Feb 28 09:57:33 web6 lfd[27641]: MESSENGER: Error starting HTTPS service: No SSL certs found in MESSENGER_HTTPS_CONF location
Feb 28 09:57:33 web6 lfd[27641]: MESSENGER: HTTPS service temporarily *DISABLED*
I tried setting MESSENGER_HTTPS_CONF to "/etc/httpd/conf/plesk.conf.d/vhosts/*.conf" (Plesk symlinks to every vhosts httpd.conf in this directory) . I also tried setting it to "/var/www/vhosts/system/*/conf/httpd.conf" (the actual locations) with no luck.
I'm including a sample vhost domain http.conf in case the syntax is a bit different with Plesk
<IfModule mod_ssl.c>
<VirtualHost 203.0.113.1:7081 >
ServerName "example.com:443"
ServerAlias "www.example.com"
ServerAlias "ipv4.example.com"
ServerAdmin "user@exmaple.com"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/example.com/httpdocs"
ErrorLog "/var/www/vhosts/system/example.com/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "prqgiywx" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/example.com/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "a67b51c7-b275-4277-b1f9-ba62c183420b"
</IfModule>
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/cert-5cpwQt
SSLCACertificateFile /usr/local/psa/var/certificates/cert-Zc1E8t
<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/example.com/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php53-fastcgi
FcgidMaxRequestLen 134217728
</IfModule>
<Directory /var/www/vhosts/example.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</IfModule>
SSLRequireSSL
Options -Includes -ExecCGI
</Directory>
<Directory /var/www/vhosts/example.com/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/example.com>
Options +FollowSymLinks
</Directory>
Include "/var/www/vhosts/system/example.com/conf/vhost_ssl.conf"
</VirtualHost>
</IfModule>
<VirtualHost 203.0.113.1:7080 >
ServerName "example.com:80"
ServerAlias "www.example.com"
ServerAlias "ipv4.example.com"
ServerAdmin "slang103@gmail.com"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/example.com/httpdocs"
ErrorLog "/var/www/vhosts/system/example.com/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "prqgiywx" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/example.com/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "a67b51c7-b275-4277-b1f9-ba62c183420b"
</IfModule>
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/example.com/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php53-fastcgi
FcgidMaxRequestLen 134217728
</IfModule>
<Directory /var/www/vhosts/example.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</IfModule>
Options -Includes -ExecCGI
</Directory>
<Directory /var/www/vhosts/example.com/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory /var/www/vhosts/example.com>
Options +FollowSymLinks
</Directory>
Include "/var/www/vhosts/system/example.com/conf/vhost.conf"
</VirtualHost>