I am using apache 2.2 webserver (win 7 32,php 5.2 ) . trying to run php file in apache
i have added following statement in httpd.conf under apache conf dir to make php file run under apache (ref: http://goo.gl/jxKI)
LoadModule php5_module "C:/Program Files/PHP/php-5.2.6-Win32/php5apache2_2.dll"
things are working fine i am able to run php file under apache
Now i want to make some changes to php.ini but can’t locate which php.ini file is being used. tried with my php.ini in php installation folder C:/Program Files/PHP/php-5.2.6-Win32/php.ini but this file is also no used.
phpinfo() gives path as c:\windows but there is no php.ini
echo get_cfg_var('cfg_file_path'); doesn't return anything
please help me to solve this issue
You wrote:
This means your .dll expects the configuration file in
c:\windows.Your tutorial mistakenly advises to create a configuration file in
c:\php\php.ini. Move it toc:\windows, edit it to your liking, and it should work fine.I would advise a beginner who seeks to learn PHP/Apache to use ready-to-use packages at first, such as WAMP Server. Manual installations require deeper understanding of PHP (and Apache to some extent).