Notes about installing drupal 7 under Centos 6.3

  1. Install packages: httpd, php, mysql-server, mod_ssl, php-dom, php-gd, php-pdo, php-mysql, php-mbstring, php-pecl-apc
  2. Use chkconfig to enable mysqld, service to start it, and then run /usr/bin/mysql_secure_installation and set password and accept all defaults,
  3. Copy drupal tar file to server and untar into /var/www/html. Change directory name to drupal,
  4. Fix permissions and ownership:
    • chown -R root:root drupal
    • find drupal -exec chmod 644 {} \;
    • find drupal -type d -exec chmod 755 {} \;
  5. Optionally copy /usr/sbin/cronolog Tcl script into place and install package tcl,
  6. Create public files directory:
    • cd drupal/sites/default
    • mkdir files
    • chown apache files
  7. Generally follow the installation instructions on the drupal website,
  8. See files below for httpd configuration,
  9. If large files are going to be uploaded to the site, note that the default maximum upload size is 2 MB. You can change this in the /etc/php.ini file. The two configuration varaiages to look at are post_max_size and upload_max_filesize,
  10. If drupal isn't installed in the top-most directory (e.g., http://somesite/drupal), make sure to set/enable the appropriate RewriteBase in drupal's top-level .htaccess file,
  11. Consider turning on "Clean URLs".