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