Web Hosting Talk







View Full Version : Should I install apache/php/mysql by YUM?


kamanwu
12-18-2009, 11:27 AM
Should I install apache/php/mysql by YUM? or I need compile them from source...

I know the first method is easy....but I want to know if the 2nd is better than the 1st? I mean the sever performance.

Thanks.

M Bacon
12-18-2009, 12:04 PM
The second one is much better. You can pick and choose what version number you want to install.

kamanwu
12-18-2009, 12:06 PM
So...if installed the exactly same version number as YUM installed for me....the performance is same or NOT?

Thanks.


The second one is much better. You can pick and choose what version number you want to install.

keserhosting
12-18-2009, 12:08 PM
yum install httpd php mysql-server should be sufficient I think.

M Bacon
12-18-2009, 12:12 PM
Yum would be sufficiant for the Yum configuration but if you want to make up your own configuraton you need to install it from the source.

Cape Dave
12-18-2009, 01:16 PM
The question asked is, will it effect server performance?

e-Sensibility
12-18-2009, 01:24 PM
Building from source can increase the performance of your programs as generally the binary that is built will be better optimized for your specific environment. That said, the increase in performance (which will probably be marginal at best) comes at the cost of increased management overhead -- if you build from source (on RHEL-based linux distros, at least) you'll have to keep up to date with new versions manually, which is much harder to keep track of than if you use a package manager like yum.

If you want to build from source you should really be on a platform like gentoo or FreeBSD rather than CentOS/RHEL. On CentOS I would recommend using yum.

Netonweb
12-18-2009, 02:54 PM
Like e-Sensibility said use a platform like gentoo or freebsd.....
if you mean building your own source

NetOnWeb

laswatech
12-19-2009, 06:02 AM
You install from source only when you need a much higher configuration than those provided through yum repositories. A newer version is released to add some extra features or to thighten security. So the answer to your question will be yes. It does affect performance.

kamanwu
12-19-2009, 09:02 AM
Thanks everyone....I have decided to install from source.

bvidinli
12-20-2009, 07:34 AM
yum is for redhat,fedora,
I suggest Ubuntu as a Linux distro, with apt-get you can do many things in minutes..

kamanwu
12-21-2009, 12:23 PM
Hi everyone........I have another question...
I have compiled from source and installed the software...
But for some reason, I do not satisfied with the data center...my VPS provider help me to move my VPS to another data center...SO....I believe the physical sever is changed....they kept all data for me...should I redo all my jobs(complied and install all software)? OR it's OK?

barry[CoffeeSprout]
12-21-2009, 12:27 PM
Keep in mind that the version inside YUM are generally more tested and come with fixes if required (RedHat backports security fixes and sometimes general fixes) with source you'll have to be more on the ball and you can have the occasional bad version which breaks something in an unexpected way.