hi all today i will install the GPG PHP extension on an Ubuntu Server 9.04
first we will install some preliminary stuff:
aptitude install php5-dev
aptitude search gpgme
aptitude install libgpgme11 libgpgme11-dev
pecl install gnupg
at the end we insert to php.ini the following:
extension=gnupg.so
run the following command to do so:
#first we update the system
aptitude update
aptitude safe-upgrade
#install necessary packages
aptitude install php5-dev php5-cli php-pear build-essential
#configure openssl
openssl-dev zlib1g-dev
#install libssh2 ext
aptitude install libssh2-1-dev
#install the pecl ext
pecl install -f ssh2
#add the ext to the configuration file
echo ‘extension=ssh2.so’ > /etc/php5/conf.d/ssh2.ini
#restart the apache server
/etc/init.d/apache2 restart
that’s it enjoy
I have modified the plugin for DOMPDF which is found in CodeIgniter forum. I have added the paper size and orientation parameters. Here is the code to share
Go to Source
CodeIgniter: an open source Web Application Framework that helps you write PHP programs
Go to Source