Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

Impossible de démarrer le service Web avec l'erreur "httpd.include: No such file or directory"

Article ID: 6658 
Last Review: Sep,30 2009
Author: Anne-Charlotte Bacherot
Last updated by: Anne-Charlotte Bacherot APPLIES TO:
  • Plesk 8.x for Linux/Unix
  • Plesk 9.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


Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products