LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-15-2004, 12:48 PM   #1
stephen_e
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: RH9
Posts: 7

Rep: Reputation: 0
Is PHP installed on my RH Linux system?


Hi -

(Apologies if its bad to put these questions on more than one site, but I haven't had any answers on the other one... )

I have a RH9 OS, and thought PHP was installed as a part of Apache. I've just installed phpMyAdmin-2.5.7, and saw phpinfo.php in the directory, so I ran it from a browser on another (XP) pc.

(I'm only doing this to get a test server set up, so please bear with me if it becomes obvious I don't know anything about linux/Apache/PHP/MySQL)

When I did this I got an error message:

cannot load MySQL extension,
please check PHP Configuration.

I checked the documentation and it suggested that I needed to:

"install a software package called "PHP-MySQL" or something similar".

So I went to the Applications installation menu in Linux, found php packages that hadn't been installed, which included PHP-MySQL, and tried to load that ( in the Web Server package area). I got a message Package Not Found - the following package could not be found on your system. Installation cannot continue until it is installed Unlocatable Package php = 4.2.2-17 Required by php-mysql.

Questions are: Do I have PHP installed and if so is it just not the right version? I have browsed a very simple php page I put on there and it seemed to work ok. MySQL is definitely installed, as I've setup a couple of simple tables and queried them etc.

How do I go about installing the right version if I need to?

regards, Steve.
 
Old 09-15-2004, 01:11 PM   #2
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Windows Vista/ XP/ Mepis
Posts: 304

Rep: Reputation: 30
You can use the whereis command to find out where a file is or you can use the urpmq to find out what packages are dependant on the file and what version it is using. Please see man pages of this command for more options.
 
Old 09-16-2004, 05:59 AM   #3
stephen_e
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks laceupboots, I'll give those things a try.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
REPAIR WINDOWS( linux installed system) sajjadc Linux - Software 8 08-11-2006 10:06 AM
Can Linux be installed on my system? r1_97 Linux - Newbie 4 02-13-2005 09:49 PM
Transferring installed Linux system to another HD Dee-ehn Linux - General 3 01-12-2005 01:10 PM
copy installed oracale from a linux system to another sqn Linux - General 0 08-19-2003 11:56 PM
Linux 8.0 installed with Apache 2.0, PHP and MySQL fmagoufis Linux - Newbie 1 12-12-2002 01:13 PM


All times are GMT -5. The time now is 01:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration