Making ubuntu server 12.10 drupal-ready

Sun, 12/23/2012 - 19:21 -- Kyle Skrinak
  1. sudo apt-get update
  2. sudo apt-get dist-upgrade
  3. sudo apt-get install tasksel
  4. sudo tasksel install lamp-server (reference)
    1. Enter your root password
  5. mysql -u root -p (Log in and ensure name/password combo work)
  6. sudo apt-get install build-essential php5-dev php5-gd php-pear
    1. (FYI: This loaded 82.5 MB on my server)
    2. I ran apt-get autoremove afterwards; YMMV
  7. sudo a2enmod rewrite
  8. sudo pecl install uploadprogress
  9. sudo vim /etc/php5/apache2/php.ini (Add extension=uploadprogress.so as instructed)
  10. sudo vim /etc/apache2/sites-available/default
    1. Change the "AllowOverride None" line to "AllowOverride All"
    2. (Ensure that default site settings are what you expect and are on valid paths)
  11. sudo service apache2 restart
    1. You may see the inconsequential warning about "Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName" If that bugs you, you can always add "ServerName localhost" to the bottom of /etc/apache2/apache2.conf
  12. sudo apt-get install drush (I love that I can do this)
  13. cd /var
  14. sudo drush dl drupal --drupal-project-rename=www
    1. Install location /var/www already exists. Do you want to overwrite it? (y/n): y FYI: This will overwrite the apache default www directory
  15. sudo chown -R www-data:www-data /var/www
    1. I'm finding sudo chown -R username:www-data /var/www works better
  16. cd www
  17. sudo drush site-install standard --db-url="mysql://root:s73jd76sj3wu1@localhost/drupaltest" --site-name=drupaltest
  18. Go to http://localhost/admin/reports/status and enjoy the report

Comments

Submitted by Kyle Skrinak on

I can not vouch for whether the steps on that page work, but in the past I avoided tasksel, though I much prefer tasksel now. Which step is failing you?