#1
  1. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Sep 2006
    Posts
    2,034
    Rep Power
    535

    Should I install PHP from source?


    In the past, I've always used yum to install PHP. At times, I didn't get exactly what I wanted, but it was the price of a simple yum install.

    I am rebuilding my server with Apache and PHP by source, and with MySQL by rpm. Good or bad idea? Why do you think so?

    Assuming this is not a terrible idea, I will configure PHP as follows. I want a typical PHP 5.4/Centos 6.4/Apache 2.4/MySQL 5.6 server but want SOAP. Does this seem like a reasonable configuration? Why do I need to yum install the various libraries, and if I had not done so, would I have been informed to do so?

    Thanks
    Code:
    yum install \
    libxml2-devel \
    httpd-devel \
    libXpm-devel \
    gmp-devel \
    libicu-devel \
    t1lib-devel \
    aspell-devel \
    openssl-devel \
    bzip2-devel \
    libcurl-devel \
    libjpeg-devel \
    libvpx-devel \
    libpng-devel \
    freetype-devel \
    readline-devel \
    libtidy-devel \
    libxslt-devel \
    l libmcrypt-devel
    Code:
    ./configure \
    --with-libdir=lib64 \
    --prefix=/usr/local \
    --with-layout=PHP \
    --with-pear \
    --with-apxs2 \
    --enable-calendar \
    --enable-bcmath \
    --with-gmp \
    --enable-exif \
    --with-mcrypt \
    --with-mhash \
    --with-zlib \
    --with-bz2 \
    --enable-zip \
    --enable-ftp \
    --enable-mbstring \
    --with-iconv \
    --enable-intl \
    --with-icu-dir=/usr \
    --with-gettext \
    --with-pspell \
    --enable-sockets \
    --with-openssl \
    --with-curl \
    --with-curlwrappers \
    --with-gd \
    --enable-gd-native-ttf \
    --with-jpeg-dir=/usr \
    --with-png-dir=/usr \
    --with-zlib-dir=/usr \
    --with-xpm-dir=/usr \
    --with-vpx-dir=/usr \
    --with-freetype-dir=/usr \
    --with-t1lib=/usr \
    --with-libxml-dir=/usr \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --enable-soap \
    --with-xmlrpc \
    --with-xsl \
    --with-tidy=/usr \
    --with-readline \
    --enable-pcntl \
    --enable-sysvshm \
    --enable-sysvmsg \
    --enable-shmop
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Sep 2006
    Posts
    2,034
    Rep Power
    535
    Please?

    Any reason I should not install PHP from source? I have successfully done so and it was fairly straightforward.

    I will probably install MySQL using yum on the RPM file instead of using the Centos repo.

    Instead of installing Apache by source, I am thinking of creating my own RPMs from the canonical Apache httpd tarball.

    Don't feel obligated on commenting of the later two proposed directions, however, if you wish to, your comments would be highly valued.

    Thanks
  4. #3
  5. No Profile Picture
    Dazed&Confused
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2002
    Location
    Tempe, AZ
    Posts
    506
    Rep Power
    128
    I've used emerge under Gentoo for years. I kind of figured we were far beyond the age of having to compile from source for standard installs...
  6. #4
  7. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,142
    Rep Power
    9398
    Also curious why you want to install from source. It's an interesting experience to be sure but unless you have weird requirements, like needing compile-time options set or you want something newer than your repos have, yum should be alright for you.

    You say you need SOAP. You don't have it already?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Sep 2006
    Posts
    2,034
    Rep Power
    535
    Thank you requinix,

    Well, yes for the experience, but I think I am just about over that.

    I don't believe SOAP is in the Centos repo (or at least it wasn't a year or so ago). To use yum with SOAP, last time, I had to use the remi repo. Also, the Centos repo only has PHP 5.3.3, and I wanted to take advantage of some of the latest features.

    How do you install PHP?

    Thanks

IMN logo majestic logo threadwatch logo seochat tools logo