Jump to content

PHP installer for Windows giving me grief again :(


Recommended Posts

I'm trying to install PHP on Windows with the MSI installer pack and it's only listing the following options on web server configuration:

 

- IIS FastCGI

- Other CGI

- Do not set up a web server

 

As I recall it used to have lots of options, probably about 10 or so. I need to use it with Apache 2.2.11, what happened to the Apache 2.2 option that I used to use?

 

The version of PHP I have downloaded is "VC6 x86 Non Thread Safe (2009-Jun-30 08:52:54)" - MSI Installer. Do UI haev the right installer?

 

Thanks.

Link to comment
Share on other sites

Do not use the installer for PHP. Instead download the VC6 Thread Safe Zip package from http://windows.php.net/. Extract the contents of the zip to C:/php. Rename php-development.ini (located in C:/php) to php.ini.

 

Now add the following to Apaches httpd.conf (This is located in C:/<path to apache>/conf)

 

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

 

Save the httpd.conf. Now add C:/php to the Path Environment Variable. Restart Windows and PHP is installed.

 

Before modifying the php.ini first test whether everything is setup correctly. Create a new file called info.php in C:/<path to Apache>/htdocs. Add the following code to this file

<?php phpinfo(); ?>

Open you browser and go to http://localhost/info.php. You should get a white/purple which details PHP configuration/environment. If you do everything is setup and you're good to go.

Link to comment
Share on other sites

Thanks, works perfectly now that I've used the zip (you typoed php5apche2_2.dll in your code which I blindly copied and pasted at first though, you could edit that in case someone else reads this thread and does the same)

 

What happened to the installer though? I used to be able to make it work from the MSI installer. :confused:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.