If you use Rails check out this useful Rails Security Checklist by Eliot Sykes.
Related: Ruby on Rails resources – Checklist for Setting Up a New Domain on VPS – Checklist for Moving WordPress site to a New Host
If you use Rails check out this useful Rails Security Checklist by Eliot Sykes.
Related: Ruby on Rails resources – Checklist for Setting Up a New Domain on VPS – Checklist for Moving WordPress site to a New Host
I updated from Ubuntu 12.04 to Ubuntu 14.04 on a virtual private server.
When you do that update, Apache is updated from 2.2 to 2.4. Certain changes mean that until you update the site-available configuration files no web sites will work.
The quick checklist of what you have to do for each configuration
The upgrade to Ubuntu 14.04 LTS was interrupted (I quit a window using the wrong command – oops). Luckily it wasn’t a big deal. I was able to delete the lock file.
[bash]sudo rm /var/lib/dpkg/lock[/bash]
Then trying to update again
[bash]sudo apt-get dist-upgrade[/bash]
gave a message telling me what command to use to have the upgrade continue.
[bash]sudo dpkg –configure -a[/bash]
which seemed to work fine.
Related: Bash Profile Adjustments, Scrolling History – Checklist: Setting Up a New Domain on VPS – ModSecurity: Adjustments for WordPress
Two great hosts for Ruby on Rails are Slicehost and Linode. With these hosts you fully manager your virtual private server, installing the operating system, modifying apache (on Ning…), etc.. I use Ubuntu as the operating system and Apache as the web server.
If you are moving a domain from elsewhere it can be wise to reduce the TTL time to say 5 minutes a few days before you make the switch. This is make the change propagate across the internet more quickly.
[bash]sudo nano /etc/apache2/sites-available/example.com[/bash]
The file would look something like this: with your ip in place of 8.8.8.8
ServerAdmin is the address Apache will use to send error messages to. Using gmail and the + option lets you use one gmail account and just use rules to filter all your sites.
[bash]sudo a2ensite example.com[/bash]
You should see the file you created /etc/apache2/sites-available/example.com now also at /etc/apache2/sites-enabled/example.com
You can test the site out, before updating the DNS, by changing your local hosts file to point to your server IP address for the new domain you created.
Resources: Install the Apache 2 Web Server on Ubuntu 10.04 LTS (Lucid)
A checklist for moving an existing WordPress site to a new VPS web host, when you have full admin rights over the server.
a2enmod rewrite
/etc/init.d/apache2 restart
Related: create a new database and run .sql file – Display text based on if it is the WordPress blog home page
If WordPress is up to date you could also just copy over everything for steps 1 and 2. I am using this for several sites I have had for years, I figure starting with a clean install of WordPress is a good idea, but it is not necessary.
for Rails 2.*
Not for Rails 3
[ruby]./script/generate resource article[/ruby]
[ruby]./script/generate migration add_join_table_for_articles_and_authors[/ruby]
Update to the routes file should be taken care of by generate resource, but might want to check).