Estoy en una instalación limpia de Centos 7 y, después de configurar VirtualHost para Apache, no se inicia. No hay errores obvios, journalctl -xe
pero aquí está el resultado de todos modos.
-- Unit httpd.service has begun starting up.
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 30 23:28:41 vps97148.vps.ovh.ca kill[1424]: kill: cannot find process ""
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: Unit httpd.service entered failed state.
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: httpd.service failed.
Sep 30 23:28:41 vps97148.vps.ovh.ca polkitd[1082]: Unregistered Authentication Agent for unix-process:1408:672266 (system bus name :1.29, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
httpd -t
y apachectl configtest
dime que mi sintaxis está bien.
apachectl -S
no da salida.
Aquí está mi nombre de dominio.com.conf:
<VirtualHost *:80>
ServerName domainname.com
DocumentRoot /var/www/domainname.com/public_html
ErrorLog /var/www/domainname.com/error.log
CustomLog /var/www/domainname.com/requests.log combined
</VirtualHost>
¿Hay alguna ayuda para mí o alguien puede decirme qué estoy haciendo mal?
Aquí hay más información.
En la parte inferior de la configuración de nivel superior tengo una línea que dice Include sites-enabled/*.conf
y aquí es donde se encuentra mi nombre de dominio.com.conf.
Los directorios de los registros existen y puedo acceder a ellos.
DocumentRoot
apunta a un directorio. El servidor puede resolver la ServerName
entrada y apunta a la IP del servidor.