Activities

January 2010
M T W T F S S
« Dec   Feb »
 123
45678910
11121314151617
18192021222324
25262728293031

Enabling php-imagick on CentOS

imagick

Question.

I want to enable imagic extension on php. I uses Centos5 and php was compiled by hand.

Solution.

#yum install  ImageMagick* [root@rc-clone]#pecl install imagick #sometimes you may have ask to install gcc compiler. if so execute #yum install gcc* added the extension on php.ini [root@rc-clone]#echo "extension=imagick.so"  /etc/php.ini [root@rc-clone installation]# service httpd restart Stopping httpd: [...]

“open_basedir restriction in effect” on Plesk

Question,

I can’t upload images to the web even that folder was given full access to the webserver. Server is Centos5 with Plesk loaded

My error messages should like this,

Wed Jan 27 08:55:57 2010] [error] [client 122.166.23.96] PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/mydomain.com/httpdocs/PrdImages/1517face.gif) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs:/tmp)

Solution,

[...]

Installing ImageMagick on Centos5

How do I install ImageMagic on Centos

#yum install ImageMagick.i386 #yum install ImageMagick-devel.i386

1. How do I test whether it’s working or not ?

  <strong> [root@u15382543 ~]# convert logo: logo.gif</strong>

2. How do I verify that which image extensions are enabled on ImageMagick ?

 <strong>[root@u15382543 ~]#identify -list format</strong>

How to up-grade Imagemagick

My [...]

Postfix – SMTP Relay server using gmail.

Requirements. I need to get nagios alerts which is used to monitor LAN to my officail email. I had configured external mail server as relay. But the hosting company blocked the traffic from my network later.

Solution Configure postfix as relay mail server which is using Google smtp. 1. Install Postfix ( yum install postfix) [...]

Nginx -Apache -Proxy configuration on Centos-Plesk server

Question, My requirements are,

1. I have few very high traffic websites and I need to get maximum performance to the users on the peak time and my web server should serve the pages as must faster than Apache does. 2. Apache is primary server and heavy loaded and pages are loaded slowly on [...]

Enable querry log on MySQL

I need to trace out what are happening on mysql when my application is running.

This is extremely useful for finding the lengthy sql query. This would help us to get an idea about which queries are to be taken for optimization which will cause the mysql performance.

This technique will work only the latest [...]