Do I need to compile PHP each time.

#1
I have installed litespeed on a VPS (centos 6.7 x64). When I tried to use WordPress it gives me error.

"Your PHP installation appears to be missing the MySQL extension which is required by WordPress."

So I installed php-mysql
However the error still does not go.

I learned that I need to move php.ini to /usr/local/lib and to add the entries for php-mysql. Please see the attached screenshot.

However the error does not go. Do I need to compile PHP? If so how?
 

Attachments

#2
Also when I do php-i or php-v I get the following error.

[root@vps public_html]# php -v
-bash: php: command not found
[root@vps public_html]# php -i
-bash: php: command not found
 
#4
Thanks for the information & sorry for delayed response.
I have followed instructions in the above link but, I am stuck with one more issue.
I have installed PHP 5.4 & plugins for it.

yum install lsphp54 lsphp54-common lsphp54-mysql lsphp54-gd lsphp54-process lsphp54-mbstring lsphp54-xml lsphp54-mcrypt lsphp54-pdo lsphp54-imap lsphp54-soap lsphp54-bcmath

As mentioned in above URL I have configured External App

Please see http://prntscr.com/8ynzdp

However in phpinfo() I can't see the changes http://prntscr.com/8yo17b

Thanks in advance for your help mistwang. Your awesome :)
 
Top