Configuring Pseudo-Static apache+php

Source: Internet
Author: User

1 Install http* php* on a virtual machine check for errors

2 shutting down the firewall

Service iptables stop set power on off Chkconfig iptables off

Setenfore 0 Set Vi/etc/sysconfig/selinux 7th line modify enforcing to Disabled

3 configuration file to enter HTTP

Vi/etc/httpd/conf/httpd.conf

In line 304

Change the word after allowoverride to all

Add two lines after this line

Rewriteengine on

Rewriterule index.html$ index.php

Restart HTTP

Service httpd Restart

4 Write a PHP test page in the site and directory

vi/var/www/html/index.php

<?php

Phpinfo ();

?>

5 Open the browser access IP and add/index.php after IP

You can just come out of the PHP test page.




This article is from the "13006982" blog, please be sure to keep this source http://13016982.blog.51cto.com/13006982/1936655

Configuring Pseudo-Static apache+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.