PKFIOM
asked on
PHP-CGI Installation Problem - PHP 5.1.2
We have been running PHP on our internal network since version 4-2-2 (Intranet Server running Windows 2000 SP4 Server and uses IIS5.0)
PHP was initially installed to run PHPBB and then vBulletin. Under the Application Mappings section of IIS (for the Default Web Site) I configured .PHP extensions to use D:\PHP\php.exe.
Obviously, since installing PHP v4.2.2, we have upgraded the runtime a few times - we now currently run PHP 5.1.2.
Although the version of PHP has been upgraded I have not changed the Application mapping for PHP - as websites defined on our Intranet server inherit settings from the default all sites still use C:\PHP\php.exe for App Mapping (rather than PHP-cgi.exe since version 5)
All sites have worked fine until I installed a new site for SubDreamer and changed the App Mapping to PHP-cgi.exe.
I now get the error -
Fatal error: Call to undefined function mysql_connect() in D:\server-name\includes\db \mysql.php on line 34
PHP Warning: PHP Startup: Unable to load dynamic library 'D:\PHP\ext\php_mssql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\PHP\ext\php_msql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\PHP\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0
PHP.ini has been amended to set extension-dir to D:\PHP\ext and the three DLL modules above can be found in the ext directory. The extension line in PHP.ini for the relevant modules has been un-commented
Changing the App Mapping back to php.exe the system works fine (except for the GD image library under SubDreamer which is how I found this problem in the first place)
Any clues?
PHP was initially installed to run PHPBB and then vBulletin. Under the Application Mappings section of IIS (for the Default Web Site) I configured .PHP extensions to use D:\PHP\php.exe.
Obviously, since installing PHP v4.2.2, we have upgraded the runtime a few times - we now currently run PHP 5.1.2.
Although the version of PHP has been upgraded I have not changed the Application mapping for PHP - as websites defined on our Intranet server inherit settings from the default all sites still use C:\PHP\php.exe for App Mapping (rather than PHP-cgi.exe since version 5)
All sites have worked fine until I installed a new site for SubDreamer and changed the App Mapping to PHP-cgi.exe.
I now get the error -
Fatal error: Call to undefined function mysql_connect() in D:\server-name\includes\db
PHP Warning: PHP Startup: Unable to load dynamic library 'D:\PHP\ext\php_mssql.dll'
PHP.ini has been amended to set extension-dir to D:\PHP\ext and the three DLL modules above can be found in the ext directory. The extension line in PHP.ini for the relevant modules has been un-commented
Changing the App Mapping back to php.exe the system works fine (except for the GD image library under SubDreamer which is how I found this problem in the first place)
Any clues?
AFAIK the mysql-extension under php 5 needs a mysqlclient.dll of version 4.x. So check which mysqlclient.dll you have installed on your system and replace (after the backup of the old one) it with an uptodate version.
'D:\PHP\ext\php_mssql.dll' is for MS SQL not MYSQL
as for php_mysql.dll
you can get it from here : http://pecl.php.net/package/mysql and add it to your ext direcrory
Some of these DLLs are not bundled with the PHP distribution. so you can find the dll in this site http://pecl.php.net
as for php_mysql.dll
you can get it from here : http://pecl.php.net/package/mysql and add it to your ext direcrory
Some of these DLLs are not bundled with the PHP distribution. so you can find the dll in this site http://pecl.php.net
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.