Page 1 of 1

httpsd.conf lost - Plesk won't start

Posted: Wed Mar 17, 2010 4:18 pm
by mrgastix
I was experiencing problems with server today and I did some update and I decided to restart the server. I did regular updates so far but no restart for some time (more than a year I guess) so I gave it a go (oh, what a mistake).

After restart Plesk would not come back. Everything is running normally (luckily) except Plesk. Running

Code: Select all

service psa start1
would not help and

Code: Select all

service psa status
gives psa dead but subsys locked. I deleted the pid file with

Code: Select all

rm -f /var/lock/subsys/psa
to no avail.

After digging through log files (less /usr/local/psa/admin/logs/error_log) I found this:
[crit] (98)Address already in use: make_sock: could not bind to port 80

It looks like httpsd of Plesk is trying to run on port 80. I checked configuration and found out that /usr/local/psa/admin/conf/httpsd.conf is empty :shock: Yeepy! :roll:

I have a backup of mysql and other "content" files but no psa config backup. How do I restore this file (at least basic stuff, I can edit the specifics if there are any)? Any help appreciated.

I have CentOS 5, Plesk 8.6 (updated from 8.4 some time ago).

Re: httpsd.conf lost - Plesk won't start

Posted: Thu Mar 18, 2010 8:25 am
by mrgastix
I have restored httpsd.conf from default file (httpsd.conf.def) and replaced @admin_root@ with /usr/local/psa/admin.

There are other minor tweaks to replace but everything is OK now. 8) I wonder how come this file was truncated but I will probably never find out.

Re: httpsd.conf lost - Plesk won't start

Posted: Thu Mar 18, 2010 8:34 am
by faris
I have just had a look at mine and I'm afraid it won't do you any good as it is different for a Virtuozzo-based host than it is for a non-Virtuozzo host otherwise I would email it to you.

Hopefully someone else will be able to help.

Faris.

Re: httpsd.conf lost - Plesk won't start

Posted: Thu Mar 18, 2010 8:35 am
by faris
Oh. I see you are sorted. Excellent!