Modify the default site path in RadHatlinux

Source: Internet
Author: User
In RadHatlinux, modify the default path environment of the site: Redhatlinux5.4; apache2.4.4; php5.5 first sets up the environment. if you do not set up the environment, your environment path is the default recommended path: /usr/local /.. for beginners, this process is also... in RadHat linux, modify the default path environment of the site: Redhat linux 5.4; apache 2.4.4; php 5.5 first sets up the environment. if you do not set up the environment, your environment path is the default recommended path: /usr/local /.. this process is also quite tangled with beginners. Let's talk about my problems. Problem Description: After configuring apache and php, I will test that http: // localhost/can be accessed normally. Check that the current access path of the apache configuration file apache/conf/httpd. conf is the default configuration, that is, DocumentRoot "/usr/local/apache/htdocs" Now change the default site directory to/www (which is in the same directory as/usr) and make the following changes to httpd. conf: DocumentRoot "/www" Create test. php under/www. [Php] Restart apache. Enter http: // localhost/test. php in the browser and press enter. The results were unexpected and there was no text. after research, we found that the www file path access permission was incorrect. The solution is simple. You only need to modify the www access permission. Enter chmod 750/www in the vi editor and enter the access address again. OK.
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.