HOWTO: set up a cloud server with WordPress at Rackspace

You’re probably here because you are finally at the point where you need root access to your web server so that you can install applications like MediaWiki or WordPress or Joomla or any other CMS. If you have a website that you want to move away from a hosted environment, this is how to set yourself up so that you control every aspect of your site.

    1. Create an account at Rackspace.com. Go to Cloud Servers and create a new server. If you need help with this, though it’s very self-explanatory and easy on their site, you can always chat with their 24-7 online chat support. Note the administrative password and the IP address of the server you have created.
    2. Open a bash terminal and SSH into your shiny new server. “ssh root@YOURSERVERSIPADDRESS”. Enter the password.
    3. Create a user for yourself. “useradd -m -s /bin/bash yourname” and create a password for yourself  “passwd yourname”.
    4. Enter “su
      yourname”. Now, you are logged in under your name and not as root.
    5. Enter the following:
      sudo apt-get update
      sudo apt-get upgrade
      sudo apt-get install tasksel
      sudo tasksel install lamp-server
      sudo apt-get install php-mail python-software-properties unzip
      sudo a2enmod rewrite
      sudo apt-get autoclean
      sudo apt-get autoremove
      mkdir /home/yourname/yourwebsitename
      mkdir /home/yourname/yourwebsitename/blog
      cd /home/yourname/yourwebsitename/blogsudo
      wget http://wordpress.org/latest.tar.gz
      sudo tar -zxvf latest.tar.gz .
    6. That has cleaned up your server and installed a web server as well as WordPress. Enter passwords for your MySQL database and record them.
    7. “sudo service apache2 restart” #You will get an error that local server has not been set up.
      echo “ServerName localhost” | sudo tee /etc/apache2/conf.d/$servername
      sudo service apache2 restart #Should be no error now
    8. r

    9. cd /etc/apache2/sites-available/
      sudo nano yourwebsitename
    10. Copy this with CTRL+SHIFT+V into the terminal:
    11. ServerAdmin webmaster@localhost
      ServerName www.yourwebsitename.com
      ServerAlias yourwebsitename.com *.yourwebsitename.com
      DocumentRoot /home/yourname/yourwebsitename/
      php_value upload_max_filesize 1M

      Options +FollowSymLinks
      AllowOverride All
      Order allow,deny
      allow from all

      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all

      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all

      ErrorLog ${APACHE_LOG_DIR}/error.log

      # Possible values include: debug, info, notice, warn, error, crit,
      # alert, emerg.
      LogLevel warn

      CustomLog ${APACHE_LOG_DIR}/access.log combined

      Alias /doc/ “/usr/share/doc/”

      Options Indexes
      MultiViews FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
      Allow from 127.0.0.0/255.0.0.0 ::1/128

       

       

    12. CTRL+X and save the file as yourwebsitename.com.
    13. cd /etc/apache2/sites-enabled/

sudo ln -s /etc/apache2/sites-available/yourwebsitename.com /etc/apache2/sites-enabled/yourwebsitename.com
sudo service apache2 restart

    1. Where have you created your domain name account? If it’s with GoDaddy, login to your GoDaddy account and click on Domain Manager. Click on the website name and enter the dashboard (or follow whatever practice your domain registrar uses to get to where you can edit the zone file). Click on “Edit Zone File”.
    2. Replace the IP address in the zone file with the IP address of your cloud server. Save the zone file.
    3. “nano /home/yourname/yourwebsitename/index.php” and copy this into the file.

