首页 > 代码库 > Introduce XAMPP – a convenient way to setup websites

Introduce XAMPP – a convenient way to setup websites

1.     What is XAMPP?

XAMPP is a completely free, easy to install Apache distributioncontaining MySQL, PHP, and Perl.

a.      X – Operation System (Windows/Linux/Apple OS)

b.     A – Apache

c.      M – MySQL

d.     P – PHP

e.     P – Peal

 

2.     Download:

https://www.apachefriends.org/index.html

 

3.     Basic Configure:

After successfully set up, software involved in XAMPP can be found atXAMPP_HOME which assigned in the setting up process.

a.     XAMPP:

wKioL1Q7QVPii3PfAAShbcMTeNA136.jpg

i.     Either“xampp-control.exe” or “xampp_start.exe” in XAMPP_HOME can be used to start up theservices involved in XAMPP.


ii.     “xampp_stop.exe”in XAMPP_HOME can be used to shutdown the services involved in XAMPP.


iii.     “xampp-control.log”in XAMPP_HOME records the history of XAMPP operation.


b.     Apache:

i.     “bin”, “conf” and “logs” are the most importantdirectories in apache which can be found in XAMPP_HOME\apache. wKioL1Q7Qe_DCGeFAAMmgn1huPc606.jpgi.     “httpd.conf” in “conf” is the configuration ofapache.

ii.      “httpd.exe”in “bin” is used to start up http services.

iii.     “error.log” and “access.log” record whathappened in apache which can be found in “logs”.


c.      MySQL:

i.     “bin” and “data” are the most importantdirectories in mysql which can be found in XAMPP_HOME\mysql.

wKioL1Q7ULHz5MIVAANVDjbZhd4396.jpg

i.     “my.ini” in “bin” is the default MySQL configuration.Also, all the tools used to control and connect to MySQL can be found in “bin”

ii.     “mysql_error.log” and MySQL binary logs arelocated in “data” by default.


d.     PHP:

i.     “php.ini” is the configuration of PHP which canbe found in XAMPP_HOME\php.

wKiom1Q7UQ2jf4CsAARIm5wEMi4577.jpg


ii.     All the extensions can be found inXAMPP_HOME\php\ext. They should be configured in php.ini before being used.

wKioL1Q7Ua6Sx5l4AANuRLJwiEQ366.jpg


4.     Example:

a.      Configure all the files if needed. (Defaultconfigurations work)

b.     Start up services of apache, mysql with XAMPPControl Panel.

wKiom1Q7UaiRX7rbAAO07zh0nxo048.jpg


c.      Open a browser and visit “http://localhost/”.The web page should be as follows if it works,

wKioL1Q7UhngkNOUAAHbBylugS4181.jpg

本文出自 “草将十早乞” 博客,请务必保留此出处http://jamesjohn.blog.51cto.com/1675378/1563128

Introduce XAMPP – a convenient way to setup websites