Author Topic: Choosing the right flavour for web development  (Read 79 times)

0 Members and 1 Guest are viewing this topic.

Offline davidkm

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • I've just joined!
    • View Profile
Choosing the right flavour for web development
« on: July 29, 2010, 10:49:53 am »
I have a Dell Inspiron 6000 laptop running XP that I'm 'recycling' to use for web development to while away the many hours I spend on trains! I want to be able to run a LAMP setup to locally serve development web sites and ocassionally access an ethernet network and wireless. I'm familiar with running MAMP servers but I'm new to Linux. Which flavour would be best for this setup?

Offline kirrus

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 2
  • Sysadmin / Linux Tech Support
    • View Profile
    • Kirrus' Blog
Re: Choosing the right flavour for web development
« Reply #1 on: July 29, 2010, 11:26:09 am »
Hello David,

Pretty much any linux distribution under the sun will come with support for running a LAMP setup. Personally, for ease of use, I'd reccomend Ubuntu 9.10. Once you have it installed, just issue the following command:
"sudo aptitude install apache2 libapache2-mod-php5 mysql-server mysql-client "

That will pull in a load of 'dependencies', things those packages require to work, but that should install apache2, MySQL, and PHP for you :)

Offline davidkm

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • I've just joined!
    • View Profile
Re: Choosing the right flavour for web development
« Reply #2 on: July 29, 2010, 11:34:33 am »
Great, sound easy. I'll give it a try this evening.

Thanks for your prompt help and advice.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 662
  • Karma: 18
  • Gender: Male
    • View Profile
    • PCNetSpec
Re: Choosing the right flavour for web development
« Reply #3 on: July 29, 2010, 12:29:39 pm »
Just for clarity... Don't include the quotation marks in the above command.
So open a terminal and enter:
Code: [Select]
sudo aptitude install apache2 libapache2-mod-php5 mysql-server mysql-client
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mad Penguin

  • Here today, gone .. no wait, still here!
  • Administrator
  • Hero Member
  • *****
  • Posts: 617
  • Karma: 10003
  • Gender: Male
    • View Profile
    • Linux in the UK
Re: Choosing the right flavour for web development
« Reply #4 on: July 29, 2010, 01:09:12 pm »
Just in case you get as far as hosting, don't use this combination under a heavy load. Apache and ModPHP *will* overload and *will* crash from time to time .. instead look into Lighttpd with FastCGI - this is pretty solid, much faster and much more fault tolerant. (albeit maybe a little more interesting when it comes to configuration, but not much ..!)

(lightty is used by YouTube, MySpace, PirateBay, Phbb8, eBuyer, Meebo, Sourceforge etc etc.. )
There are 10 types of people in the world: those who understand binary, and those who don't.
The box said 'Requires Windows 95 or better'. So I installed LINUX
(D)inner not ready: (A)bort (R)etry (P)izza?

Offline kirrus

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 2
  • Sysadmin / Linux Tech Support
    • View Profile
    • Kirrus' Blog
Re: Choosing the right flavour for web development
« Reply #5 on: July 29, 2010, 02:19:52 pm »
Apache is brilliant at serving static files, but not so good at dynamic content. Saying that, the vast, vast majority of our servers here run Apache / ModPHP without a problem (and we have hundreds of servers), most of them running many websites (we host thousands of websites). :)

For development work, especially when you're starting, apache is easy to get into, and the config files tend to make sense. It's very, very well documented. It's still the most popular web-server on the internet, thrashing IIS (Microsoft's web-server) :)

Offline Mad Penguin

  • Here today, gone .. no wait, still here!
  • Administrator
  • Hero Member
  • *****
  • Posts: 617
  • Karma: 10003
  • Gender: Male
    • View Profile
    • Linux in the UK
Re: Choosing the right flavour for web development
« Reply #6 on: July 29, 2010, 02:27:43 pm »
I would agree with everything you've said. Note however that I ran Apache for years (and years ...) and as soon as I loaded mod_apache it started to crash every few weeks for no apparent reason, and I was never able to solve the issue.

Since I've moved to lighttpd, I've not had it crash once and Apache has resumed 100% reliability on it's remaining tasks .. :)

(and if you look at the benchmarks, lighttpd / FCGI, it "kills" Apache with mod_php .. ;)  )
There are 10 types of people in the world: those who understand binary, and those who don't.
The box said 'Requires Windows 95 or better'. So I installed LINUX
(D)inner not ready: (A)bort (R)etry (P)izza?

Offline davidkm

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • I've just joined!
    • View Profile
Re: Choosing the right flavour for web development
« Reply #7 on: August 02, 2010, 02:58:02 pm »
Just a quick thanks to everyone for your help and advice, which helped me on my way to successfully installing Apache, PHP, MySQL and phpMyAdmin over the weekend.

It was very simple and, to my surprise, I have to say was a lot easier than getting Mac OS X Snow Leopard Server running!