Nach PHP7-Installation - PHP läuft nicht im Browsser
Hallo,
Beim Laden der phpinfo() im Browser wird PHP nur als Text ausgegeben.
Bislang lief PHP5.6 unter Ubuntu 14.04. Wir haben jetzt PHP7 installiert.
Nach aufrufen von "php -v" kommt im Terminal folgende Ausgabe:
Die Symlinks für php5.6.conf und php.5.6.load sind gelöscht.
Im Anschluss die Symlinks via
erzeugt.
Abschließend
Im Seiten-Quelltext:
Beim Laden der phpinfo() im Browser wird PHP nur als Text ausgegeben.
Bislang lief PHP5.6 unter Ubuntu 14.04. Wir haben jetzt PHP7 installiert.
Nach aufrufen von "php -v" kommt im Terminal folgende Ausgabe:
root@server :/etc/apache2/mods-enabled# php -v
PHP 7.0.11-1+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.11-1+deb.sury.org~trusty+1, Copyright (c) 1999-2016, by Zend Technologies
Die Symlinks für php5.6.conf und php.5.6.load sind gelöscht.
Im Anschluss die Symlinks via
a2enmod php7.0
erzeugt.
Abschließend
service apache2 restart
Im Seiten-Quelltext:
<?php
phpinfo();
Please also mark the comments that contributed to the solution of the article
Content-Key: 315709
Url: https://administrator.de/contentid/315709
Printed on: April 19, 2024 at 03:04 o'clock
2 Comments
Latest comment