Apache est installé correctement mais PHP ne l'est pas. Voir le fichier httpd-2.4/conf/httpd.conf.bak et vérifier le fichier PPOWA.bat
http.conf.bakLe fichier httpd.conf.back doit contenir les information suivantes en tête de fichier.
define PHPINSTALLDIR "PHP_DIR"
PHPIniDir "${PHPINSTALLDIR}
Suite au commentaire suivant
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
Ajouter les lignes suivantes pour que PHP soit reconnu d'apache AddHandler application/x-httpd-php .php AddType application/x-httpd-php .php .html0 .phtml LoadModule PHP_MODULE Changer la valeur de DirectoryIndex de
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
à
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
|
PPOWA.batLe fichier PPOWA.bat doit contenir les variables d'environnement qui vont permettre de travailler, notamment l'ORACLE_HOME
@ECHO OFF
TITLE Apache HTTP Server v2.4.3
CLS
ECHO Setting environment variables...
SET ORACLE_HOME=C:\portApps\Oracle\instantclient_19_18
SET DLL_NAME=php8apache2_4
SET MODULE_NAME=php_module
SET VERSION_NUMBER=8.1.18
SET PATH=%ORACLE_HOME%;%PATH%
SET APPPATH=%CD:Binaries=Programs%
SET APACHE_DIR=%APPPATH%\httpd-2.4
SET PHP_DIR=%APPPATH%\php-%VERSION_NUMBER%
SET PHP_MODULE=%PHP_DIR%\%DLL_NAME%.dll
SET HTDOCS=%CD:Binaries=Cleopatra%\my-app
SET FART_DIR=%APPPATH%
SET PATH=%PHP_DIR%;%PATH%
ECHO Updating httpd.conf configuration...
DEL "%APACHE_DIR%\conf\httpd.conf" >NUL
COPY "%APACHE_DIR%\conf\httpd.conf.bak" "%APACHE_DIR%\conf\httpd.conf" >NUL
%FART_DIR%\fart -C -q "%APACHE_DIR%\conf\httpd.conf" "LoadModule PHP_MODULE" "LoadModule %MODULE_NAME% \"%PHP_MODULE:\=/%\""
%FART_DIR%\fart -C -q "%APACHE_DIR%\conf\httpd.conf" "c:/Apache24" %APACHE_DIR:\=/%
%FART_DIR%\fart -C -q "%APACHE_DIR%\conf\httpd.conf" "${SRVROOT}/htdocs" %HTDOCS:\=/%
%FART_DIR%\fart -C -q "%APACHE_DIR%\conf\httpd.conf" "PHP_DIR" %PHP_DIR:\=/%
SET CAINFO=%PHP_DIR%\extras\ssl\cacert.pem
ECHO Updating php.ini configuration...
DEL "%PHP_DIR%\php.ini" >NUL
COPY "%PHP_DIR%\php.ini.bak" "%PHP_DIR%\php.ini" >NUL
%FART_DIR%\fart -q "%PHP_DIR%\php.ini" ";curl.cainfo =" "curl.cainfo = \"%CAINFO%\""
%FART_DIR%\fart -q "%PHP_DIR%\php.ini" "extension_dir = \"ext\"" "extension_dir = \"%PHP_DIR:\=/%/ext\"
COPY "%PHP_DIR%\php.ini" "%APACHE_DIR%\conf\php.ini" > NUL
ECHO Running Apache HTTP Server (with PHP v%VERSION_NUMBER%)...
%APACHE_DIR%\bin\httpd.exe
|