httpsd.conf lost - Plesk won't start

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
mrgastix
Forum User
Forum User
Posts: 6
Joined: Thu Feb 07, 2008 1:04 pm

httpsd.conf lost - Plesk won't start

Unread post 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).
mrgastix
Forum User
Forum User
Posts: 6
Joined: Thu Feb 07, 2008 1:04 pm

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

Unread post 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.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

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

Unread post 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.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

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

Unread post by faris »

Oh. I see you are sorted. Excellent!
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply