One of Apache Study Notes: open my homepage

Source: Internet
Author: User
One of Apache Study Notes: Open the personal homepage-Linux Enterprise Application-Linux server application information. For more information, see the following. [Root @ mail ~] # Fuqin liquor cooking

The experiment environment is RHLE5 and RHEL4 can be easily implemented, mainly because many books on this knowledge point are incorrect in actual learning, and the linux Tutorial we learned is also wrong, the steps are as follows:

1) Disable SElinux

Vi/etc/sysconfig/selinux SeLINUX = disabled.

In RHLE4: vi/etc/selinux/config SELinux = disabled.

2) by default, Apache disables the personal homepage function. To enable the personal homepage function, you need to set the following:



# UserDir disable // open the personal homepage

UserDir public_html // specify the document root directory name on the personal homepage as public_html



3) grant the directory permission for the spear Experiment

# Mkdir-p/home/manager/public_html // create the index.html file in this directory

# Chmod-R 777/home/manager // lab permission. Reduce the permission in a real work or production environment.

Test: Access http: // 192.168.1.102 /~ Manager/is equivalent to accessing the file/home/manager/public_html/index.html in site 192.168.1.102, that is, the personal homepage of manager.

More exciting, stay tuned to http://hi.baidu.com/yuhongchun027

[ This post was last edited by yuhongchun]

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.