Solved

Apache2 & PHP5 on RHEL 4

Posted on 2006-10-21
2
4,215 Views
Last Modified: 2013-12-16
Can someone please help me with the proper install of php5 and apache2 with mysql and GD support on RHEL 4. Changing to a diffrent OS is not an option.

I havent used the RedHat up2date option for any of this because it doesn't seem to have the latest versions of everything I need.

So far here's what I've done.
- Install MySQL5
- downloaded apache 2.0.59 from source and compiled with ./configure --enable-so
- Apache is now located in /usr/local/apache2
- Downloaded php 5.1.6 ... and here's where I need help.

I'm not sure what configure options to use.... I have another server which runs Plesk and when I view the php_info I can see that it was installed with a lot of diffrent configure options. I'm not sure what ones I should be using on this new server I'm setting up from scratch. I know I need MySQL support and GD forsure as well as anything else listed on http://drupal.org/requirements

- I tried to install php myself and it works fine without any configure options. I just need to know what options i need for GD support and also how to install GD and where to find the rpm for RHEL4.

Any help would be great!
0
Comment
Question by:mgustavson
2 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
Comment Utility
Hi,

It is OK since it is works. Just tweak the configuration options. you know there's this age od Allow Global variables or not is going on for a while : )

For GD you need to grab a copy from
http://www.boutel.com/gd
as usual :). This library was always coming from boutell.com and only in tar.gz format.

Cheers,
K
0
 
LVL 14

Accepted Solution

by:
ygoutham earned 500 total points
Comment Utility
php 5 and above already has GD bundled as a part of the install procedure.  make sure that you have the php5 module included in the file

"/etc/httpd/conf.d/php.conf"

the line should read something like

LoadModule php5_module modules/libphp5.so

with the libphp5.so file available in /etc/httpd/modules directory.  run the php_info() on to screen to see if it has GD2 or above number.  then it would support all the libjpeg and libpng functions for php.  if the GD library is less than 2 then these functions suffer and you do not get an image output.  then you need to download the GD library from boutel and start from scratch.  taking off the gd library and reinstalling is the only option.  and post which you should try installing php5 so that it recognises GD 2 library set, which can be a lot of work.  gd is associated with too many installs and the system might give a fair bit of warning messages when you try taking it off. be prepared.

good luck.

goutham
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now