Cant start httpd- no acces to my localhost
So.. first of all, im kinda new at fedora and kde. Yesterday i succesfully installed and started my lamp, i even could see my localhost - php info file. Today i turned my pc on, and i couldnt enter my localost!
Console:
[root@127 64]# service httpd start
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
Systemctl:
[root@127 64]# 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 sze 2013-04-24 07:22:02 CEST; 4min 55s ago
Process: 14381 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE)
Process: 14378 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
ápr 24 07:22:01 127.0.0.1 fedora httpd[14378]: AH00526: Syntax error on line 119 of /etc/httpd/conf/httpd.conf:
ápr 24 07:22:01 127.0.0.1 fedora httpd[14378]: DocumentRoot must be a directory
ápr 24 07:22:02 127.0.0.1 fedora systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
ápr 24 07:22:02 127.0.0.1 fedora httpd[14381]: AH00526: Syntax error on line 119 of /etc/httpd/conf/httpd.conf:
ápr 24 07:22:02 127.0.0.1 fedora httpd[14381]: DocumentRoot must be a directory
ápr 24 07:22:02 127.0.0.1 fedora systemd[1]: httpd.service: control process exited, code=exited status=1
ápr 24 07:22:02 127.0.0.1 fedora systemd[1]: Failed to start The Apache HTTP Server.
ápr 24 07:22:02 127.0.0.1 fedora systemd[1]: Unit httpd.service entered failed state
Anyone know what is the problem? Thank you for your help, and good day for everyone!
the error message speaks for itself, your configuration is wrong at line 119. Open the file
/etc/httpd/conf/httpd.conf
and correct it. As a general advice, upon each modification and before restarting apache, launch the commandapache2ctl -t
to validate the written configuration.