Installation and configuration of Ubuntu 14.04--php

Source: Internet
Author: User
Tags install php

  1. Update Source list

    Open "Terminal Window", enter "sudo apt-get update"-and "enter the root user's password"--return, you can. If you do not run the command, the direct installation of PHP, "there are several packages cannot be downloaded, you can run Apt-get update------" error, causing the installation cannot be installed.

  2. Install PHP

    Open "Terminal Window", enter "sudo apt-get install php5"-and enter "Y"-----the installation is complete.

  3. Let Apache support PHP

    Open "Terminal window" and enter "sudo apt-get install LIBAPACHE2-MOD-PHP5"------the installation is complete.

  4. Installing the PHP5-GD module

    Open "Terminal window" and enter "sudo apt-get install PHP5-GD"------the installation is complete.

  5. Use Gedit to create a info.php file under "/var/www"

    Open "Terminal Window", enter "sudo gedit/var/www/info.php"--Enter "<?php phpinfo ()?>" in the editor and save, the file is created successfully.

  6. Test whether Apache can parse PHP Web pages

    Enter "127.0.0.1\info.php" in Firefox and the PHP version information page appears, indicating that the PHP installation configuration was successful.

Installation and configuration of Ubuntu 14.04--php

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.