Introduction to PHP Tutorial One: installation of the environment

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

PHP is one of the popular web scripting languages, especially now in the form and many large Web sites Sina Baidu Sohu Tom and so on have chosen PHP as a front-end script, but also reflects the excellent performance of PHP and can bear the capacity of high load now I learn about the environment of PHP to install a simple introduction to you:

PHP is currently the most popular combination of Linux Apache PHP mysql but for beginners I recommend installing a suite under Windows for Environmental assembly, for several reasons.

First, beginners are basically learning the language of the preparation of the environment is not very large, and so familiar with the environment later to build the study is also very easy.

Second, avoid in the beginning a lot of strange problems do not understand, will make their interest greatly reduced.

Third, you can quickly start the program.

Currently popular Windows under the PHP Environment suite A lot of such as Appserv Phpnow, and so on, I would like to briefly introduce the Appserv in Windows to build a PHP operating environment steps.

First, we are using Appserv for the latest version 2.5.9 can be downloaded in http://www.onlinedown.net/soft/35753.htm.

Appserv's suite has its own Apache 2 PHP 5 mysql5 zend Accelerator phpMyAdmin.

Second, close the BT and electric Donkey and other Peer-to-peer software, because Apache enable 80 ports May and peer-to-peer software conflicts.

Third, the installation process is as follows

The Appserv installation is the same as for most Windows software installations.

I chose the appserv of C disk as the installation directory for the service.

The suite installs the Apache Web server PHP scripting interpreter MySQL database and phpmyadmin this web-form MySQL database management software.

Here, enter our service name and the port where the service is enabled and the email address of the administrator the first two can fill out the last Apache server port generally defaults to 80 if 80 ports have other uses can be changed to their own settings.

The bottom is to fill in the MySQL database root admin password two times I filled out the 1 password used to connect to the database use remember the dropdown menu below to select the database character set, most of the time we will choose GBK Simplified Chinese character set.

Then the install is installed and the boot server process is completed. apache2.2 and MySQL will be added to the system service after proper installation. After the server is started, the following interface appears after the http://127.0.0.1 native address in the browser, which proves the successful installation of the Operation environment.

Some of the configuration needs to be modified C disk Appserv folder under the Apache directory is Apache directory conf folder httpd.conf is Apache configuration in the early days we mainly use the configuration project is DocumentRoot.

The folder path that is to provide the service defaults to the default path in DocumentRoot "c:/appserv/www" quotes if you change the service catalog, restart the Apache service after changing the item. Later chapters describe how to use a virtual host to set up multiple sites.

In the default service directory, we create a hello.php file with Notepad as follows:

Copy the contents to the Clipboard code.

Then http://127.0.0.1/hello.php in the browser to see Hello World as proof that our service environment has been built and built the first PHP program Hello World.

Small AD http://www.jzmyway.cn

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.