LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-07-2006, 03:11 PM   #1
hbmus080
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
Upgrade PHP in Red Hat Enterprise v4


Hello,
I just installed Red Hat Enterprise v4.

- When I run rpm -qil php I get
php 4.3.9 installed
- When I run rpm -qil httpd I get
version 2.0.52

I tried upgrading to PHP 5.1.4 using the following configure command:
1.) ./configure --with-apxs2=/usr/sbin/apxs --with-mysql-dir=/usr/bin/mysql --with-zlib-dir=/usr/include
2.) make clean
3.) make
4.) make install

All ran fine.
When I restart apache:
service restart httpd
It starts with no errors, but my php pages are not executed so I get a blank screen. When I check the version of php with the command: php -version I get:
PHP 5.1.4 (cli) (built: May 7 2006 12:31:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


I'm guessing I'm missing a step. Does anyone have any advise on this? Thanks in advanced.
Mike
 
Old 05-07-2006, 04:07 PM   #2
hbmus080
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
connect PHP 5 to Apache 2 on Red Hat Enterprise v4

Okay,
The problem is apache is not executing any php code. Instead it is prompting me to download the file. I know this is not a rare problem. So I'll think it through. Maybe a I should get high first?
 
Old 05-08-2006, 11:44 AM   #3
hbmus080
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Got Redhat Apache to compile PHP

In Red Hat Version 4 the httpd.conf file inports all configuration files held in the folder: /etc/httpd/conf.d/
In this folder is a php.conf file that makes reference to the PHP library. Once I changed this from version 4 to version 5 and restarted the httpd my PHP code started to work. I created a phpinfo.php file and was also able to see all my configurations.
The problem I am tackling now involves mysql. It appears that I don't have PHP5 configured correctly or mysql needs to point to the correct php library. Anyway it goes I can't communicate with mysql with my PHP code.
Oh well, getting high help the first time.......
Round 3
 
Old 05-08-2006, 04:07 PM   #4
hbmus080
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
This is becoming my personal blog

Anyway,
It seems php5.1.4 is not going to work with mysql.
 
Old 05-11-2006, 09:18 AM   #5
SHRIKEE
LQ Newbie
 
Registered: May 2006
Location: netherlands
Posts: 6

Rep: Reputation: 0
did you fix it yet? the mysql issue...
i hope you did, so i can upgrade too

which mysql do you use?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ghosting a Red Hat Enterprise 4 WS mambley Linux - Software 2 04-24-2006 09:19 AM
Red Hat Linux Enterprise 4 binary_0011 Linux - Newbie 1 04-17-2006 11:28 PM
Upgrading Red Hat 9 to Red Hat Enterprise Server 3 AS louisb Linux - Software 7 02-23-2004 10:25 PM
Red Hat Enterprise Instalation Hairy Bas Linux - Hardware 5 02-06-2004 06:41 PM
Red Hat Enterprise vs. Red Hat Linux Project RedHatMN Linux - Distributions 2 07-29-2003 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration