Use XAMPP to configure PHP runtime environment under Ubuntu LAMPP

Source: Internet
Author: User
Tags phpmyadmin

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
  1. 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.) )

  2. 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.

  3. Command: sudo./xampp-linux-x64-1.8.3-4-installer.run

  4. 4

    The interface will appear, then click on Install on the line.

  5. 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. 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. 7

    Access http://localhost with a browser,

  8. 8

    sudo chmod a+w-r/opt/lampp/htdocs

    Change folder permissions.

  9. 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. 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. 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

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.