I installed Centos 7 (minimal) with LAMP stack on a dedicated development server on my home LAN as a development platform to migrate my Drupal 6 website to Drupal 7. Drush was used to install a new standard Drupal 7.x-dev platform, but could not initially get past the Apache welcome page to finish the Drupal 7 install. After tweaking .htaccess, settings.php, and /etc/httpd/conf/httpd.conf I now cannot browse anything on the server without getting the "Forbidden" error. The Apache log error is:
[Wed Dec 21 20:33:15.366352 2016] [core:crit] [pid 2891] (13)Permission denied: [client 10.0.0.154:58621] AH00529: /var/www/html/drupal7/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/drupal7/' is executable
I assume this may be a permissions or ownership issue. Document root is /var/www/html/drupal7 with ownership and permissions for the directories and config files are: /var (root) 755; /www (root) 755; /html (apache) 755; /drupal7 (apache) 775; .htaccess (root) 644; index.php (apache) 755; install.php (apache) 644; and /etc/httpd/conf/httpd.conf (root) 644.
Have I got these permissions right? The $base_url is currently set to "http://localhost" but I'm not sure this is right either. -Any suggestions?
cd /var/www/html
then dosudo chown apache:apache -R drupal7
. In addition, you also need to disable SELinux (see the link in my previous comment)