Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Installing PHP module



Threaded Mode | Print  

 Installing PHP module (1 Replies, Read 9647 times)
AcikaV
Group: Member
Post Group: Newbie
Posts: 1
Status:
Hello I'm having problems installing phpredis on module on my webuzo VPS server.
I installed redis server, and its working link charm. redis-cli ping returns pong. So I tried and installed phpredis module and tried this from ssh:

php -r "if (new Redis() == true){ echo \"\r\n OK \r\n\"; }"

It returns OK, so that is I beleive OK.

The problem is that when I use the same command from my PHP file it returns Unknown class Redis. So I tried php -m from ssh and it returned that redis is loaded.
So I made new php file which lists enabled php modules:
vasictech.net/api/mod.php

Redis is not there.

So then I tried php -i on sshand I noticed that PHP version is 5.3.3, and when I try  phpinfo() in a php file on server:
vasictech.net/api/info.php

It returns that version is 5.4.34

So than I added redis.so to /usr/local/apps/php54/ext/
and added extension=redis.so to /usr/local/apps/php54/etc/php.ini
And it still not loading... How can I fix this :/
IP: --   

Installing PHP module
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Seems you have php installed by default on your server.

Remove php as
yum remove php

Remove and install the PHP version using Webuzo
http://www.webuzo.com/wiki/Install_System_Apps

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 3:05 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.023