Fedora 20 Configuring PHP default Path related issues

Source: Internet
Author: User
Tags 403 forbidden error
Fedora 20 Configuring PHP Default Path issues
This post was last edited by lanhaide on 2014-01-09 23:00:58

Hello everyone. I have installed the default php+apache+mysql on Fedora 20. I encountered the following issue when I changed the default document path for Apache: 1. SELinux security permissions; 2. Change related folder permissions issues. I set the relevant SELinux permissions according to the error log prompt, and using chmod, Chron changed the relevant permissions, now the prompt is 403 forbidden. May I ask what I should do next?

Specifically, I have done the steps:
1. Set SELinux permissions:
Setsebool-p httpd_read_user_content 1
Setsebool-p Httpd_enable_homedirs 1
2. Using chmod, Chron change the directory permissions (my directory is ~/www/, page scripts and page files are placed in the ~/www/html directory and have root privileges):
# 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, you still get 403 Forbidden error. May I ask what I should do next? The online approach has been tried, it is useless. I am a novice, please enlighten me, my brother is greatly appreciated.
------Solution--------------------
Are you sure your PHP environment is not a problem? $ 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.