affiliate_link


After days and hours of trying to make the PHP autoinstaller work on a windows 2003 VPS, I finally gave up. I've been playing around with these for a couple of days but to no avail, it doesn't work. It doesn't recognize php pages and just throws a 500 internal server error. I thought things would be easier if I use that program. Currently, I am using a Windows 2003 virtual private server (virtuozzo) with IIS 6 installed. I haven't got any single problem with the Mysql installer. Anyway, here's how I've managed to make php a part of my web server. :)

INSTALLING PHP 5.2.6 on IIS 6

1. Download the Windows binary zip file from the PHP's download site. I have downloaded the latest release which is PHP 5.2.6.

2. Create a folder named PHP on your drive C:. (C:\PHP)

3. Unzip and move all contents of the downloaded file ( of course we are talking about the PHP files) to the directory C:\PHP.

4. Rename php.ini-recommended to php.ini and then place a copy of it to the C:\Windows folder.

5. Open IIS Manager and then navigate to the website you want to use PHP with, right click and then choose Properties. You should be able to see the Home Directory tab, click Configuration.

6. Under the Application Configuration, Mappings tab, add .php extension to the application extensions. Click Add, and then browse to the PHP directory, in our case (C:\PHP) select php5isapi.dll. Type the ".php" under the Extension directive without the quotes. Set all other options to its default.

7. Also do not forget to set the "Scripts only" permission on the application settings. Just navigate the Home Directory tab to do this.

8. Go back to the IIS Manager, find the Web Service Extensions.

9. Click "Add new web service extensions..." type PHP for the extension name, choose add and then browse to the php5isapi.dll. (C:PHP\php5isapi.dll) Tick the "Set extension status to Allowed" and then click ok.

10. Finally, reboot the server.

To test if php pages are now being served by your server, create a sample php file. Include the following lines to the document:
phpinfo();
?>

Name it info.php. This file also lets you see the existing configuration for your PHP installation. Do not also forget to set the following in your php.ini:

a. Loadable Extension (Modules) Path

extension_dir = "C:\PHP\ext"

b. Session Save Path

session.save_path = "C:\Documents and Settings\Administrator\Local Settings\Temp"

If you will be using the program with mysql, simply uncomment the php_mysql.dll from the Dynamic Extensions portion of the INI file (php.ini).

Hmm so far so good. I guess that would be all. Hope this post helps. Do drop a shoutout if you think I missed out something.

^_^

Recommended buys!

0 comments