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. View the apache configuration file apache/conf/httpd. the current access path of conf is the default configuration, that is: documentRoot "/usr/local/apache/htdocs" <Directory "/usr/local/apache/htdocs"> change the default site Directory to/www (it is in the same Directory as/usr ). directory) for httpd. modify the conf file as follows: DocumentRoot "/www" <Directory "/www"> Create test under/www. php. [Php] <? Php echo "DocumentRoot = www"; [php] phpinfo (); [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.