Professional Documents
Culture Documents
installing Apache, PHP and MySQL on the latest release. In this post like previous we
will cover installing all the programs individually. This will cover installing 64 bit
versions of the programs.
Extract the zip and copy it to the root of C:\. This will be C:\Apache24 when it is all
done.
Edit Apaches config file, c:\Apache24\conf\httpd.conf and add the following lines to
the bottom of the file.
While we are at it we can add index.php to Apaches list just incase we want to have a
starting page as php.
Next we need to register the path where the applications reside. This
is done by editing the PATH variable.
Add
;c:\php;c:\Apache24;c:\Apache24\bin
Next we need to input a value for ServerName variable. You will have to un-comment
it. Save the changes to the config file. Next move to the Register Apache Service step.
Now lets register Apache as a service. Open a command prompt and type.
c:\apache24\bin\httpd -k install
Command line
PHP Edits
Now we have to do a few edits to the php.ini file to tell it to load support for mysql and
the location for the extensions. Since there is not a already set php.ini file we need to
rename one of the two examples to php.ini.
Save the changes and open a command prompt. Check to make sure it shows loaded
modules.
C:\> php -m
So now we have Apache running and configured to use php. Lets create a file called
info.php, save it and see if Apache parses the info correctly to display the results.
Open Notepad or your favorite Windows editor and type and save the following.
<?php
phpinfo();
?>
Open your browser and type, localhost/info.php for the location and you should receive
alot of information about PHP.
MySQL
Download and install mysql-installer-community-5.6.26.0.msi. Change installation
directory to C:\MySQL\MySQL Server 5.6 instead of Program files as there could be
permissions issues. Once the installation is completed you can let the configuration
wizard run and setup the database server. The defaults will work just fine, but remember
what you set the password to for root.
At this point you should have a working Apache / PHP / MySQL installation running
and ready for you to use!