Centos7 Installing the XAMPP PHP Environment pack

Source: Internet
Author: User
Tags phpmyadmin

1.XAMPP Introduction.

XAMPP (Apache+mysql+php+perl) is a powerful built-in XAMPP software station integration package. The original name of this package is lampp, but in order to avoid misunderstanding, the latest version has been renamed to XAMPP. It can be installed in various operating systems, such as Windows, Linux, Solaris, Mac os X, and many more languages: English, Simplified Chinese, Traditional Chinese, Korean, Russian, Japanese, etc.

2. Installation steps.

Go to the www.apachefriends.org website to download the installer you need.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_09h30m14s_005_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_09h30m14s_005_ "src=" http://s3.51cto.com/wyfs02/ M01/6f/d6/wkiol1wrgjvixuesaadli61uyk0323.jpg "width=" "height=" 310 "/>

After the download is complete, use Cd/home/william to enter the user directory, use the LS command to list the files and folders, the CD to the download folder, and then the LS command to list the downloaded files

The file does not have execute permission at this time, execute sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run

Then ls–l view File permission settings

650) this.width=650; "title=" ashampoo_snap_2015.07.19_09h50m48s_006_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_09h50m48s_006_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d6/wkiol1wrgjvhlgxjaafcw8zb-pw217.jpg "width=" "height=" 430 "/>

Execute the command sudo./xampp-linux-x64-5.6.8-0-installer.run, select XAMMP mode, I choose Development mode.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h35m42s_009_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h35m42s_009_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d9/wkiom1wrfr3xjvqraagzjlao5z0774.jpg "width=" "height=" 425 "/>

Confirm the selected mode.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h36m34s_010_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h36m34s_010_ "src=" http://s3.51cto.com/wyfs02/ M00/6f/d6/wkiol1wrgj3t24hyaafvkcdcmfg262.jpg "width=" "height=" 368 "/>

Choose whether to start installing XAMMP.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h36m49s_011_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h36m49s_011_ "src=" http://s3.51cto.com/wyfs02/ M01/6f/d6/wkiol1wrgj7dycd8aafyzrvb-u4893.jpg "width=" "height=" 425 "/>

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h37m18s_012_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h37m18s_012_ "src=" http://s3.51cto.com/wyfs02/ M01/6f/d9/wkiom1wrfr-gbnrcaaezhr9aiju082.jpg "width=" "height=" 428 "/>

Successfully installed XAMMP.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h41m34s_013_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h41m34s_013_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d6/wkiol1wrgj_gisx6aaf4exanqzs432.jpg "width=" "height=" 428 "/>

Sudo/opt/lampp/lampp start xampp with command

Sudo/opt/lampp/lampp Stop Stop XAMPP

Sudo/opt/lampp/lampp Restart Restart XAMPP

Set XAMPP with the command sudo/opt/lampp/lampp security.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h44m02s_014_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h44m02s_014_ "src=" http://s3.51cto.com/wyfs02/ M00/6f/d6/wkiol1wrgkdw3tstaaf9j2aeypo012.jpg "width=" "height=" 425 "/>

Sets the password for the XAMMP home page.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h44m42s_015_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h44m42s_015_ "src=" http://s3.51cto.com/wyfs02/ M01/6f/d6/wkiol1wrgkhxdarzaagfhpgblv4336.jpg "width=" "height=" 428 "/>

Set the password as prompted.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h45m28s_016_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h45m28s_016_ "src=" http://s3.51cto.com/wyfs02/ M01/6f/d9/wkiom1wrfspwuqd6aagjse0b7im008.jpg "width=" "height=" 405 "/>

Set whether to turn off remote access MySQL

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h47m01s_017_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h47m01s_017_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d6/wkiol1wrgkprpojmaahajsrcnvc165.jpg "width=" "height=" 425 "/>

Select Yes to close

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h51m06s_018_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h51m06s_018_ "src=" http://s3.51cto.com/wyfs02/ M00/6f/d6/wkiol1wrgkowi0xwaagqjixo0jc079.jpg "width=" "height=" 398 "/>

Set the phpMyAdmin user password.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h55m46s_021_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h55m46s_021_ "src=" http://s3.51cto.com/wyfs02/ M01/6f/d6/wkiol1wrgkttblm6aae6un06qoq006.jpg "width=" "height=" 428 "/>

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h56m18s_022_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h56m18s_022_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d6/wkiol1wrgkwh2rimaafrqcxoxx8261.jpg "width=" "height=" 325 "/>

Set the MySQL root password

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h56m28s_023_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h56m28s_023_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d9/wkiom1wrfsezhopnaagjza5aedy918.jpg "width=" "height=" 425 "/>

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h56m59s_024_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h56m59s_024_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d9/wkiom1wrfsfxxeujaahtwoyqjpk719.jpg "width=" "height=" 402 "/>

Set FTP password

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h52m35s_019_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h52m35s_019_ "src=" http://s3.51cto.com/wyfs02/ M00/6f/d6/wkiol1wrgkirmw7_aahmkyhdadc322.jpg "width=" "height=" 425 "/>

650) this.width=650; "title=" ashampoo_snap_2015.07.19_10h53m45s_020_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_10h53m45s_020_ "src=" http://s3.51cto.com/wyfs02/ M00/6f/da/wkiom1wrfsnze5zpaaiaf6ar8qq404.jpg "width=" "height=" 430 "/>

Test local access, only enter localhost in the browser address bar, if an explanation appears ok.

650) this.width=650; "title=" ashampoo_snap_2015.07.19_11h03m46s_025_ "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" ashampoo_snap_2015.07.19_11h03m46s_025_ "src=" http://s3.51cto.com/wyfs02/ M02/6f/d6/wkiol1wrgkqzhxggaagaq2jpmhy221.jpg "width=" "height=" 328 "/>

Set boot auto-start XAMPP

sudo ln-s/opt/lampp/lampp/etc/init.d/lampp
sudo chkconfig--add lampp

Modify config to allow remote access to xampphttpd-xampp.conf

Enter the directory with the command Cd/opt/lampp/etc/extra, ls list file, find httpd-xampp.conf

sudo vim httpd-xampp.conf

Found at the bottom

<locationmatch "^/(? I: (?: xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))" >
Require Local
ErrorDocument 403/error/xampp_forbidden.html.var
</LocationMatch>

Revision changed to

<locationmatch "^/(? I: (?: xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))" >
# Require Local
# ErrorDocument 403/error/xampp_forbidden.html.var

Allow from all
</LocationMatch>

Restart XAMPP sudo/opt/lampp/lampp Restart

Centos7 Installing the XAMPP PHP Environment pack

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.