SSL Plesk Error


#1

We are getting the following error in Plesk…

New configuration files for the Apache web server were not created due to the errors in configuration templates: Syntax error on line 39 of /etc/httpd/conf/plesk.conf.d/vhosts/cloud2.istech.ie.conf: SSLCertificateFile: file ‘/usr/local/psa/var/certificates/cert-Vvug3v’ does not exist or is empty . 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.

The file /etc/httpd/conf/plesk.conf.d/vhosts/cloud2.istech.ie.conf does not exist - we added the cloud2.istech.ie sub domain to the wrong server and tried to install a SSL cert on it. We removed the sub-domain when we realized our mistake but are now getting the above error in Plesk 12.5.

Any help would be appreciated.

Thanks

Eoin


#2

Hi Eoin,

I dont’ run plesk myself, so I’m not sure if you can edit in plesk itself, but you can certainly do it via the command line ( assuming you have access) and remove the /etc/httpd/conf/plesk.conf.d/vhosts/cloud2.istech.ie.conf file ( it should exist there if you have the permissions to see it, otherwise apache wouldn’t be giving the error on line 39 of that file ).

Do you have root access ? or is this a shared server and you don’t have access ?


#3

Hi,

It’s on a cloud VM server running centos 6.5 and we have root access.

The problem is that the file /etc/httpd/conf/plesk.conf.d/vhosts/cloud2.istech.ie doesn’t exist though it may have done in the past.

Eoin


#4

and starting apache still gives the error “Syntax error on line 39 of /etc/httpd/conf/plesk.conf.d/vhosts/cloud2.istech.ie.conf:” ?


#5

Yes apache still gives the error


#6

when you are logged in as root - what does

ls -l /etc/httpd/conf/plesk.conf.d/vhosts/

give ?


#7

lrwxrwxrwx 1 root root 46 Dec 26 17:19 agec.ie.conf -> /var/www/vhosts/system/agec.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 48 Feb 12 14:20 allens.ie.conf -> /var/www/vhosts/system/allens.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 47 Dec 26 17:19 daisy.ie.conf -> /var/www/vhosts/system/daisy.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 51 Dec 26 17:19 eurosheds.ie.conf -> /var/www/vhosts/system/eurosheds.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 59 Feb 10 00:17 fantasycheltenham.ie.conf -> /var/www/vhosts/system/fantasycheltenham.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 53 Dec 26 17:19 fitwithbrid.ie.conf -> /var/www/vhosts/system/fitwithbrid.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 50 Dec 26 17:19 imobauto.ie.conf -> /var/www/vhosts/system/imobauto.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 48 Feb 11 07:39 istech.ie.conf -> /var/www/vhosts/system/istech.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 56 Dec 26 17:19 phoenixfitness.ie.conf -> /var/www/vhosts/system/phoenixfitness.ie/conf/httpd.conf
lrwxrwxrwx 1 root root 53 Jan 28 07:53 shop.allens.ie.conf -> /var/www/vhosts/system/shop.allens.ie/conf/httpd.conf


#8

Can you run

/usr/local/apache/bin/apachectl -t

or if that file doesn’t exist, just try

apachectl -t


#9

It said Syntax OK


#10

OK - great - I’m confused as to why that gives no error - yet you say apache is giving an error.

What does

service apache start

give ?


#11

apache: unrecognized service


#12

ahh, centos v6 isn’t it

service httpd start


#13

Just said Starting httpd:


#14

OK - so that was apache starting, with no error.

Why do you say that starting apache gives the “Syntax error on line 39 …” error - as you just started it with no error.


#15

What I mean is that when we reboot the cloud server we get “Syntax error on line 39 …” error appears in Plesk


#16

That (I’m guessing) is an old error ? or does it say the latest time stamp ? as the error is clearly not there from apache. You may be better asking on a plesk forum.


#17

Yep - I tend to agree - the error started after we removed the sub-domain cloud2.istech.ie from Plesk though it seems to think the SSL is still there for some reason.

Thanks for your help.

Eoin


#18

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.