Daniel3132: PHP funktioniert nicht auf dem Apache-Server.

Beitrag lesen

Hallo alle zusammen,

habe gehofft hier Hilfe zu finden. Habe mich gestern entschlossen auf meinem PC (Windows 10, 64-bit) einen Apache-Server zu installieren. Das funktioniert ja auch alles wie es sollte, allerdings scheint das PHP-Modul nicht zu funktionieren wie es soll. Wo könnte das Problem liegen? Hier mal alles relevante: Da die Apache-Config zu lange ist, werde ich vorerst mal den Teil posten, der das PHP-Modul callt.

httpd.conf (Apache-Config):

LoadModule php7_module "C:/apache24/php/php7apache2_4.dll"
AddHandler application/x-http-php .php
#configure the path to php.ini
PHPIniDir "C:/apache24/php"

Der Quellcode der Test-PHP-File:

<?php

ERROR_REPORTING(E_ALL);

phpinfo();
echo 'IT WORKS!!!!';
?>

Und zuletzt noch die Ausgabe von "httpd.exe -M" (zeigt die geladenen Module an):

C:\Apache24\bin>httpd -M
Loaded Modules:
 core_module (static)
 win32_module (static)
 mpm_winnt_module (static)
 http_module (static)
 so_module (static)
 access_compat_module (shared)
 actions_module (shared)
 alias_module (shared)
 allowmethods_module (shared)
 asis_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 dir_module (shared)
 env_module (shared)
 include_module (shared)
 isapi_module (shared)
 log_config_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 setenvif_module (shared)
 php7_module (shared)

Bitte gebt Bescheid wenn ihr noch was braucht.

Danke schonmal an alle die sich Zeit nehmen.

Freundliche Grüße