Step-by-step operation Ubuntu Configuration lamp

Source: Internet
Author: User
Tags fully qualified domain name

  1. Installing Apache
    sudo apt-get install apache2
  2. Browse
    http://localhost
  3. Installing PHP5
    sudo apt-get install php5
  4. Configure apache+php
    sudo apt-get install LIBAPACHE2-MOD-PHP5
  5. Restart Apache
    Sudo/etc/init.d/apache2 restart
    You may encounter errors at this time: Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0, workaround
    httpd.conf in/etc/apache2, servername 127.0.0.1:80 added httpd.conf save. Then restart Apache.
  6. Test
    sudo gedit/var/www/test.php
    Input content: <?php phpinfo ();? >
    Open Address: http://localhost/test.php
  7. Install MySQL
    sudo apt-get install Mysql-server
    Setup is complete, set the root password as prompted.
  8. Configure Apache, PHP support MySQL
    sudo apt-get install Libapache2-mod-auth-mysql
    sudo apt-get install Php5-mysql
  9. Restart Apache
    Sudo/etc/init.d/apache2 restart

Step-by-step operation Ubuntu Configuration lamp

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.