Debian 9.0 - Apache läuft nicht mit PHP 7

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
novalix
Beiträge: 1909
Registriert: 05.10.2005 12:32:57
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: elberfeld

Re: Debian 9.0 - Apache läuft nicht mit PHP 7

Beitrag von novalix » 20.06.2017 13:28:12

Vielleicht noch mal nachschauen, ob das php-7-modul eventuell noch explizit geladen werden muss.

Code: Alles auswählen

ls -l /etc/apache2/mods-enabled/
mal mit mods-available vergleichen und ggf. zur Tat schreiten.
Das Wem, Wieviel, Wann, Wozu und Wie zu bestimmen ist aber nicht jedermannns Sache und ist nicht leicht.
Darum ist das Richtige selten, lobenswert und schön.

Benutzeravatar
MegaV0lt
Beiträge: 163
Registriert: 21.11.2011 11:16:07
Lizenz eigener Beiträge: GNU General Public License
Kontaktdaten:

Re: Debian 9.0 - Apache läuft nicht mit PHP 7

Beitrag von MegaV0lt » 20.06.2017 14:29:49

Nein:

Code: Alles auswählen

root auf HP-T5730 am 20.06.2017 12:43 
[~] # cat /var/www/test.php 
<?php 
phpinfo(); 
?>
Gibt ne leere Seite :(
"Das Internet? Gibt's diesen Blödsinn immer noch?"
[Homer Simpson], Sicherheitsinspektor im Kernkraftwerk Springfield.

Benutzeravatar
MegaV0lt
Beiträge: 163
Registriert: 21.11.2011 11:16:07
Lizenz eigener Beiträge: GNU General Public License
Kontaktdaten:

Re: Debian 9.0 - Apache läuft nicht mit PHP 7

Beitrag von MegaV0lt » 20.06.2017 14:32:34

novalix hat geschrieben:Vielleicht noch mal nachschauen, ob das php-7-modul eventuell noch explizit geladen werden muss.

Code: Alles auswählen

ls -l /etc/apache2/mods-enabled/
mal mit mods-available vergleichen und ggf. zur Tat schreiten.
Das wars! Danke!

Code: Alles auswählen

root auf HP-T5730 am 20.06.2017 14:29 
[~] # ls -l /etc/apache2/mods-enabled/
insgesamt 0
lrwxrwxrwx 1 root root 36 Mai  4  2015 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 Mai  4  2015 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Mai  4  2015 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Mai  4  2015 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Mai  4  2015 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Mai  4  2015 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Mai  4  2015 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Mai  4  2015 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Mai  4  2015 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Mai  4  2015 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Mai  4  2015 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 30 Mai  4  2015 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Mai  4  2015 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Mai  4  2015 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Mai  4  2015 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Mai  4  2015 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 30 Mai  4  2015 evasive.conf -> ../mods-available/evasive.conf
lrwxrwxrwx 1 root root 30 Mai  4  2015 evasive.load -> ../mods-available/evasive.load
lrwxrwxrwx 1 root root 29 Mai  4  2015 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root 30 Sep 10  2015 headers.load -> ../mods-available/headers.load
lrwxrwxrwx 1 root root 27 Mai  4  2015 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Mai  4  2015 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 Mai  4  2015 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 34 Mai  4  2015 mpm_prefork.load -> ../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Mai  4  2015 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Mai  4  2015 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 33 Mär  1 09:47 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Mär  1 09:47 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 30 Mai  4  2015 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 31 Mai  4  2015 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Mai  4  2015 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 36 Mai  4  2015 socache_shmcb.load -> ../mods-available/socache_shmcb.load
lrwxrwxrwx 1 root root 26 Mai  4  2015 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 Mai  4  2015 ssl.load -> ../mods-available/ssl.load
lrwxrwxrwx 1 root root 29 Mai  4  2015 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Mai  4  2015 status.load -> ../mods-available/status.load
root auf HP-T5730 am 20.06.2017 14:30 
[~] # a2enmod php
ERROR: Module php does not exist!
root auf HP-T5730 am 20.06.2017 14:30 
[~] # a2enmod php7
ERROR: Module php7 does not exist!
root auf HP-T5730 am 20.06.2017 14:30 
[~] # a2enmod php7.0
Considering dependency mpm_prefork for php7.0:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.0:
Enabling module php7.0.
To activate the new configuration, you need to run:
  systemctl restart apache2
root auf HP-T5730 am 20.06.2017 14:30 
[~] # systemctl restart apache2
"Das Internet? Gibt's diesen Blödsinn immer noch?"
[Homer Simpson], Sicherheitsinspektor im Kernkraftwerk Springfield.

Antworten