How to make your own web server!

linux lamp serverThere are a few ways you can make a basic lamp “Linux Apache MySQL PHP” server. First you have deiced if you want use an old machine or dual boot with current one. If you want just try this for fun I would choose to run a virtual machine on your computer. If you are new to Linux I would recommend using Ubuntu. I feel its the easiest to learn and has the most support/information on the web. Once you get your machine setup and install Ubuntu. Last time I tried this I used 12.04

So you got Ubuntu 12.04 up and running now to make it a LAMP. Open the terminal and past this code to get it up to date:

sudo apt-get update

then

sudo apt-get upgarde

Once you do that you will be able to install LAMP server server with this command:

sudo apt-get install lamp-server^

Once you do that you should be able to go to http://localhost in a browser and then see the Glorious It works!

Thats is all you need to if you want to just play with html and css. If you want try WordPress, you will want to install phpmyadmin with this command:

sudo  apt-get  install  phpmyadmin

Once you do this you will need to add a this line:

Include /etc/phpmyadmin/apache.conf

to this file:
/etc/apache2/apache2.conf
Once you do that restart Apache:
sudo service apache2 restart

You will then be able to access phpmyaddmin through http://localhost/phpmyadmin

So setup the database, Then in your terminal go /var/www/ this is your root directory. You cando this by typing in this command: cd /var/www

Once your there can download a copy of WordPress with this command: sudo wget http://wordpress.org/latest.zip

Then that is finished downloading unzip it with this command: sudo unzip latest.zip

You will then be able to go to http://localhost/wordpress and then it just fill in the data that is reacquired from your database and you will be use WordPress on your own machine.
If you have any questions please let me know.





Advertisements

Ubuntu, my favorite linux disto

ubuntuI would have to say Ubuntu is my favorite Linux distro, because its very easy to use. Also if you get stuck on something it is very easy to Google it, and find a solution. I have had few issues, finding the correct wifi driver and finding a graphics driver. I have only ran it on older machines though. Id assume most in most newer machines I wouldn’t have these issues . That being said I was using a 12.04 Ubuntu lts on an 8 year old laptop for at least 3 months as my main work computer. I did have solid state hard-drive in it which really helped. The only reason I had stopped using it is because I got a newer computer with Windows 8. Which I am very annoyed with going from metro to desktop, and finding any of the settings. One of my main beefs is that, when I do duel screens it moves my desktop icons around. One day my icons might be all on my laptop screen and the next day some might be on the bigger main screen. I have never had any issues like this running Ubuntu. One last complete about Windows 8 is that its way to easy to download a virus. eehm CONDUIT!!!! 

I hear they make anti-virus ware for Linux, which I have never used. I just make sure to stay up-to date on the software. I also like that Ubuntu is so light on hard drive space my ssd drive is only 64 gigs. This was plenty of room for Ubuntu. Working with WordPress allot, I also find it handy being able to easily install it on my computer too. I hear it possible to do in windows. Maybe it seems way easier to copy and paste a few command lines into the terminal an away you go on your Lamp server. Its also fun to make your home server. My huge limitation is that I had dsl which makes things difficult.