Fedora20: php default path configuration problems

Source: Internet
Author: User
This post was last edited by lanhaide in 2014-01-0923: 00: 58. I installed the default php + apach fedora 20 on Fedora & nbsp; 20 to configure the default php path.
This post was edited by lanhaide at 23:00:58 on. I installed the default php + apache + mysql on fedora 20. I encountered the following problems when changing the default document path of apache: 1. SELinux security permissions; 2. change related folder permissions. I set the relevant SELinux permissions according to the error log prompt and use chmod. after chron changes the related permissions, the prompt is 403 forbidden .. What should I do next?

Specifically, I have completed the following steps:
1. set SELinux permissions:
Setsebool-P httpd_read_user_content 1
Setsebool-P httpd_enable_homedirs 1
2. use chmod and chron to change the directory permissions (my directory is ~ /Www/, place page scripts and page files in ~ The root permission has been obtained in the/www/html directory ):
# Chmod 755 ~ /Www
# Chmod 755 ~ /Www/html
# Chron-R-t httpd_sys_content_t ~ /Www
# Chron-R-t httpd_sys_content-t ~ /Www/html
# Cd ~ /Www/html
# Touch index.html
3. modify the httpd. conf file:
DocumentRoot ".../www/html"

Options Indexes FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all



Options Indexes FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all



Options Indexes FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all


After saving and restarting the apache service, the error 403 forbidden is still returned. What should I do next? All methods on the Internet have been tried and are useless. I am a newbie. please enlighten me. thank you very much.
------ Solution --------------------
Are you sure you have no problem with the php environment? $ Php-v

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.