XAMPP - Apache PHP MySQL

1.     What is XAMPP?

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

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

b.     A �C Apache

c.      M �C MySQL

d.     P �C PHP

e.     P �C 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.jpgii.     “httpd.conf” in “conf” is the configuration ofapache.

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

iv.     “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


5.     Automatically startup

a.      Right click “xampp-control.exe” and run asadministrator.

wKiom1RFClORxcsQAANP1iru2Oc448.jpg

b.      Stop all the services.

c.     Click “Modules Service” and make the requiredservice switch to green tick from red cross.

wKiom1RFCpTRQNFrAAM7XG66tXw645.jpg

d.      Make sure the required service start upautomatically.

wKiom1RFCr3i3IziAAZ6s3nCsp0202.jpg

e.      Start the services and go to step 4.


你可能感兴趣的:(mysql,PHP,apche,xmapp)