Help configuring LAMP on Red Hat 6.5


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help configuring LAMP on Red Hat 6.5
# 1  
Old 04-20-2016
Help configuring LAMP on Red Hat 6.5

Good morning community,
I installed on Red Hat Server 6.5 the "classic" package LAMP (Apache, MySQL, PHP and related modules).

Apache server works perfect, also MySQL works, and PHP shown the info as expected using the "<?php phpinfo(); ?>"

Now the problem is when I try to access SQL using PhpMyAdmin, I received the following error:
"cannot load MySQL extension, please check PHP Configuration"

Could you please help me what's wrong?

Thank you
Lucas

EDIT: This is the actual installed packages:
Code:
RHEL65# yum list installed | grep php
php.x86_64                           5.6.20-1.el6.remi          @remi-php56     
php-cli.x86_64                       5.6.20-1.el6.remi          @remi-php56     
php-common.x86_64                    5.6.20-1.el6.remi          @remi-php56     
php-mysqlnd.x86_64                   5.6.20-1.el6.remi          @remi-php56     
php-pdo.x86_64                       5.6.20-1.el6.remi          @remi-php56     
php-pecl-jsonc.x86_64                1.3.9-1.el6.remi.5.6       @remi-php56     
php-pecl-zip.x86_64                  1.13.2-1.el6.remi.5.6      @remi-php56     
php-pgsql.x86_64                     5.6.20-1.el6.remi          @remi-php56     
RHEL65# yum list installed | grep httpd
httpd.x86_64                         2.2.15-29.el6_4            @RHEL6.5        
httpd-tools.x86_64                   2.2.15-29.el6_4            @RHEL6.5        
RHEL65# yum list installed | grep mysql
compat-mysql51.x86_64                5.1.54-1.el6.remi          @remi           
mysql.x86_64                         5.5.49-1.el6.remi          @remi           
mysql-libs.x86_64                    5.5.49-1.el6.remi          @remi           
mysql-server.x86_64                  5.5.49-1.el6.remi          @remi           
php-mysqlnd.x86_64                   5.6.20-1.el6.remi          @remi-php56

In php.ini I enabled the extensions:
Code:
extension=/usr/lib64/php/modules/mysql.so 
extension=/usr/lib64/php/modules/mysqli.so 
extension=/usr/lib64/php/modules/mysqlnd.so

---------- Post updated at 05:46 AM ---------- Previous update was at 04:05 AM ----------

Wops! Solved myself. Smilie

First, I used wrong PhpMyAdmin, since the latest one (4.6.0) is not compatible with PHP and MySQL I have installed on server. I'm using now version: 4.0.10

Then, installed package: php-mbstring and added related extension to php.ini:
Code:
extension=/usr/lib64/php/modules/mysql.so
extension=/usr/lib64/php/modules/mysqli.so
extension=/usr/lib64/php/modules/mysqlnd.so
extension=/usr/lib64/php/modules/mbstring.so

Then, PhpMyAdmin Works!!!
Sorry for wasting forum space, anyway I hope this can be usefull to other users!

Lucas

Last edited by Lord Spectre; 04-20-2016 at 07:22 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

2. Red Hat

Red-hat

Hello, How do I see what IP addresses are connected to my machine? thanks (2 Replies)
Discussion started by: sonomao
2 Replies

3. Red Hat

Red Hat E 3

I'm am working with a Red Hat Enterprise 3 server. This is a dedicated server that is supposedly dedicated to one domain, but I have been tasked with trying to figure out if there are files on this system that are being accessed by other IP's. Does anyone know if how I would go about finding... (0 Replies)
Discussion started by: chrisPlusPlus
0 Replies

4. Linux

red hat ee 2.6.9-42

hello. I would be greatfull if someone could tell me how will i see what dns server and gateway my red hat server uses. I tryied to find out by typing ifconfig command but i got : -bash: ifconfig: command not found , although man ifonconfig gives output with info about using that command. Is... (3 Replies)
Discussion started by: tonijel
3 Replies

5. Linux

red hat tutorials

can anyone suggest good sites for linux (1 Reply)
Discussion started by: msuresh_mvp
1 Replies

6. Linux

Configuring USB in Red Hat Linux 9

Had problems in configuring USB memory stick in RHL 9. Please assist. With regards, Kungra. (1 Reply)
Discussion started by: kungra2006
1 Replies

7. UNIX for Dummies Questions & Answers

Red Hat 9 help

please help me how to install softwares in linux.i have a ethernet internet connection.i try to open the site on LAN to download internet client.but i cannot as our lan supports only internet explorer....i downloaded the linux client by booting thru XP......but i cannot c my NTFS partition thru... (0 Replies)
Discussion started by: shobhit143
0 Replies

8. Linux

Red Hat?

I have a Red Hat upgrade disk. I installed it and it corrupted my entire hard drive! I had gotten the disks out of a Dummy's book at my local library. Trying to install 'Red Hat', has cost me $100.00 in damages. (The cool part is my friend gave me that $100.00 part) Ah...A 120gig Hard Drive. Just... (3 Replies)
Discussion started by: hdk_mkr
3 Replies

9. UNIX for Dummies Questions & Answers

Red Hat 7.2.....

I just installed red hat 7.2 on my laptop. it's dual booted with xp and red hat. when i boot in to linux it boots up to the screen to ask me my name and pass....i put in root and my password. after this it goes to a blue screen and sits there. the after about 2 minutes it comes up with a fatal... (1 Reply)
Discussion started by: muzscman
1 Replies
Login or Register to Ask a Question