#1 (permalink)  
Old 07-08-2009, 06:32 PM
Registered User
 
Join Date: Jul 2009
Posts: 1
Darkflare is on a distinguished road
Easyapache - download php?

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!

~Alec
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-08-2009, 07:00 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
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:
Code:
# 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.

Last edited by Spiral; 07-08-2009 at 07:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 03:46 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
Thumbs up

Alec:

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.

-Spiral
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EasyApache install with php suexec caused all php to result in internal server errors Solokron cPanel and WHM Discussions 33 09-10-2006 01:56 AM
EasyApache errors. broken php/unrecognized php.ini skuhn718 cPanel and WHM Discussions 1 07-01-2006 10:23 AM
Index.php wants to download instead of... ccreighton cPanel and WHM Discussions 7 11-17-2005 05:27 PM
Php Showing download box nauman cPanel and WHM Discussions 2 02-20-2005 10:12 AM


All times are GMT -5. The time now is 12:04 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc