Posts Tagged ‘linux’

h1

Updating OS EZ Template Caches

August 24, 2009

#####################################

[root@vps ~]# ls /vz/template/cache
centos-5-x86.tar.gz fedora-core-9-x86.tar.gz ubuntu-8.04-x86.tar.gz
[root@vps ~]#

[root@vps ~]# vzpkg update cache centos-5-x86
Update OS template cache for centos-5-x86 template

Loading “rpm2vzrpm” plugin
Cleaning up xml metadata
16 metadata files removed

Loading “rpm2vzrpm” plugin
Making cache files for all metadata files.
This may take a while depending on the speed of this computer
Setting up repositories
base0 100% |=========================| 1.1 kB 00:00
base1 100% |=========================| 951 B 00:00
base2 100% |=========================| 951 B 00:00
base3 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 878 kB 00:00
primary.xml.gz 100% |=========================| 306 kB 00:00
base1 : ################################################## 465/465
Added 296 new packages, deleted 0 old in 4.80 seconds
primary.xml.gz 100% |=========================| 1.7 kB 00:00
primary.xml.gz 100% |=========================| 1.0 kB 00:00
filelists.xml.gz 100% |=========================| 2.8 MB 00:00
filelists.xml.gz 100% |=========================| 2.2 MB 00:00
base1 : 2/465
=== == == == ==
=== == == == ==
=== == == == ==
=== == == == ==
ev.i386 0:095-14.20.el5_3 usermode.i386 0:1.88-3.el5.2 util-linux.i386 0:2.13-0.50.el5 vim-common.i386 2:7.0.109-4.el5_2.4z zlib.i386 0:1.2.3-3
Complete!
grep: /tmp/pam/*: No such file or directory
OS template centos-5-x86 cache was updated
[root@vps ~]#

[root@vps ~]# ls /vz/template/cache
centos-5-x86.tar.gz centos-5-x86.tar.gz-old fedora-core-9-x86.tar.gz fedora-core-9-x86.tar.gz-old ubuntu-8.04-x86.tar.gz
[root@vps ~]#

[root@vps ~]# vzup2date

h1

Installing PECL shared extensions

July 30, 2009

[root@server ]# ls -l `which curl` `which curl-config`
lrwxrwxrwx 1 root root 21 Mar 7 10:59 /usr/bin/curl -> /opt/curlssl/bin/curl
lrwxrwxrwx 1 root root 28 Mar 7 10:55 /usr/bin/curl-config -> /opt/curlssl/bin/curl-config

[root@server ]# cd /root/ ; wget http://pecl.php.net/get/pecl_http-1.6.3.tgz
[root@server ]# tar -zxvf pecl_http-1.6.3.tgz
[root@server ]# cd pecl_http-1.6.3
[root@server ]# phpize
[root@server ]# ./configure –with-http-curl-requests=/opt/curlssl
[root@server ]# make
[root@server ]# make test
[root@server ]# make install
[root@server ]# php -i | grep “Configuration File”
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

[root@server ]# vi /usr/local/lib/php.ini , and add

extension=http.so ( below extension_dir line in php.ini , make sure extension_dir alredy points to the folder having http.so lib )

** curl / curl-config may depend on your system setup. you can also use –prefix=/usr/local/pecl_http or anything you want)