Installing and configuring the PHP interpreter

Source: Internet
Author: User
Keywords Install PHP interpreter
Tags analysis code configuration enterprise environment file hard hard drive

"Mission Analysis and Requirements"
 This task is one of the key links to implement the Lamp Web architecture, which we use to resolve script support for dynamic Web sites, using PHP
 Requirements to master the installation and configuration of the PHP parser method
 A preliminary grasp of PHP language and PHP scripting code reading ability

"Hardware and Software Environment"
 using virtual machines to integrate with real host environment
 Install red Hat Enterprise Linux Server 5.0 in VMware Virtual machine systems
 ISO file with Linux installation CD on hard drive

"Step Decomposition"

The installation and configuration of PHP parser

1. Install PHP Parser
Software that needs to be installed

2, using VI Editor, edit modify/etc/httpd/conf.d/php.conf configuration file

In the DirectoryIndex configuration item, set the home page file for index.php,index.htm and index.html
Edit modify/etc/httpd/conf/httpd.conf configuration file, comment out DirectoryIndex configuration item.

3, in the/var/www/html directory, create a test page index.php, the content of the page is as follows:

<?php
Phpinfo ();
?>

4, open the browser, the address bar for http://www.ithov.com, to see whether the success. If successful, as shown in the following figure,

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.