Installing Apache and MySQL on a Windows system

Source: Internet
Author: User
Tags mysql php and phpmyadmin

Select a correct Wamp installer

There are many different wamp installers to choose from. Some of the better are: Appserv,easywamp,foxserv, Phpdev, PHP Triad, TYPO3 WAMP Installer (including memory management system programs) and Wampserver. The following will show you how to use Appserv.

How to install Appserv

1. After downloading Appserv from SourceForge.net, double-click to run.

2. Agree to the license agreement and select the directory where you need to install the software.

3. It is recommended that all four items be installed: apache,mysql,php and phpMyAdmin. The only one that is not required is phpmyadmin, but it is useful.

4. Since this is to establish a test server, the name of the server is "localhost" and the administrator's e-mail address is "Admin@localhost". The port can use default values.

5.MySQL defaults to a blank root password, but this is obviously very unsafe. So set a secure password that is easy to remember and click Install.

The 6.AppServ will run through Apache,mysql and PHP throughout the system installation process.

7. Start Apache and MySQL with Appserv, then you can browse http://localhost/to view your new page.

Set up your Wamp server

Appserv will put all your pages in the "DocumentRoot"--Located in the Appserv directory in the WWW subdirectory. The default path is "C:/appserv/www".

It is recommended that you change this path so that your test server is closer to other Web folders. How to change the path of your server? as follows:

1. Opening httpd.conf in a text editor will find the httpd.conf folder in the appleservice/apache2.2/conf directory.

2. Search for the keyword "DocumentRoot" in this folder.

3. Place the hash sign (#) at the beginning of the DocumentRoot. This allows you to annotate this line.

4. Write a new line:

Document Root "full path to your Web site Directory"

5. Then continue to write:

﹤directory "C:/progra~1/appserv/www" ﹥

and change the path in the DocumentRoot path quotation marks.

6. Restart Apache (open Start menu → program →appserv→ select "Restart Apache")

If you want to run phpMyAdmin on your server, you need to copy the phpMyAdmin folder from the Appserv/www folder to your new Documentationroot folder. Log in with the root username and the password you have previously set.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.