|
|||
|
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 |
|
||||
|
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 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.
__________________
My Server Expert: Server support, security, and management! Last edited by Spiral; 07-08-2009 at 07:14 PM. |
|
||||
|
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
__________________
My Server Expert: Server support, security, and management! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |