Kevin Whitman's Blog

Month: June 2011

Set up a sandbox to test PHP Apps: Part 2, Install Web Server, PHP, MySQL and PhpMyAdmin

We already installed Ubuntu. Set up root. Now we are going to start up the server again for part 2. Going to login as root.

You could enter commands in the virtual box screen, but copy and paste seems to not work. Plus scroll does not seem to work. So i like to SSH in to it with a SSH client.

Get the server IP:

First we need to get the ip of the sever. When we first login it shows the IP address.

Another way you can get the server ip address is by ifconfig

Connect via SSH:

Open up the terminal App on the Mac.  My server IP is 10.0.1.16.

[code lang=”bash”]
ssh SERVERIP -l root
[/code]

Continue reading

Set up a sandbox to test PHP Apps: Part 1, Set up the VM

In this short tutorial series I’m going to teach you how to set up a Linux Apache MySql PHP(LAMP). We will be using free and open source software for this tutorial.  The Linux operating system we will be using is Ubuntu 11.04, my favorite Linux distro. VirtualBox will be the virtual Machine we will be using, but most of this tutorial should work with other virtual machines. At the end of this tutorial you should have a working server which can run PHP scripts, also will have PhpMyAdmin for your database.

Tools you will need:

First lets download and grab all the tools we will need.

You can download VirtualBox for free at http://www.virtualbox.org/wiki/Downloads which works for both Mac and Windows, you can install this like a normal Mac or Windows app. Since i’m using a Mac right now, i’ll download the one for OS X hosts.

Next you will need the Ubuntu ISO. You can get that at http://www.ubuntu.com/download/server/download. I got the 32 bit version.

Next your going to want a way to SSH in to your server. On Mac you can use the Terminal. On Windows you can use Putty. You can download it at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html.

Your going to need a SFTP client to transfer files and understand how to use it. Check out my How to SFTP tutorial.

Last you need a text editor. You can use anyone really, it just needs to be pain text.

Set up the virtual Machine:

First you need to install Virtual if you don’t have it installed already. This is the same as installing just about any other app. Click the installer and follow the setup wizard.

After Virtual Box is installed, we have to then create a virtual Machine.  To start click on the new icon.

Continue reading

How to SFTP

This short tutorial will show you have to SFTP with Cyberduck and FileZilla.

You can download CyberDuck at http://cyberduck.ch for both Mac and Windows.
You can download FileZilla at http://filezilla-project.org/download.php?type=client

Looking at the social web

2003-2006

The year is 2003-2006, MySpace is where you could just find about everyone your age. Everyone I knew in School had a MySpace, I had a MySpace. Teachers, Law Enforcement and adults would bad mouth and speak out against the website making it seem worser then it really was by saying it was unsafe. Maybe it was unsafe back then due to some hacks, but other than that talking to a random dude at a bus stop is kinda unsafe also, it’s a risk you can take, you could meet a creepy serial killer or some nice guy because you never really know till you try to talk to someone and get to know them. I remember one of my teachers got this crazy woman who seemed Anti-Tech to come in and give a slide show. She showed how she would hack in to MySpace and show all this set private information. At the end, where people would ask questions, people asked how she hacked it and she said she wasn’t going to tell because she knew we kids would do it.

I kinda think looking back now, she wasn’t really hacking as you would think. I looked up information on it before and all the so called “hacks” don’t work anymore. The way they would work is you would take the persons MySpace user id, not the username, but the number like say 10290292298(random number i just typed) and use that id with different urls because it didn’t check privacy in some areas. Also teachers and other adults would say privacy settings didn’t matter. I never understood why, maybe because of the hacks that got fixed. I always did and i do today trust privacy settings when they are set right and implemented by the social networking site correctly.

So back then All of us young people liked it. Teachers hated MySpace. I once taught people in my class in English back in middle school how to use proxies. About a few days later, after different teachers noticed people were on MySpace when it was blocked, our principle went to the class rooms in the eighth grade one morning to talk to us about it. He told us if any of us got caught from now on we would lose our computer privileges for the rest of the year. He said he would also report our MySpace name to MySpace so they would delete our account. I’m not sure if MySpace would really delete an account just because a principle told them to, i really doubt it. I think he was saying it just to scare us. Not all of us was under 13. But i don’t think the principle or any teachers really found out who showed people how to use proxies. Continue reading

Copyright © 2010 - 2024 Kevin Whitman's Blog

Back To Top ↑