Jump to content

Please help with install from .zip file!!!


travisvermaak

Recommended Posts

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
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.