Author Topic: php.ini file not loading  (Read 1806 times)

0 Members and 1 Guest are viewing this topic.

Offline BarrievansTopic starter

  • Irregular
  • Posts: 6
    • View Profile
php.ini file not loading
« on: January 13, 2010, 01:13:38 PM »
PHP ver 5.2.12 - Windows7 64 bit with Apache2.2
Info says that the configuration file path is C:\windows
and that no configuration file is loaded

I have a PHP.INI fil in c:\PHP5 and one in c:\windows

My Httpd.conf file has the following entries

LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php5"

Bottom line is that I get a

Fatal error: Call to undefined function mysql_connect() in

when trying to connect to mysql

Offline PFMaBiSmAd

  • Guru
  • 'Insane!'
  • *
  • Posts: 14,588
  • In Coding, Automatic means you write code to do it
    • View Profile
Re: php.ini file not loading
« Reply #1 on: January 13, 2010, 01:21:16 PM »
After changing httpd.conf, did you stop and start the web server to get the change to take effect?
Signature: (not a comment about anything you posted unless specifically indicated)
Debugging step #1: To get past the garbage-out equals garbage-in stage in your code, you must check that the inputs to your code are what you expect.

Programming is just problem solving, but it is done in another language. You must learn enough of the programming language you are using to be able to read and write code.

Offline BarrievansTopic starter

  • Irregular
  • Posts: 6
    • View Profile
Re: php.ini file not loading
« Reply #2 on: January 13, 2010, 01:23:42 PM »
I restarted the computer and the re checked phpinfo - no change

Offline BarrievansTopic starter

  • Irregular
  • Posts: 6
    • View Profile
Re: php.ini file not loading
« Reply #3 on: January 13, 2010, 01:37:18 PM »
Apologies - went to services and restarted service - has now loaded PHP.INI
Saga continues