• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Not updating zz010_psa_httpd.conf

D

Dr Who

Guest
Hi

I've seen similar threads going back some time but no actual solution:

centos 5.5

When I add or delete a domain, the reference to the include file in

/etc/httpd/conf.d/zz010_psa_httpd.conf

is not maintained.

This is a line like this:

Include /var/www/vhosts/mydomain.com/conf/httpd.include


If I delete the domain from Plesk, the include line remains even though the target no longer exists. So an Apache restart fails.

Conversely, if I add a new domain the include line is not written to the file so I can't browse the website.


Obviously now I have identified the problem I can do a manual update of the file, by why would Plesk not maintain the file correctly?

Permissiions on /etc/httpd/conf.d/zz010_psa_httpd.conf

owner/group root/root (rw)


Thanks,
 
I cant reproduce it:

# grep mytestdom.kg /etc/httpd/conf.d/zz010_psa_httpd.conf
Include /var/www/vhosts/mytestdom.kg/conf/httpd.include

# /usr/local/psa/bin/domain -r mytestdom.kg
no crontab for leeer
SUCCESS: Removal of 'mytestdom.kg' complete.
# grep mytestdom.kg /etc/httpd/conf.d/zz010_psa_httpd.conf

# /usr/local/psa/bin/domain -c mytestdom.kg -status enabled -hosting true -login leeer -passwd rD23eeer -ip 10.55.62.71
Creating mailbox file: File exists
SUCCESS: Creation of domain 'mytestdom.kg' complete.

# grep mytestdom.kg /etc/httpd/conf.d/zz010_psa_httpd.conf
Include /var/www/vhosts/mytestdom.kg/conf/httpd.include

I don't know why it is not work on your server. It should be investigated directly on server. Contact support team if you cant find a reason by yourself.
 
Hallo und guten Tag,

ich hatte gestern das gleiche Problem wie Dr.Who.
die zz010_psa_httpd.conf wird bei Erstellung einer neuen Domain nicht mit der Includezeile
der neuen Domain geupdatet.
Es wird nur eine zz010_psa_httpd.conf.new mit 0byte erstellt.

Vorher nie dieses Problem gehabt.
 
Igor

Thanks for looking. Can you expand or possible reasons why this isn't working for me?

This was installed for me by Fasthosts. They have been looking for an answer for several days. Unfortunately because I purchased through Fasthosts I don't have a support contract with Parallels.

smhh: Thank you for confirmation of a problem.
 
Did you tried to reproduce problem with commands from my example? Maybe you will see some useful error messages in output? Also try to rebuild all websettings with

/usr/local/psa/admin/bin/websrvmng -v -a

Maybe it will help.
 
This Message comes with /usr/local/psa/admin/bin/websrvmng -v -a



Unable to query parameter FullHostName
 
Some more information...

Hi Igor

I have done this:

In plesk, add a domain. Using Plesk preview, the website does not exist


Add the include line manually to zz010_psa_httpd.conf

## Now restart Apache:

[root@hosting ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Mon Aug 23 03:25:22 2010] [warn] module ssl_module is already loaded, skipping
[ OK ]


## Check website using plesk preview - it is there, OK

## Now remove it by command line:

[root@hosting ~]# /usr/local/psa/bin/domain -r mytestzzz.co.uk
no crontab for mytest
SUCCESS: Removal of 'mytestzzz.co.uk' complete.

## OK, so far so good. No errors. Lets restart Apache:

[root@hosting ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Mon Aug 23 03:28:49 2010] [warn] module ssl_module is already loaded, skipping
httpd: Syntax error on line 211 of /etc/httpd/conf/httpd.conf: Syntax error on line 174 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Could not open configuration file /var/www/vhosts/mytestzzz.co.uk/conf/httpd.include: No such file or directory
[FAILED]

## Error - can't start Apache because zz010_psa_httpd.conf not cleaned up



So whether I remove the domain with the Plesk GUI or by command line, zz010_psa_httpd.conf is not edited correctly. The command line method doesn't show an error.
 
But what about


?

- I had the same result as smhh:

/usr/local/psa/admin/bin/websrvmng -v -a
websrvmng: Unable to query parameter FullHostName
websrvmng: Unable to query parameter FullHostName




mysql> use psa
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from misc where param='FullHostName';
+--------------+-----+
| param | val |
+--------------+-----+
| FullHostName | |
+--------------+-----+
1 row in set (0.00 sec)

mysql>

## This looks interesting. I assume FullHostName should be set? - go and set it:

mysql> update misc set val='myhostname.co.uk' where param='FullHostName';

## Now try previous:

# /usr/local/psa/admin/bin/websrvmng -v -a
[Mon Aug 23 23:02:26 2010] [warn] module ssl_module is already loaded, skipping


## Restart everything:

/etc/init.d/psa stopall
/etc/init.d/psa stop
/etc/init.d/psa start

## All stopped and restarted OK except for this:

Starting drwebd service... failed



## Now create new domain and test: ### Works OK!!!

## Now delete new domain and test: ### Deleted OK!!


###FIXED!

Igor - many thanks for your help
 
Hello all together

In the MYSQL tablke misc i missed the

param FullHostName

i insert the Row with FullHostName

## Now create new domain and test: ### Works OK!!!

## Now delete new domain and test: ### Deleted OK!!


###FIXED!
 
Back
Top