Jump to content
Froxlor Forum
  • 0

[CentOS] HTTPD Hosts-Datei wird nicht erstellt


uniquepotion

Question

Hallo,

 

ich habe soeben Froxlor installiert und auch bereits alles eingestellt. Nun gibt es folgendes Problem:

 

Ich würde gerne eine Domain erstellen. Das habe ich über das Backend bereits getan. Es wird jedoch weder in /etc/hosts noch in /etc/httpd/sites-enabled/ eine Config eingetragen, weswegen entsprechend keine Weiterleitung auf den Ordner stattfinden kann. Nun habe ich Froxlor auch bereits soweit umgestellt, dass er auf /etc/httpd/ gehen sollte.

 

Könnt ihr mir da weiterhelfen, was ich da am Besten machen kann, dass es funktioniert?

 

Daten zum Server

OS: CentOS 7

Server version: Apache/2.4.6

Standort: HostEurope Köln

 

Liebe Grüße

 

// EDIT

Der Cronjob wurde nicht ausgeführt. Beim manuellen Ausführen des Cronjobs wurde zwar die Config angelegt, jedoch gab es Fehler, weswegen der Apache gestoppt wurde. Hier mal die Logs:

# php /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --force
Redirecting to /bin/systemctl restart  httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
mkdir: cannot create directory ‘/etc/bind/domains/’: No such file or directory
PHP Warning:  fopen(/etc/bind/domains/uniquepotion.com.zone): failed to open stream: No such file or directory in /var/www/html/froxlor/scripts/jobs/cron_tasks.inc.dns.10.bind.php on line 212
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/froxlor/scripts/jobs/cron_tasks.inc.dns.10.bind.php on line 213
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /var/www/html/froxlor/scripts/jobs/cron_tasks.inc.dns.10.bind.php on line 214
PHP Warning:  fopen(/etc/bind/froxlor_bind.conf): failed to open stream: No such file or directory in /var/www/html/froxlor/scripts/jobs/cron_tasks.inc.dns.10.bind.php on line 170
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/froxlor/scripts/jobs/cron_tasks.inc.dns.10.bind.php on line 171
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /var/www/html/froxlor/scripts/jobs/cron_tasks.inc.dns.10.bind.php on line 172
sh: /etc/init.d/bind9: No such file or directory
sh: /etc/init.d/cron: No such file or directory
# systemctl status httpd.service -l
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2016-05-27 17:56:50 UTC; 1min 55s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 9795 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 9793 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 9793 (code=exited, status=1/FAILURE)

May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de httpd[9793]: (98)Address already in use: AH00072: make_sock: could not bind to address 176.28.xx.xx:80
May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de httpd[9793]: no listening sockets available, shutting down
May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de httpd[9793]: AH00015: Unable to open logs
May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de kill[9795]: kill: cannot find process ""
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Einstellungen anpassen -> dann configtemplates durchgehen , du hast wohl welche vergessen (bind, DNS) bzw. den dienst in den Einstellungen nicht deaktiviert. Zusätzlich fehlt deinem apache das "Listen"-Statement, d.h. entweder packst du das global manuell in die apache.conf/httpd.conf oder aktivierst in froxlor bei den IPs und Ports das häkchen "Listen Statement erstellen".

 

Noch als info: mit der /etc/hosts hat froxlor nix zu tun 

Link to comment
Share on other sites

May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de httpd[9793]: (98)Address already in use: AH00072: make_sock: could not bind to address 176.28.xx.xx:80
May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de httpd[9793]: no listening sockets available, shutting down
May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de httpd[9793]: AH00015: Unable to open logs
May 27 17:56:50 lvps176-28-xx-xx.dedicated.hosteurope.de kill[9795]: kill: cannot find process ""

 

Du solltest auf jeden Fall den Webserver-Reload-Command auf

systemctl restart httpd.service

umstellen. Um die fehlenden Verzeichnisse kann man sich später kümmern.

 

Dann stellt sich aber noch die Frage, was ein "apachectl -t" und ein "apachectl -S" ausgibt.

systemctl stop httpd; sleep 10; killall -9 httpd; systemctl start httpd

könnte auch erstmal zu einem Start verhelfen.

 

Vielleicht startet der Apache aus einem anderen Grund nicht.

 

Ich habe auch ein CentOS7 mit httpd-2.4.18, php-fpm und mod-proxy laufen. Das geht also

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...