LoadModule php5_module "${Repertoire}/bin/php/courant/php7apache2_4.dll"mais cela ne fonctionne pas.
LoadModule php7_module "${Repertoire}/bin/php/courant/php7apache2_4.dll"mais cela ne fonctionne pas non plus.
<?php $phpConf['phpIniDir'] = '.'; $phpConf['phpExeDir'] = '.'; $phpConf['phpConfFile'] = 'php.ini'; //PHP 7 needs Apache 2.4.x and doesn't works with Apache 2.2.x $phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll'; $phpConf['apache']['2.4']['AddModule'] = ''; ?>- Modifier le fichier wamp/scripts/config.inc.php pour y ajouter le support des dll php 7 :
//dll to create symbolic links from php to apache/bin // 55 for PHP 7 $icu = array( 'number' => array('55', '54', '53', '52', '51', '50', '49'), 'name' => array('icudt', 'icuin', 'icuio', 'icule', 'iculx', 'icutest', 'icutu', 'icuuc'), );et
//[modif oto] - Apache modules which should not be disabled $apacheModNotDisable = array( 'php5_module', 'php7_module', );Copier le fichier php.ini-development sour le nom php.ini
Remplacer max_execution_time = 30 par max_execution_time = 120
Remplacer ;max_input_vars = 1000 par max_input_vars = 2500
Remplacer ;error_log = php_errors.log par error_log = C:/wamp/logs/php_error.log
Remplacer ; extension_dir = "./" par extension_dir = "C:/Wamp/bin/php/php7.0.0a1/ext/"
Remplacer ;upload_tmp_dir = par upload_tmp_dir = "C:/wamp/tmp"Pour les extensions à charger, le plus simple (pour vous) est de remplacer tout le bloc entre
; Be sure to appropriately set the extension_dir directive. et ;;;;;;;;;;;;;;;;;;; ; Module Settings ;par
; Be sure to appropriately set the extension_dir directive. ; extension=php_bz2.dll extension=php_curl.dll ;extension=php_com_dotnet.dll ;extension=php_enchant.dll extension=php_fileinfo.dll ;extension=php_ftp.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_gmp.dll extension=php_intl.dll extension=php_imap.dll ;extension=php_interbase.dll extension=php_ldap.dll extension=php_mbstring.dll extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysqli.dll ;extension=php_odbc.dll extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_phpdbg_webhelper.dll ;extension=php_shmop.dll ; The MIBS data available in the PHP distribution must be installed. ; See [www.php.net] ;extension=php_snmp.dll extension=php_soap.dll extension=php_sockets.dll extension=php_sqlite3.dll ;extension=php_sysvshm.dll ;extension=php_tidy.dll extension=php_xmlrpc.dll extension=php_xsl.dll ;;;;;;;;;;;;;;;;;;; ; Module Settings ;----
Remplacer ;date.timezone = par date.timezone = UTC ou date.timezone = Europe/Paris
Remplacer ;sendmail_from = me@example.com par sendmail_from = adresse_email_valide
Remplacer mysql.default_port = par mysql.default_port = 3306
Remplacer ;session.save_path = "/tmp" par session.save_path = "C:/wamp/tmp"
Remplacer soap.wsdl_cache_dir="/tmp" par soap.wsdl_cache_dir="C:/wamp/tmp"Sauvez le fichier modifié.
//dll to create symbolic links from php to apache/bin // 55 for PHP 7 $icu = array( 'number' => array('55', '54', '53', '52', '51', '50', '49'), 'name' => array('icudt', 'icuin', 'icuio', 'icule', 'iculx', 'icutest', 'icutu', 'icuuc'), ); $php_icu_dll = array(); foreach($icu['number'] as $icu_number) { foreach($icu['name'] as $icu_name) { $php_icu_dll[] = $icu_name.$icu_number.".dll"; } } $phpDllToCopy = array_merge( $php_icu_dll, array ( 'libeay32.dll', 'libsasl.dll', 'libpq.dll', 'libssh2.dll', //For php 5.5.17 'php5isapi.dll', 'php5nsapi.dll', 'ssleay32.dll', 'php5ts.dll', 'php7ts.dll', //For PHP 7 ) );