Under Linux to build PHP operating environment, you can install Apache, MySQL, PHP, phpMyAdmin, can also install XAMPP (Apache, MySQL, PHP, phpmyadmin) integration package, today to explain the latter method.
Tools/Materials
- XAMPP Installation Kit, Ubuntu system
Method/Step
Download Install package: Baidu "XAMPP official website", the first one is. (in Linux that download, the site will automatically detect your computer version, determine whether to download 64-bit or 32-bit.) )
Find the storage location of your package, put it in the home folder (home/), open Terminal (ctrl+alt+t) with the LS command, you can see the package name.
Command: sudo./xampp-linux-x64-1.8.3-4-installer.run
- 4
The interface will appear, then click on Install on the line.
- 5
How to use: ctrl+alt+t, open terminal, enter the command to open XAMPP:
Sudo/opt/lampp/lampp start
Close XAMPP:
Sudo/opt/lampp/lampp stop
- 6
Starting XAMPP for Linux 1.8.3-4...xampp:starting Apache...ok. Xampp:starting Mysql...ok. Xampp:starting Proftpd...ok.
See this to prove the installation, has been started.
- 7
Access http://localhost with a browser,
- 8
sudo chmod a+w-r/opt/lampp/htdocs
Change folder permissions.
- 9
Create a soft link (shortcut). Xampp stored in the/OPT/LAMPP, we write the site, the Web pages are to be stored in htdocs, like Wampp, the Web files are placed in the WWW file. We built a soft link in home. This gives you direct access to the htdocs.
sudo ln-sf/opt/lampp/htdocs/~/public/
- 10
If the browser is accessing the file, Access forbidden appears!
Most of the problem is file permissions, such as a hufy folder in the Htdocs to access the time, the general will appear such a hint. Workaround: Enter the soft link that we created.
CD Public
sudo chmod-r 777 Hufy
Such as: Changed the permissions of the folder color a different, drwx------(permissions not changed) drwxrwxrwx (permissions modified)
- 11
To uninstall XAMPP, simply enter the following command:
Rm-rf/opt/lampp
Uninstall complete. :)
Set the XAMPP to run each time it is powered on.
Vi/etc/rc.d/rc.local
Add a line to the last face:
/opt/lampp/lampp start
END
Use XAMPP to configure PHP runtime environment under Ubuntu LAMPP