First, start
Because it is a beginner, choosing an integrated environment can reduce many operations and unnecessary hassles.
Integrated environment with XAMPP,WAMP, etc.
I used the first use of the XAMPP integrated environment, so attach Xampp's official website
Second, download and decompression
I downloaded the. run file, run directly on it, compress the package to unzip the/OPT directory under the
How to use the usual decompression commands [go]
. Tar unpack: Tar xvf filename.tar pack: Tar cvf filename.tar DirName ———————————————. gz extract 1:gunzip filename.gz unzip 2:gzip-d filename.gz Compression: gzip FileName.tar.gz and. tgz decompression: Tar zxvf FileName.tar.gz compression: Tar zcvf FileName.tar.gz DirName —————————— —————. bz2 Decompression 1:bzip2-d filename.bz2 Decompression 2:bunzip2 filename.bz2 compression: bzip2-z FileName.tar.bz2 decompression: Tar jxvf FileName.tar.bz2 compression: Tar jcvf FileName.tar.bz2 DirName ———————————————. BZ Decompression 1:BZIP2 -d filename.bz Decompression 2:bunzip2 filename.bz compression: unknown. Tar.bz decompression: Tar jxvf FileName.tar.bz compression: Unknown ———————————————. Z Decompression: uncompress filename.z compression: Compress filename.tar.z decompression: Tar zxvf filename.tar.z compression: Tar zcvf filename.tar.z DirName —————— —————————. Zip Decompression: Unzip Filename.zip compression: Zip filename.zip DirName ———————————————. rar decompression: rar x filename.rar compression: rar A Filename.rar DirName ———————————————. lha decompression: Lha-e Filename.lha compression: Lha-a Filename.lha FileName ———————————————. rpm unpacking: Rpm2cpio filename.rpm| Cpio-Div ———————————————. deb unpacking: ar p filename.deb data.tar.gz| Tar zxf-———————————————. tar. tgz. tar.gz. Tar. Z. tar.bz. tar.bz2. zip. cpio. Arj. rar. Ace. Lha. Lzh. Lzx. Lzs., Arc. SDA. SFX. Lnx. Zoo. cab. Kar. cpt. P it. Sit. Sea extract: SEx x FileName.*compression: SEx a FileName.* FileName
Third, after installation operation
Input
/opt/lampp/lamp start
Attached. Common Command Parameters
Start starts the XAMPP. Stop stops XAMPP. Restart restart XAMPP. Startapache only launches Apache. Startssl initiates SSL support for Apache. The command will continue to activate SSL support, for example: After executing the command, if you shut down and restart the Xampp,ssl will still be active. Startmysql only starts the MySQL database. Startftp start the ProFTPD server. Via FTP, you can upload files to your Web server (username "Nobody", Password "lampp"). The command will continue to activate ProFTPD, for example: After executing the command, if you close and restart Xampp,ftp will still be active. Stopapache Stop Apache. Stopssl Stop the Apache SSL support. The command will continue to stop SSL support, for example: After executing the command, if you shut down and restart the Xampp,ssl will still be in the stopped state. Stopmysql Stop the MySQL database. STOPFTP Stop ProFTPD server. The command will continue to stop ProFTPD, for example: After executing the command, if you close and restart Xampp,ftp will still be in the stopped state. Security launches a small security check procedure.
Iv. some other needs 1. Add subdomains
1) first resolve the subdomain to this host
2) Edit the/opt/lampp/etc/httpd.conf or/opt/lampp/etc/extra/httpd-vhosts.conf (recommended) file and add the following code at the end
<*:80> ServerAdmin [email protected] ServerName your.example.com documentroot/dir/dir2/</VirtualHost>
3) Restart XAMPP or Apache.
2. External network access
1) Locate the/opt/lampp/etc/httpd.conf or/opt/lampp/etc/extra/httpd-xmapp.conf file
2) Find
<"^/(? I: (?: xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))" > Require Local errordocument 403/error/xampp_forbidden.html.var</locationmatch >
Modified to:
<"^/(? I: (?: xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))" > Require All granted errordocument 403/error/xampp_forbidden.html.var</ Locationmatch>
3) Restart Apache or XAMPP
Build Station Note 1-Configure server program, install XAMPP, two level domain name, extranet can access