MetalSmith Posted December 12, 2009 Share Posted December 12, 2009 I am setting up Apache and PHP on a new Windows box but when I install PHP it is not putting php.ini in the start bar and under the PHP folder the php.ini file doesn't have any settings like it used to. What the heck is going on? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/184915-phpini-is-empty/ Share on other sites More sharing options...
trq Posted December 12, 2009 Share Posted December 12, 2009 but when I install PHP it is not putting php.ini in the start bar Never heard of that happening anyway, what installation method are you using? and under the PHP folder the php.ini file doesn't have any settings like it used to You normally would need to copy this from the php.ini.example, php.ini.dist or php.ini.devlopment file (can't recall what name they actually use but its a simple example file). Quote Link to comment https://forums.phpfreaks.com/topic/184915-phpini-is-empty/#findComment-976220 Share on other sites More sharing options...
MetalSmith Posted December 13, 2009 Author Share Posted December 13, 2009 This is a 5.2.11 windows install. I have done this many times before so I do not understand what I am doing wrong. I run Apache 2.2.1. Here is what was in my php.ini file after fresh install: log_errors=On error_log="C:\WINDOWS\temp\php-errors.log" extension_dir="C:\Program Files\PHP\ext" [php_GD2] extension=php_gd2.dll Strange thing is I used to see tons of options to change like memory and stuff. Quote Link to comment https://forums.phpfreaks.com/topic/184915-phpini-is-empty/#findComment-976367 Share on other sites More sharing options...
wildteen88 Posted December 13, 2009 Share Posted December 13, 2009 Argh you have used the installer to install PHP. Do not use the installer, uninstall PHP. Go to php.net and download the PHP Zip package instead. Extract the Zip and configure PHP and Apache manually. Quote Link to comment https://forums.phpfreaks.com/topic/184915-phpini-is-empty/#findComment-976482 Share on other sites More sharing options...
MetalSmith Posted December 13, 2009 Author Share Posted December 13, 2009 Ok I did the zip version. I added this to my apache 2.2.1 httpd.conf LoadModule php5_module "c:/program files/php/php5apache2_2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/program files/php" Is that all I have to do? It seems to be working but I remed out the last 2 lines just to see if it still worked and it seems to work with just the LoadModule line added. I unremed them back to normal just in case. Any thoughts on this? Quote Link to comment https://forums.phpfreaks.com/topic/184915-phpini-is-empty/#findComment-976519 Share on other sites More sharing options...
wildteen88 Posted December 13, 2009 Share Posted December 13, 2009 Yes that is that basically all you need to add to the httpd.conf configure Apache with PHP. I would recommend you to PHP to the PATH Environment Variable too. You'll now need to rename the file php.ini-recommended to php.ini within your PHP installation folder. Quote Link to comment https://forums.phpfreaks.com/topic/184915-phpini-is-empty/#findComment-976522 Share on other sites More sharing options...
MetalSmith Posted December 13, 2009 Author Share Posted December 13, 2009 Great thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/184915-phpini-is-empty/#findComment-976524 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.