Installation guide for AMPPR

Apache HTTP Web Server 2.2.3

First we are going to install Apache. To do this, you need to open the file named’apache_2.2.3-win32-x86-no_ssl.msi’ in the ‘Server’ folder. The installation of Apache is fairly simple.

After inserting the correct data (this can be anything), you click next again. Choose for the ‘Typical’ setup type. The standard Destination Folder in program files is a good location to install so click the next button once again to start the installation. Your firewall possibly gives a security warning when Apache tries to connect. Grant Apache access.

Click on the finish button when the installation has finished. To test if the installation went correctly you can open a browser window (e.g.: Internet Explorer, Firefox, Opera, etc). Typ ‘http://localhost/’ (without quotes) in the address bar. With a successful installation you should see It Works on your screen now.

The next thing you need to do is to make sure that Apache will know where you store your project files. To achieve you have to make some adjustments in the Apache configuration file called httpd.conf : go to Start > Programs > Apache HTTP Server 2.2.3 > Configure Apache Server > edit the Apache httpd.conf configuration file. Now the config file will be opened with Notepad. Find this line DocumentRoot C:/Program Files/Apache Group/Apache2/htdocs and change this into DocumentRoot C:/webroot (notice the forward-slash instead of the backslash!). Also change this line <Directory “C:/Program Files/Apache Group/Apache2/htdocs”> into C:/webroot. Finally you have to change this line DirectoryIndex index.html into DirectoryIndex index.html index.html.var index.php.
The only thing that needs to be done before Apache is installed completely is a server restart. You do this by going to Start > Programs > Apache HTTP Server 2.2.3 > Control Apache Server > and choosing Restart.

MySQL 5.0.27

Now its time to install MySQL. Unzip the file called mysql-5.0.27-win32.zip into the Server folder. The file Setup.exe has appeared. Open this file. The installation will start and you will be shown a welcome screen. Click next, choose the typical installation method and click on the next button again. Click install to start the installation.

After the installation you will see a screen where you can register or login on the MySQL.com website. Choose Skip Sign-Up and click next. After this the setup wizard is finished installing MySQL. Click finish.

Now you arrive at the Configuration Wizard. Click next and choose the Standard Configuration, as this is a new MySQL installation. Users who are upgrading a previous installation of MySQL have to choose the Detailed Configuration.

After clicking next you will be asked to insert a root password twice. Type your password twice and click on next again. Then click on execute to start the configuration of MySQL and choose finish after the configuration to close the wizard.

To check if everything went as planned go to Start > MySQL > MySQL Server 5.0 > MySQL Command Line Client. A DOS screen appears. Type your root password and press the enter key.

PHP 5.2.0

For the installation of PHP you need to unzip the file php-5.2.0-Win32.zip into the folder C:\php. Open this folder and copy the file php.ini.dist. Paste the file directly into the same folder and rename it to php.ini. Open the file with Notepad (or another text editor of your choice). Change the lineshort_open_tag = On to short_open_tag = Off. Also change the lineerror_reporting = E_ALL & ~E_NOTICE to error_reporting = E_ALL. Then change the lineextension_dir = “./” toextension_dir = “c:\php\ext\”. After changing these lines you have to find the extensions part and delete the; before the linesextension=php_mbstring.dll and extension=php_mysql.dll. This will ensure that PHP recognizes MySQL.

Right-click here to download PDF version

Share or Bookmark this post:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz

Leave a Reply