Install Linux, Apache, MySQL, and PHP for Wikimedia in Lunix

Source: Internet
Author: User
Tags lunix

I have been tossing centos and Ubuntu recently. I personally prefer Ubuntu, and the interface is beautiful. Although it consumes a lot of energy, it is not VPs or the server is quite useful on the machine, I am very unfamiliar with Linux, especially trying out terminal control programs. in particular, you need to set permissions to download or open/copy folders. but now it is more and more perfect.

Back to the topic, let's give a brief introduction today.Install the lamp environment with one click in Ubuntu 12.04The lamp component is an essential component of the server site. The environment can be installed in a few simple steps.

Open Terminal

Sudo apt-Get install apache2 PhP5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpMyAdmin

One-click installation of required components.

During this period, you are required to enter the root user password of the MySQL database, and select the server type [Apache] And phpMyAdmin.

Restart Apache after installation. Command: sudo/etc/init. d/apache2 restart

You also need to link the installed phpMyAdmin and run the command: ln-S/usr/share/phpMyAdmin under/var/www /.

Lamp has been installed.

Install the lamp environment with one click under Ubuntu 12.04 in the following simple steps


The apache2 file is stored in the/usr/lib/apache2/modules directory.
PHP exists in the/usr/lib/PhP5 directory, but it is a script language supported by apache2. It runs and parses PHP files through the module loaded in apache2.
Install MySql in the/usr/share/MySQL directory.

Related Article

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.