Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006

    Difference in performance for apache/php from?

    Hi, I need to know if there is any major difference in performance for using:

    yum install httpd/yum install php


    manually compiling httpd/apache/php.

    Is there any major differences for performance?

  2. #2
    Join Date
    Dec 2005
    I would go with the binary package (yum) rather than compiling from source. The maintainers of your Linux distro (I'm assuming RHEL/CentOS, since you're using yum) are much more familiar with that distro than you are, and therefore can choose the compile-time options that offer the best performance for that particular OS.

    They will also often apply patches to their RPMs that fix OS-specific bugs and other issues. And, when a bugfix is found, applying those patches is as simple as "yum update". You should only compile from source when the binary package doesn't offer particular features that you need, and even then, grabbing the SRPM and changing its options is usually the best route.

  3. #3
    Use the binary because it has been optimized for your distribution. And as mentioned, the binary version will be patched with bug fixes and possibly improvements over the standard distribution.

  4. #4

    Compiling from code

    You can of course compile your own version if: - you need more features/options than yum install php provides - you need the latest version of PHP5 . you have a decent GCC or other compiler - you have a newer CPU and you want to optimize your MySQL binaries for that model specifically ie. yum might install general i386 package, when your processor is i686 or AMD 64. - you know what you are doing - you need to to setup PHP into different paths than YUM installs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts