travisvermaak Posted September 7, 2007 Share Posted September 7, 2007 Hi There I followed the following steps to install PHP but I ahve a feeling I am missing something. When I try to open my php page it tries to download the code instead of processing it? Is this incorrect info. I am using PHP 5.2.4. And if you can I would really appreciate it if you can tell me how to get it to work with MySQL. Thanks all you super smart chaps out there!!! -------------- Today we will learn, How to Install PHP on Windows How to Install PHP on Linux How to Install Apache on Windows to support PHP How to run PHP with IIS lets begin with How to Install PHP On Windows Well, first of all visit PHP Official Website and download Windows Binary Installation files. There are different versions of PHP the latest version is PHP 5.2.0 at the time of writing this article. One more thing, you will see two kinds of Windows Binary files .zip and .exe I am going to follow .zip file installation as .exe will not install PHP as Apache module on Windows. So if you are going to follow this tutorial then download .zip file. Now create a directory for your PHP installation typically on “C:\PHP”, and create a temporary directory, may be “C:\PHP\temp” to unzip the files. As we don’t need all the files included in the .zip archive for PHP installation so first we are going to unzip the files in the temporary directory that we just created and then we will copy only those files to main “C:\PHP” directory which are needed for PHP installation. Now unzip the downloaded file to the temporary directory “C:\PHP\temp” and copy the following files to main PHP directory “C:\PHP” php.exe php5ts.dll php5apache.dll php5apache2.dll the file names will differ according to the version of PHP you downloaded. Remember we need php5apcahe.dll if you want to run PHP with Apache 1.3 version and php5apache2.dll for Apache 2.x version so you can skip one of them. You can find these files in the temporary directory (where you unzipped the zip archive) under ’sapi’ folder. Also if you want to use the different PHP extensions then copy files in extensions folder from temporary directory to main PHP directory though make sure your PHP is working fine before messing up with extensions’ installation. Also MySQL is already enabled by now and you don’t need to do anything extra to enable it with PHP. Now copy the php.ini-dist file to your Windows installation folder typically C:\WINDOWS and rename it to php.ini (remove -dist from the name) Congratulations! you are done with the PHP installation on Windows However, let me tell you some additional information about configuring PHP to fit to your needs and requirements. -------------- Quote Link to comment https://forums.phpfreaks.com/topic/68354-struggling-to-get-php-to-work/ Share on other sites More sharing options...
travisvermaak Posted September 7, 2007 Author Share Posted September 7, 2007 Oh and I also put c:\PHP in my environmental variables system path. Quote Link to comment https://forums.phpfreaks.com/topic/68354-struggling-to-get-php-to-work/#findComment-343679 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.