Install AppServ – A server environment with (the PHP, MySQL and Apache) into Windows

Posted by Shek on June 12, 2008 under MySQL | Be the First to Comment | Total View: 6,040 views

If you website is not host in home computer but in an external public company and sometimes you might like to test some PHP and MySQL applications, it is not necessary to upload the files there for testing before it actually goes live. We could install a PHP, MySQL and Apache environment in windows for testing. The package is called “AppServ”, and here is how you do it:

  1. Download the AppServ version 2.5.9 from HERE.
  2. Run the .exe file.
  3. Click “Next” then read the “License Agreement” and if you agree, click “I agree” to proceed.
  4. Choose “Destination Folder” and click “Next”.
  5. Choose all of the components and click “Next”.
  6. Put “localhost” as server name, input the email and leave the post 80 as it is and click “Next”.
  7. Input a root password for MySQL and click “Install”.
  8. After the installation, click “finish”.
  9. Now AppServ should now have installed in the computer.
  10. Reboot your computer.
  11. After rebooting, to make sure Apache has started, click: start -> all programs -> AppServ -> Control Server by Service -> Apache Monitor.
  12. An icon of the Apache Monitor should appear on the bottom right corner of the windows, if it is a red square  on the centre then Apache is not running, if it is a green triangle  , then Apache is running.
  13. If Apache is not running, by turning it on, left click on top of the Apache Monitor Icon and choose start.
  14. To test if you have installed correctly, open a browser and type in “localhost” in the address bar.
  15. If you see the AppServ screen then it is installed correctly.
  16. Now go to the AppServ folder and inside, there is a folder named “www”, and that folder is where you put your PHP testing file.
  17. Now make a PHP file named “hello.php”.
  18. place the code <?php echo “Hello world”; ?> in the “hello.php”.
  19. Put the “hello.php” into the folder “www”.
  20. Open a browser and type in “localhost/hello.php” in the address bar and see whether “Hello world” appears on the screen.
  21. If it appears which means that you now have a PHP, MySQL and Apache environment in your windows based computer!!

Not what you want? Try a Search

Add A Comment

*