I can't find my "php.ini-dist" file

I’m really sorry for asking this question but I have been searching for over an hour and I am not having much luck with my issue.

I am currently reading Yank’s book and I am trying to instal MySQL, PHP and Apache.

MySQL and Apache are both good to go. Now I need to install PHP and I can’t because the instructions say to do a few things with the php.ini-dist file… and I can’t find that file. It doesn’t exist in the folder.

What now?

Thanks in advance.

use php.ini-development or just php.ini

You are awesome. Thanks for the lightening fast response… I’m good to go now. I really appreciate it.

More issues.

It looks like the problems are just because I have newer downloads than what they book was written for.

I set up all of the files carefully based on the instructions but now I can’t load apache.

I’m not sure exactly what the error is but I ASSUMING it has something to do with the fact that the instructions say to add this code to the end of the httpd file…

LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/PHP"

…and that file (php5apache2_2.dll) doesn’t exist in my download. I am tempted to point that line to the PHP5.dll file but I don’t want to screw anything up.

Thanks again!

Please anyone? I just need to know what file to point to using Apache 2.2.11 and PHP 5.3.0

LoadModule php5_module "C:/PHP/php5apache2_2.dll"

Points to a file that doesn’t exist. Research told me that this happens sometimes but none of the research says where to point the LoadModule line with my versions of the programs.

Thanks!

Did you download the zip file or the executable file of PHP?

I downloaded the .zip file.

Okay did you extract the files to C:\PHP or some other location on your HDD?

I extracted them to C:\PHP which I had to make myself.

http://windows.php.net/download/

get VC6 x86 Thread Safe

Ah, I downloaded Non Thread Safe the first time. Thanks… I will let you two know if it works for me this time.

I appreciate the quick help from both of you.

Alright I think I am good to go now. I am going to continue with the book but I did notice that the status bar of the apache window does not indicate that PHP is installed. Not sure why it doesn’t. I hope that’s not a big deal.

Have you installed Apache, MySQL and PHP separately?

If you download and install WAMP (presuming you have Windows if not, LAMP for Linux and XAMP for Mac) as the installs are much smaller and everything installs in one go.

As for the book using old code & methods it would be strongly advisable to stay with the recent version of PHP and learn how to upgrade the code.

Why?

When it comes to placing your site live on the web you’ll only have to re-write chunks of your code anyway to bring it up-to-date.

Plus with WAMP if you change any of the settings within php.ini all you need to do is right-click the icon in the system tray, stop the service and restart for it to pick up the changes.

Hey, thanks a lot for chiming in! Because I was following the book, I installed PHP, MySQL and Apache separately to make it easier to follow the book (the book advised that so I did it).

Good call on staying with the newer versions… that’s what I did and I am good to go now. I downloaded the Non Thread Safe zip instead of the Thread Safe so that was my problem.

Thanks!