travisvermaak Posted September 10, 2007 Share Posted September 10, 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 I also entered the path into the environmental variables. And enabled the MySQL dll in the php.ini Link to comment https://forums.phpfreaks.com/topic/68663-please-help-with-install-from-zip-file/ Share on other sites More sharing options...
Wuhtzu Posted September 10, 2007 Share Posted September 10, 2007 This should be in PHP Installation http://www.phpfreaks.com/forums/index.php/board,7.0.html Link to comment https://forums.phpfreaks.com/topic/68663-please-help-with-install-from-zip-file/#findComment-345167 Share on other sites More sharing options...
liam1412 Posted September 10, 2007 Share Posted September 10, 2007 Sounds like your trying to open it in the same was as you would an html file. You need to place it in your document root file and browse to it using http://localhost/text.php Link to comment https://forums.phpfreaks.com/topic/68663-please-help-with-install-from-zip-file/#findComment-345268 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.