Article ID: 6658, created on Sep 30, 2009, last review on Aug 12, 2014

  • Applies to:
  • Plesk 9.x for Linux/Unix
  • Plesk 8.x for Linux/Unix

Symptômes

Sur les systèmes d'exploitation RedHat :

~# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Syntax error on line 211 of /etc/httpd/conf/httpd.conf: Syntax error on line 171 of /etc/httpd/conf.d/zz010_psa_httpd.conf:
Could not open configuration file /var/www/vhosts/domain.com/conf/httpd.include: No such file or directory
                                                           [FAILED]
~#
~# /usr/local/psa/admin/sbin/websrvmng -a -v
websrvmng: Unable to open file /var/www/vhosts/domain.tld/conf/httpd.include.new for writing: No such file or directory

System error 2: No such file or directory
websrvmng: Unable to open file /var/www/vhosts/domain.tld/conf/httpd.include.new for writing: No such file or directory

System error 2: No such file or directory
~#


Sur les systèmes d'exploitation Debian :

~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)... waiting apache2:
Syntax error on line 195 of /etc/apache2/apache2.conf: Syntax error on line 211 of /etc/apache2/conf.d/zz010_psa_httpd.conf:
Could not open configuration file /var/www/vhosts/domain.tld/conf/httpd.include: No such file or directory
 failed!
~#
~# /opt/psa/admin/sbin/websrvmng -a -v
websrvmng: Unable to open file /var/www/vhosts/domain1.tld/conf/httpd.include.new for writing: No such file or directory

System error 2: No such file or directory
websrvmng: Unable to open file /var/www/vhosts/domain1.tld/conf/httpd.include.new for writing: No such file or directory

System error 2: No such file or directory
~#


Sur Suse :

~# apache2ctl restart
Warning: DocumentRoot [/srv/www/vhosts/domain.tld/httpdocs] does not exist
httpd not running, trying to start
~#
~# /usr/local/psa/admin/bin/websrvmng -a -v
Warning: DocumentRoot [/srv/www/vhosts/domain.tld/httpdocs] does not exist
Syntax OK
Warning: DocumentRoot [/srv/www/vhosts/domain.tld/httpdocs] does not exist
startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1
..failed
websrvmng: Service /etc/init.d/apache2 failed to restart
websrvmng: Service /etc/init.d/apache2 failed to restart


Cause

Le domaine domain.tld a un hébergement physique mais le répertoire hôte virtuel $PRODUCT_ROOT_D/domain.tld n'existe pas. Par exemple :

~# /usr/local/psa/bin/domain --info domain.tld
...
Hosting
=============================
Hosting type:                           Physical hosting
IP Address:                             192.168.34.87
FTP Login:                              domain_ftp_user
FTP Password:                           ************
...
~# ls -ld /var/www/vhosts/test.com
ls: /var/www/vhosts/test.com: No such file or directory
~#


Résolution

Pour résoudre le problème, nous vous conseillons de recréer l'hébergement physique pour le domaine.

Utilisez la commande suivante pour désactiver l'hébergement physique sur le domaine :

~# /usr/local/psa/bin/domain --update domain.tld -hosting false
usermng: Close user 'domain_ftp_user' session failed
no crontab for domain_ftp_user
SUCCESS: Update of domain 'domain_ftp_user' complete.
~#


Puis connectez§vous à Parallels Plesk Panel et configurez l'hébergement :

Parallels Plesk Panel 8.x -> Domaines -> domain.tld -> Configuration

ou

Parallels Plesk Panel 9.x -> Domaines -> domain.tld -> Paramètres de l'hébergement Web

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF