Localhost: php-file wird im Browser nicht ausgeführt

Hallo,

index.html wird ausgeführt aber nicht index.php

Das habe ich:

$ sudo httpd -v
Server version: Apache/2.4.43 (Linux/SUSE)
Server built:   2020-04-10 06:17:22.000000000 +0000

--

$ php -v
PHP 7.4.6 (cli) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

--

FILE: php_mod7.conf

<IfModule mod_php7.c>
       <FilesMatch "\.ph(p[3457]?|tml)$">
           SetHandler application/x-httpd-php
       </FilesMatch>
       <FilesMatch "\.php[3457]?s$">
           SetHandler application/x-httpd-php-source
       </FilesMatch>
        DirectoryIndex index.php4
        DirectoryIndex index.php5
        DirectoryIndex index.php7
        DirectoryIndex index.php
</IfModule>

--

FILE: httpd.conf

DirectoryIndex index.php index.html index.html.var


Jemand eine Idee?

Gruß

Noch was:

$ a2enmod -l
actions alias auth_basic authn_core authn_file authz_host authz_groupfile authz_core authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl socache_shmcb userdir reqtimeout

Habe noch folgendes Statement laufenlassen:

sudo  a2enmod php7

Status danach:

$ a2enmod -l
actions alias auth_basic authn_core authn_file authz_host authz_groupfile authz_core authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl socache_shmcb userdir reqtimeout php7

Jetzt klappt es mit php direkt unter localhost in htdocs aber noch nicht im Unterverzeichnis. :slight_smile:

Ok. Läuft wieder alles.