Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Easyapache - download php?

Discussion in 'EasyApache' started by Darkflare, Jul 8, 2009.

  1. Darkflare

    Darkflare Registered

    Jul 8, 2009
    Likes Received:
    Trophy Points:
    Hi all

    I tried to update php in whm using easyapache to include the gd image manipulation library however after updating all the php files acted as binary files instead of php files.

    Ive tried using /scripts/easyapache and set the basic install and still my php files are served as a download.

    When looking at the log for the build i have noticed some perculiar items such as:

    Cannot find a package matching zlib1-devel

    and quite a few other packages missing. Would this cause the problem?

    Im not sure what to do. Please help!

  2. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    When you tried to recompile PHP, your recompile failed ...

    Without a working PHP installation, Apache doesn't know how to handle
    PHP script files so they are just served up to the browser as binary downloads
    which needs to be fixed quickly because that is actually a security risk
    since all your script files could be downloaded in raw source form including
    those that may have confidential passwords, database information, etc.

    Back on the topic though, your recompile could have failed because you
    were missing necessary operating system components or compile libraries
    from your build environment or because of the options you chose when
    trying to recompile PHP. Some options don't play happy together and
    can cause a build attempt to fail unless you know what you are doing
    which is one of the reasons I personally like to compile PHP manually
    instead of using EasyApache for that.

    Bottom line though is you need to check your server and make sure
    you have all the files, modules, and libraries you need and then you
    need to recompile PHP and get it back up and running again.

    Regarding your missing zlib1-devel, you might try the following to help
    which gives you what you are missing plus all the basic modules and
    libraries to give you also some of the other base files you'll need:
    # yum install zlib zlib-devel 
    # yum install gd gd-devel gd-progs libjpeg libjpeg-devel libexif libpng giflib* netpbm
    # yum install gcc glib* coreutils make
    # yum upgrade
    # /scripts/checkperlmodules
    # /scripts/upcp
    After you have those, you might go in and try /scripts/easyapache again and try
    to build yourself a new PHP again and see if you do any better this time around.

    If you need help, let me know. I should be around most of the day
    and I'll be keeping an eye on my private messages.
    #2 Spiral, Jul 8, 2009
    Last edited: Jul 8, 2009
  3. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:

    I got your private message and yes I'll give you a hand with that.
    It is a little past midnight my time so I probably won't be online much
    longer tonight but I'll stay for a little bit since I got your message.

    I sent you a reply back with a few ways to contact me by instant message
    and an email address where you can send the file you wanted to send me
    and I'll take a look at that as soon as I get your email.

    If you don't catch me this evening, I will be back here sometime tomorrow
    around lunch time about 11 hours after the post time of this message.


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice