Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On linux distros, it's more rule than exception to install things via some sort of package. Via a manager or command line. This then configures a lot of stuff for you and it just works.

As such, there's stuff like LAMP of XAMPP.

However, I'm not content with this. I want to have the option of getting the most recent of each piece of software, and keeping it up to date.

There are a couple problems:

  1. What directories do I install the individual pieces of software to?
  2. How do I make them properly work together?
  3. With #2 in mind: in what order do I install them?
  4. Do I download the sources and compile them myself, or are there precompiled binaries I can download(not the same thing as installing LAMP)?
  5. If a new version of one of the components comes out and I want to update, how do I proceed? Compile again and overwrite install folders? What about a major update, like from MySQL 4.x to 5.x?

Number 4 especially applies to PHP, since you can give a lot of command line options to compile it very specifically.

These are the questions that continue to bug me. How do I proceed?

share|improve this question

migrated from stackoverflow.com Jan 26 '11 at 10:52

This question came from our site for professional and enthusiast programmers.

    
You can just compile stuff yourself, use configure to get the most optimized configuration, etc.. you can even package your binaries to deploy on other servers. Packages are just like that, by the way, you should never use the latest software releases in production environnement, as you could use untested releases and make your unstable. –  Boris Guéry Jan 26 '11 at 9:53
    
It's a dev-environment, just my home machine for testing. –  KdgDev Jan 29 '11 at 17:19
add comment

1 Answer

Although compiling and maintaining all the stack by yourself is not a bad project it looks to me like quite an effort, considering that distributions also try to keep up to date as much as possible.

Of course bgy is right about using the latest versions on prod enviroments, it's not a recommended practice, you always want to be at least 1 week behind, and that is already being on the bleeding edge.

For Ubuntu you can add either use the bleeding edge repositories (right now natty beta 2) or find one of the many PPA repositories that will have any package you may need up to their latest version, of course your mileage may vary and you can end up with a broken package, but it's always fast and easy to go back.

The only real reason for me to compile your own would be if you need things that are neither available not possible with the default packaging, for keeping up to date sticking to the distribution packaging mechanism is the best choice.

share|improve this answer
    
It's really just an experiment for me. I don't need special stuff, I really just want to know how to manually configure PHP, APACHE and MYSQL to flawlessly work together. I say "latest of each version" because I would add the needed configuration for the "working together" part myself, so I need each piece separately. My goal here is: I want to know what it takes. –  KdgDev Jan 29 '11 at 17:23
    
Oh I see! If you want to get the full experience get the sources and start compiling, it's quite an enrichening and challenging project, poke around here if you need any help :) –  lynxman Jan 29 '11 at 17:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.