Copy the text output from:
php -v (shows version)
php -m (shows modules loaded)
paste the text into a response.
Also run:
yum list php-*
You'll see something like this IF your system is using CentOS repos:
[root@moodle ktask]# yum list php-*
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.aol.com
* extras: mirrordenver.fdcservers.net
* updates: centos.netnitco.net
Installed Packages
php.x86_64 5.3.3-27.el6_5 @updates
php-cli.x86_64 5.3.3-27.el6_5 @updates
php-common.x86_64 5.3.3-27.el6_5 @updates
Basically, CentOS 6.5 update repos may not have the required PHP version nor the
matching extensions needed.
One needs to use 3rd party repo. Recommend Webtatic repos for CentOS 6
http://webtatic.com/packages/php54/
On the link above make sure you use el6 references ... NOT the el5's.
el6 = redhat enterprise release 6.x which also = centOS 6.x for most practical purposes
Once the webtatic repo is installed, edit the repo file for it.
Located in /etc/repos.d/
nano webtatic.repo
You'll see a line that has it enabled:
enabled=1
Change the 1 to a 0.
* you don't want webtatic to update other things ... right now just PHP. And you want to be in control of what it updates. You should also check, however, IF you have the minimum requirement for MySQL
Now when issuing the yum list command above, tell yum to use the webtatic repo:
yum --enablerepo=webtatic list php*
You'll see a difference.
Before installing PHP from webtatic you will probably have to remove the php that is
there - php and the php-extenisons - especially php-common - or there will be a
conflict.
Then, when going after PHP from webtatic, think going after his php54w version might be
safer than php55w verison.
Either one those include Zend-opcache - pretty much required for 2.7+->
Easiest way to get all php extensions is to use a global but you might want to list first.
yum --enablerepo=webtatic list php* php*-*
if the global following php above doesn't show extensions the php*-* will
Now about that 1MB RAM ... really? I hope that's a typo and the server is really at least 1GIG ... and even that might be under-powered.
See:
http://docs.moodle.org/27/en/Installing_Moodle#Hardware
Might upgrade the VPS package (memory) before seriously tackling Moodle. And, if using the same VPS for your database, it's *strongly* recommended. I've read somewhere that mysql runs best when it can use up to 80% of available memory.
'spirit of sharing', Ken