So I have installed Apache 2.2.8 and PHP 5.2.6, but it seems there is a problem when I add the lines:
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mysqli.dll
extension=php_mysql.dll
I'm getting the following errors:
[05-Jun-2008 17:43:45] PHP Warning: PHP Startup: curl: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[05-Jun-2008 17:43:45] PHP Warning: PHP Startup: gd: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[05-Jun-2008 17:43:45] PHP Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[05-Jun-2008 17:43:45] PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
I really don't know what the hell should I do anymore, because the loaded files are there.
My server is set up like this
C:\ServerPrograms\PHP\
C:\ServerPrograms\Apache\
C:\ServerPrograms\MySQL\
FYI in httpd.conf, I have add the following lines (NOTE: php code IS working):
PHPIniDir "C:/ServerPrograms/PHP/"
LoadModule php5_module "C:/ServerPrograms/PHP/php
5apache2_2
.dll"
ScriptAlias /cgi-bin/ "C:/ServerPrograms/Apache/
cgi-bin/"
ScriptAlias /php/ "C:/ServerPrograms/PHP/"
AddType application/x-httpd-php .php .pxml .m3u .xls
Action application/x-httpd-php "C:/ServerPrograms/PHP/php
.exe"
In php.ini I have set the following line:
extension_dir = "C:\ServerPrograms\PHP\ext
"
and of course the ext folder is there and fine:
2 things to note: the msi installer of PHP 2.2.8 did NOT have a ext folder at alll I had to take the dll's from a older 5.1. version from another machine... the msi I installed was this one
http://uk.php.net/get/php-5.2.6-win32-installer.msi/from/a/mirror and it had nbarely anything is it, also the php.ini file (original) didn't have the usual
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_mysqli.dll
;extension=php_mysql.dll
;extension=php_gettext.dll
;extension=php_hyperwave.d
ll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.d
ll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dl
l
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.
dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.d
ll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zip.dll
lastly my Environment Variables path variables are
PATH=C:\ServerPrograms\PHP
\;C:\WINDO
WS\system3
2;C:\WINDO
WS;C:\WIND
OWS\System
32\Wbem;C:
\ServerPro
grams\MySQ
L\MySQL Server 5.0\bin
Start Free Trial