How to install PHP 4.4 on Ubuntu?

How do I install Nginx, PHP, and MySQL from the source code?

  • The standard process to install all of these from apt-get or yum or some other commands in ubuntu,fedora environment. If you have long term vision for your web portal, and then on production servers will you pick the latest code, compile it and then install it , Or Do you use standard install picked from the ubuntu repository ?

  • Answer:

    If you have specific requirements, like you need a particular module or patch for any of the servers that needs to be installed from source, or you need some feature that's not in the binary package for your platform, then you'll know you need it, and you'll have to balance the need for it against the fact that compiling from source is extra work and is more likely to mean that you forget or otherwise refrain from upgrading the software in future. (Which it is, not least because it's less likely to be automated or automatable.) If you don't need anything out of the ordinary, and you can get away with sticking to a pre-built package from an upstream package repository, then I would tend to do that. It's just less hassle and makes it easier to upgrade and apply security updates later on.

Igor Clark at Quora Visit the source

Was this solution helpful to you?

Other answers

Here are two reasons why you are probably better off not compiling the lastest source code from scratch yourself: Because you get more eyeballs on the source code code you use. This improves securitys. Having the latest is not always the greatest. If you wait some time before upgrading you are less likely to run into new bugs. These can be feature bugs, security bugs or whatnot. Because it's too much work and not enough bang for the buck (see, below). Especially if you are a small business where working on new features probably should be a higher priority task. That said, there are cases when you'd like to compile stuff yourself. Here are some cases that I can come up with off the top of my head: You have extreme security requirements. I'm thinking of somethings like banks and other high target businesses. You need to need to add a compile-time flag to enable some feature. You need to include a compile-time module into an application/library. When you quickly need to recompile an application to work around a critical bug. For open-source applications and library I generally don't recommend applying a lot of patches yourself. You risk branching off too much, and you risk building stuff that's not intended for the application. You could even break in unintended ways if you don't know what you are doing. Instead, I suggest getting patches merged upstream. If you really need to recompile, I suggest you download a source package for your distribution (if this is Linux we are talking about) and make modifications to it. But, like I said, most of the time it's just too much work according to me.

Jens Rantil

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.