Apache 宕机,无法重启

Apache 宕机,无法重启

我最近设置了一个 LAMP(Fedora 18)服务器来为本地网络上的网站提供服务。一切正常,然后我对 php.ini 做了一点小改动,重新启动,结果失败了。自上次启动 apache 以来,唯一的变化是在网络上添加了一个 DNS 条目。

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 已包含


ServerName 192.168.126.200


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 已禁用,php.ini 中的更改只是将 SMTP localhost 更改为 SMTP 和 MTA 服务器的 IP 地址。我已将其改回,没有任何明显的效果。

...我不是 Linux 专家,但我查看了所有能找到的论坛,但还是无法解决这个问题。有人能提供一些建议吗?

提前谢谢你,理查德。

答案1

192.168.126.200         [email protected] bugagon.parragon.com

用。。。来代替 ”。” :)

相关内容