Apache Problem [ Centos 7] +- Sponsor-Board.de (https://www.sponsor-board.de) +-- Forum: Community (/forumdisplay.php?fid=56) +--- Forum: Hilfe (/forumdisplay.php?fid=102) +---- Forum: Linux-Server (/forumdisplay.php?fid=105) +---- Thema: Apache Problem [ Centos 7] (/showthread.php?tid=59552) |
Apache Problem [ Centos 7] - HardwareNow - 31.03.2016 08:57 Hallo Liebe SB-Mitglieder, unswar habe ich vor kurzem ein neues Centos7 System installiert. Jedoch komme ich nicht auf die Seite anscheinend funktioniert Apache nicht aber immer wenn ich service apache start eingebe kommt folgender Fehler : Zitat: Redirecting to /bin/systemctl start apache.service
Failed to start apache.service: Unit apache.service failed to load: No such file or directory.
RE: Apache Problem [ Centos 7] - Patrick - 31.03.2016 09:24 Google meint z.B das hier, sicher schon probiert? [Link: Registrierung erforderlich] RE: Apache Problem [ Centos 7] - HardwareNow - 31.03.2016 09:33 Patrick schrieb:
Zitat: systemctl list-units --type=service | grep at\..*service
eingegeben und es kommt : Zitat: kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
rhel-import-state.service loaded active exited Import network configuration from initramfs systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
RE: Apache Problem [ Centos 7] - Patrick - 31.03.2016 09:42 Hey Du sollst nicht einfach Befehle abdrücken ohne zu wissen was die machen. Der Befehl filtert dir aus einer längeren Liste alle Elemente die das Wort "service" beinhalten. Falls der Service nicht registriert ist, wird das auch nix anzeigen. Interessanter wäre der andere Befehl gewesen, der alles anzeigt. Wie hast Du eigentlich Apache installiert? Eventuell hast Du dort schon einen Fehler gemacht. RE: Apache Problem [ Centos 7] - HardwareNow - 31.03.2016 09:54 Patrick schrieb: Hey
Du sollst nicht einfach Befehle abdrücken ohne zu wissen was die machen. Der Befehl filtert dir aus einer längeren Liste alle Elemente die das Wort "service" beinhalten. Falls der Service nicht registriert ist, wird das auch nix anzeigen. Interessanter wäre der andere Befehl gewesen, der alles anzeigt. Wie hast Du eigentlich Apache installiert? Eventuell hast Du dort schon einen Fehler gemacht.
Zitat: yum -y install httpd php php-common php-gd php-mbstring php-ldap php-odbc php-pear php-xml php-xmlrpc php-bcmath php-mysql php-pdo
Zitat: chown -R apache.apache /var/www/html
Zitat: awk '/AllowOverride None/{c++;if(c==2){sub("AllowOverride None","AllowOverride All");c=0}}1' /etc/httpd/conf/httpd.conf > /tmp/httpd.conf; mv -f /tmp/httpd.conf /etc/httpd/conf/httpd.conf
Zitat: systemctl enable httpd
systemctl restart httpd
RE: Apache Problem [ Centos 7] - Patrick - 31.03.2016 10:02 Ich kenne mich mit CentOS jetzt nicht soo gut aus. Bin eher der faule Ubuntu user. Aber ich vergleiche Deine Schritte mit dem hier: [Link: Registrierung erforderlich] ...und stelle fest dass die Services mit dem Befehl "chkconfig --levels 235 httpd on" bei Dir nicht registriert worden sind. RE: Apache Problem [ Centos 7] - _DEL16584 - 31.03.2016 10:07 - RE: Apache Problem [ Centos 7] - KoKsPfLaNzE - 31.03.2016 10:10 du musst via "systemctl start httpd" den apache starten bei centos, und nicht via "service apache start" RE: Apache Problem [ Centos 7] - HardwareNow - 31.03.2016 10:26 Hallo, vielen Dank habe mal Zitat: systemctl status httpd.service
RE: Apache Problem [ Centos 7] - _DEL16584 - 31.03.2016 10:33 - RE: Apache Problem [ Centos 7] - HardwareNow - 31.03.2016 10:35 Max H schrieb: Schau mal was steht. Could not open configuration file
RE: Apache Problem [ Centos 7] - KoKsPfLaNzE - 31.03.2016 10:39 ist die datei vorhanden? hast du da was angepasst? btw größerer screenshot wär da net schlecht=) |