/**
*
Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*//**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require(‘./blog/wp-blog-header.php’);
?>;

  • In a few minutes, you should be able to enter your URL into any browser, and see the WordPress installation page. Install using the database name and password you’ve created in PHPMyAdmin or in command line for MySQL.
  • I recommend Elegant Themes to get a beautiful and professional look for your site instantly.

 

The Best Way To Deal With Piracy

I have personally uploaded my technical interviews DVD and booklet to help women prepare for technical interviews here, at Demonoid. I’d rather have people listen than not, and I realized that when it comes to piracy, there are two possible outcomes: either my video is pirated because someone likes it, or no one pirates it because no one knows about it. In the first case, I’d rather have my letter to torrenters included, as well as a good quality MPEG rip and the full PDF of the 40 page accompanying booklet. In the latter case, I’m not making any money off the DVD sales anyway.

So, I decided to release it myself. This way, I can directly speak to torrenters and ask that if they like the DVD, to tell me why they didn’t buy it. I guaranteed them that I would never ever personally go after them for copyright infringement, and in fact, to please spread it far and wide. I offered
the steepest discount codes I could in the torrent so that if people DO want to buy it but price is a bar, I get that information too. Here’s the letter:

_______________________________________________________________________

TECHINTERVIEWHELP.COM

Hi!

My name is Tarah Wheeler Van Vlack, and if you’re reading this now, it’s because I haven’t created the right kind of value to get you to buy my DVD and booklet online instead of downloading it from Isohunt or Pirate Bay or Demonoid or wherever.

You can find my DVD/booklet product at techinterviewhelp.com. I made this video to help women get jobs in technical fields; women are TERRIBLE at negotiating with and interviewing for men. I want to show the ladies how to communicate well with their future bosses, and I think that as a senior coder and experienced development manager that I have a lot to offer them.

nI had a lot of fun and a lot of pain making this video. It’s been several months since the day I shot this video, since it takes quite a while to write a good booklet and have editing done. I spent over $1600 of my own money just on the video shoot; I paid the folks you see in the credits to help me make a great product. We worked on that day for 16 hours straight to get me made up (high definition powder itches fiercely, people), get the video shot with retakes and scene changes, and lighting changes. I brought in some of my good friends and a few people I hadn’t met before to help me. Then, I spent several months getting the booklet written, the video edited with music, and marketing campaigns developed. I do my own web development; techinterviewhelp.com is all me including backend work and analytics on the site.

Between you and me, there’s a solid reason I know where to post this DVD and booklet packet online. I know where the torrents live, because I’ve
been there a time or two myself 😉

I like to think that I contribute to authors and content creators as directly as possible. I have a moral code that doesn’t let me go jack Wil Wheaton’s books from Demonoid, because he directly publishes them and gets paid directly. I donate directly to Hijinks Ensue; that’s a badass web comic and Joel Watson makes me laugh every day. I get a little fuzzier on whether I think that giant studios who have already paid off the talent who made their movies should continue to get paid years later through residual royalties, even though all the people who worked hard on their product are long since gone. I really get cranky when operas that were written by Mozart and recorded fifty years ago by the London Symphony Orchestra still cost $200 because someone bought the back catalog.

I am personally releasing this DVD and booklet to the torrent sites. I have a whole new perspective on my work being used and
enjoyed without any compensation coming my way, but I also know that it’s better to be heard than ignored. I think that the people who feel the way I do about content creators will pay for this DVD and booklet, knowing that I’ve done the best I can to make a great product to help women get technical jobs. I think that there are people out there who would never pay anyway for my work, and though I disagree with you, I still want you to hear what I have to say.

Finally, as your reward for reading this, I want you to know that I will never, ever personally pursue anyone who torrents this (though I’ll ask you to keep these files intact, including this message). In fact, I am going to occasionally offer coupon codes for you. Right now, you can go use the code “LIVEFREEORDIE” on my site to get a 60% discount on my DVD set. I’ll release 20 or so of these codes at a time; I can’t afford to cut more than that off the price, or it doesn’t pay me to produce and ship the materials.

I want to know why you didn’t buy this DVD and booklet; please go to my site and give me some comments. You can consider that your payment if you cannot help me out any other way. Or, tweet or Facebook me. That helps me…not as much as cash, but you would be giving me a hand.

https://twitter.com/#!/techinthelp Hashtag: #TechIntHelp
https://www.facebook.com/technicalwomen

I look forward to hearing from you, and I wish you the best of luck in your interviews!

Tarah Wheeler Van Vlack
http://tarahwheeler.com
http://thetarah.com

TECHINTERVIEWHELP.COM

__________________________________________________________-

It’s more important for women to hear what I have to say than it is for me to go after people who can turn into my fans when
I publish future books and study materials.