My compilation of docs and tutorials to help me get a server setup with CentOS 6, Drush and various libs needed for Drupal 7. Once that is complete and working, a short write-up on getting a Drupal 7 site up and running in less than 2 minutes.
- Webmin install and setup: http://jarodms-drupal.blogspot.com/2012/07/webmin-on-ec2.html
- Config Firewall for Webmin: http://www.webmin.com/firewall.html
- LAMP Setup: http://library.linode.com/lamp-guides/centos-6
- Drush in less than a minute: http://danreb.com/content/how-install-drush-centos-linux-drupal-development
- Additional libraries for Drupal:
- yum install php-gd
- yum install php-dom
- yum install php-mbstring
Additional Steps:
- Optimize php.ini
- Depending on server, may need to open firewall for port 80
Install Drupal 7 instance in less than 2 minutes:
- Create MySQL Database
- Create MySQL User/pass
- Grant MySQL privileges for user
- Config virtual host for new Drupal site and restart Apache
<VirtualHost *:80>DocumentRoot "/var/www/html/drupal7"
ServerName fill-in
ServerAlias fill-in
ErrorLog /var/www/logs/drupal7-error.log
CustomLog /var/www/logs/drupal7-access.log combined
<Directory "/var/www/html/drupal7">
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
</VirtualHost>
Use Drush to download Drupal and install site:
- drush dl
- drush site-install standard --account-name=admin --account-pass=admin --db-url=mysql://SiteMySQLUser:SiteMySQLUserPassword@localhost/SiteMySQLDatabase