cynicus Posted December 6, 2006 Share Posted December 6, 2006 Hello,I have been reading around the forum for some answers but cannot solve my problem.I have installed:PHP 5.2 MySql 5.0Apache 2.2on windows XP proEverything works. Apache parses std php, php executes, mysql works. Php is also succefully connecting to the database when I run from the command line:>php mysql.phphowever, my problem is when I try to parse mysql.php from apacheIt does not recognise the mysql_connect function.I have set up the libmysql.dll file in widows\system32. I have configure php.ini according to the following threadhttp://www.phpfreaks.com/forums/index.php/topic,95378.0.htmlbut that I have a feeling it is the httpd.conf file that needs something else. This is what I have at added to it to get it to parse php code:#php modulePHPIniDir "C:/php5.2/"LoadModule php5_module "C:/php5.2/php5apache2_2.dll"AddType application/x-httpd-php .php .php5AddType application/x-httpd-php-source .phpscan anyone see anything obvious as to why apache would not be able to parse mysql php fuctions?thanks for any pointersVrata Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 6, 2006 Share Posted December 6, 2006 It is not the Apache configuration that is at stake but PHPs.Find and open you php.ini and make sure you have enabled the mysql extension and setup the extension_dir directive too. If already have done that then make saure php is reading the php.ini you are editing. You can easily do that by creating a file called info.php and add the following to it:[code]<?phpphpinfo();?>[/code]Now load that file into your browser and look for the following line:[b]Configuration File (php.ini) Path[/b] to the right of that it should state the full PATH to the php.ini. Is the Path that is stated correct? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.