(1) PHP from scratch WampServer

Source: Internet
Author: User
Tags php error php error log
Summary # down said that a bunch of Windows versions have not been released separately. Some organizations have provided them, and some organizations have attached their addresses to download them directly. Install

(1) At the beginning, I wanted to install apache separately and then install php, because I had mysql on my local machine. Download the Apache official website address ghost, which is provided by some organizations, some organizations can be directly downloaded. Install

(1) I first wanted to install apache separately and then install php, because I had mysql on my local machine. Download the Apache official website address.

Http://httpd.apache.org/docs/current/platform/windows.html#down said a bunch of don't separately send win version,

Some organizations provide and some organizations can download them directly. Install the WampServer package here



Windows 2.5 32-bit WampServer (Apache server set) 64-bit official free version

Http://www.bkill.com/download/6639.html

After the installation is complete, enter http: // localhost/in the browser to view the WampServer information interface.

Problems

The 1 icon is yellow and should be green normally.

2phpMyAdmin failed to open and cannot connect to mysql.

The reason is that a mysql instance has been installed on the local machine. Shut down the service, restart WampServer, and fix the problems 1 and 2. Everything works normally.

It should be a problem with the mysql port.


Bytes ----------------------------------------------------------------------------------------------

(2) WampServer panel

Right-click: About, refresh, help, language, and exit.

Left click:

Http: // localhost/

Phpmyadmin

Www dirctory

Apache (httpd. conf Apache configuration file, two access and error log files)

PHP (php. ini php configuration file also has a php Error Log)

Mysql

Webgrind (website performance analysis)

Start All services

Stop All services

Restart All services

Put onLine (WampServer onLine status-LAN access, offline status-only local access)

Bytes ----------------------------------------------------------------------------------------------

(3) customize the website root directory www dirctory

By default, it is placed in the www folder under the installation path and changed to the F: \ phpdemo folder.


Step 1:

Modify the configuration file: E: \ WampServer2.5 \ wamp \ bin \ apache \ apache2.4.9 \ conf \ httpd. conf

DocumentRoot "E:/WampServer2.5/wamp/www/"

DocumentRoot "F:/phpdemo"

Step 2:

Modify Is


Step 3:

To change the configuration file to take effect, restart the service.

Step 4:

Test in F:/phpdemo,Create a test. php statement to output a sentence


Step 5:

The root directory has been modified successfully, but the left-click www directory of wamp is still the original one. This requires another configuration.

Wampmanager. ini and wampmanager. tpl files under the installation path of warm

Wampmanager. ini

[Menu. Left] ---> FileName: "E:/WampServer2.5/wamp/www"; the website root directory points. Change

FileName: "F:/phpdemo ";


Wampmanager. tpl

[Menu. Left. Settings] --> Caption: "$ {w_wwwDirectory}"; Action: shellexecute; FileName: "$ {wwwDir}"; changed

Caption: "Demo directory"; Action: shellexecute; FileName: "F:/phpdemo ";


Final result: the www dirctory with the left mouse button is changed to the Demo directory, and the F:/phpdemo folder is opened.

Bytes ----------------------------------------------------------------------------------------------

(4) WAMPServer multi-site configuration

Step 1:

Add Site E: \ WampServer2.5 \ wamp \ bin \ apache \ apache2.4.9 \ conf \ extra \ httpd-vhosts.conf increase


Step 2:

Go to file E: \ WampServer2.5 \ wamp \ bin \ apache \ apache2.4.9 \ conf \ httpd. conf and remove the comment below to include the httpd-vhosts.conf File

# Virtual hosts
# Include conf/extra/httpd-vhosts.conf

Then


Step 3: configure the host file of the windoow.




(5) WAMPServer custom Port


Modify E: \ WampServer2.5 \ wamp \ bin \ apache \ apache2.4.9 \ conf \ httpd. conf

Step 1: change the original 80 to 8025

# Listen 12.34.56.78: 80
Listen 0.0.0.0: 8025
Listen [: 0]: 8025

Step 2: Modify ServerName to change 80 to 8036.

ServerName localhost: 8036

Bytes ----------------------------------------------------------------------------------------------


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.