
Ich habe vor kurzem einen LAMP-Server (Fedora 18) eingerichtet, um eine Website in einem lokalen Netzwerk bereitzustellen. Es funktionierte alles, dann nahm ich eine kleine Änderung an php.ini vor, startete neu und es schlug fehl. Die einzige Änderung seit dem letzten Start von Apache war, dass ein DNS-Eintrag im Netzwerk hinzugefügt wurde.
systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since Fri, 2013-08-30 09:02:42 BST; 44min ago
Process: 9769 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
Process: 9767 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/httpd.service
Aug 30 09:02:42 an648robt.parragon.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 30 09:02:42 an648robt.parragon.com httpd[9769]: httpd (no pid file) not running
Aug 30 09:02:42 an648robt.parragon.com systemd[1]: Failed to start The Apache HTTP Server.
Aug 30 09:02:42 an648robt.parragon.com systemd[1]: Unit httpd.service entered failed state
# vi /var/log/httpd/error_log
[Fri Aug 30 09:02:42.497697 2013] [suexec:notice] [pid 9767] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Aug 30 09:02:42.568620 2013] [unique_id:alert] [pid 9767] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "an648robt.parragon.com"
AH00016: Configuration Failed
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.126.200 [email protected] bugagon.parragon.com
# vi /etc/hostname
an648robt.parragon.com
httpd.conf enthielt
ServerName 192.168.126.200
Und
NameVirtualHost 192.168.126.200
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/bugagon
ServerName bugagon.com
ServerAlias www.bugagon.com
ErrorLog /var/log/httpd/bugagon/error_log
CustomLog /var/log/httpd/bugagon/access_log common
</VirtualHost>
SElinux ist deaktiviert, die Änderung in php.ini war nur die Änderung von SMTP localhost in SMTP und der IP-Adresse des MTA-Servers. Ich habe es wieder zurückgesetzt, hatte aber keine sichtbaren Auswirkungen.
...Ich bin kein Linux-Experte, habe aber alle Foren durchsucht, die ich finden konnte, und konnte das Problem nicht beheben. Kann jemand Vorschläge machen?
Vielen Dank im Voraus, Richard.
Antwort1
192.168.126.200 [email protected] bugagon.parragon.com
Ersetzen mit "." :)