Wanna check out some software... build a server in 30min. (after the software install)
Ok... we'll call this an ongoing document. But, basically, this is how you set up a 'server' on an old desktop so you can try out all the new software at the cost of using an old desktop you weren't using anyway. THESE INSTRUCTIONS ARE NOT INTENDED FOR A PRODUCTION (PUBLIC) BOX. Please post questions as comments.
Get the Linux Distribution
- First, go to ubuntu.com and download the newest version of Ubuntu.
- http://www.ubuntu.com/getubuntu/download
- DO NOT BE INTIMIDATED BY THIS PAGE.
- You want the newest server version. you want the 'standard computer' or x86 thingy.
- download from a 'place near you'. Although this is not compellingly important... it is just considered polite.
- You should have a file that looks like ubuntu-7.04-server-i386.iso on your desktop (or wherever you SAVED this file for download) It should be in the 700MB range.
- You need to get a CD or DVD and 'burn an image' onto your disk.
- Burn an ISO windows, Mac, Linux
Install the Server
Once the image is burnt, you just drop it into your old computer, and follow the pretty simple directions. When you come to instructions you don't understand, write them down and guess. You can figure it out later. The big advantage of a test box is that you don't have to answer to anyone else. If something doesn't work, you can just forget about it.
http://www.debianadmin.com/ubuntu-lamp-server-installation-with-screensh... this is a pretty good guide to doing a LAMP isntallation. LAMP stands for Linux, Apache, Mysql PHP, which is what you want if you want a drupal installation.
Do a quick fix
- go to Applications --> Accessories --> Terminal (trust me on this..Atext window will pop up that looks like this
- dave@myserver:~$ ### (from here on I'll just put the $ sign)
- $ sudo su ### (it will ask for you password, give it to it)
- You are now the 'root' user. In a 'real' server environment people frown on this... but this is your own damn box. You can break whatever you like. next
- aptitude install vim php5 apache2 mysql-server-5.0 (Just say Y to any foolish questions) and some more stuff once i think about it)
- go to firefox and type in localhost in the address line. if a file that says Index Of/ shows up... your server is running.
- We may need a few more config things here... more late.
Install Drupal
- Go to drupal.org
- Get the link for the newest release http://ftp.drupal.org/files/projects/drupal-5.2.tar.gz right now this is the most current. Highlight it and copy the link.
- In ubuntu, go to Applications --> Accessories --> Terminal (trust me on this... once you get used to it, you'll thank me for it. I didn't believe the person who told me, and now I'm still thankful.
- a text window will pop up that looks like this
- dave@myserver:~$ ### (from here on I'll just put the $ sign)
- $ sudo su ### (it will ask for you password, give it to it)
- You are now the 'root' user. In a 'real' server environment people frown on this... but this is your own damn box. You can break whatever you like. next
- $ cd /var/www ### This will cd (change directory) to the directory where your 'websites' live.
- $ wget http://ftp.drupal.org/files/projects/drupal-5.2.tar.gz ### This will download the new drupal directly to your new server
- $ ls -la ### This will list all of the contents of this directory.
- $ tar -zxvf drup (once you get this far, press the TAB key on your keyboard, it will fill in the rest of the text for you)
- This will unpack your new drupal installation
- $ ls -la
- Take a look what is there... you should see something like drupal-5.2
- $ mv drupal-5.2 drupal
- $ ls -la
- this is how you rename things in linux. This will just make it easier to find once you go and try to make a website
- $ mysqladmin -uroot create drupaldatabase
- (note on above, if you have added a mysql password during the installation process you will need to do a mysqladmin -uroot -p create drupaldatabase (and then give it the password)
Check it Out
- go to the browser on your server
- Applications --> Internet --> Firefox
- in the 'address line' (where urls go) type
- localhost/drupal/install.php
- And see what happens.
- Printer-friendly version
- Log in to post comments