Drupal Blog

How to install APC & Uploadprogress on Centos 5

First things first, we need the pecl command in order to download and install APC from the repositories.

Let's run the following command in our terminal:

yum install php-pear

Then, we are making availlable a required package for the phpize command:

yum install php-devel

The followng package will allow apxs command:

yum install httpd-devel

Once we have all the above pakages installed, we are ready to install apc by running the pecl command:

pecl install apc

Configure: error: Please reinstall the libcurl distribution

While trying to setup nginx web server, I received the following error on compilation of php from source: Configure: error: Please reinstall the libcurl distribution

As it turns out, curl-devel was not installed.

So after installing that, the problem was fixed.

For CentOS:

yum -y install curl-devel

More might be missing - if so try installing:

yum install freetype-devel libpng-devel libjpeg-devel libpng libjpeg t1lib  libc-client-devel  libmcrypt-devel gmp-devel mysql-devel 

Also check:

Installing Git in Centos 5.5 with yum

Installing Git in Centos 5.5 with yum is just a matter of seconds.

First we need to set up the Webtatic repository (http://www.webtatic.com/projects/yum-repository/) in yum.
We can do this with the following command in our terminal:

rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-1.noarch.rpm

Once the repository is available, we can install Git with the following:

Drupal: How to generate different view results, using a taxonomy keyword as an argument

The following would apply if you wanted to generate nodes according to a specific taxonomy term, but you didn't want to create a different view for each case.

For instance, we have a market place and in the preface region of our theme, we've setup a 3x3 panel, and in each of the 9 dials we want to demonstrate the latest product from a specific category.

We would create a new node type(Product) for our market products, and a taxonomy vocabulary(Product Categories), which we would then asign to the aforementioned node type. Finally, we would create a view with the following options:


Upgrade Java 1.4 to 1.5 on Centos 5.5

While trying to install Solr in Centos, I noticed that Java 1.5 is required, however Java 1.4 is installed by default.
Now, in order not to have Tomcat start the old Java version, we need to uninstall it using a simple yum line:

sudo yum remove java

Next on the list is to install the new Java versions. Good thing it is included :)

sudo yum install java-1.6.0-openjdk


yum install java-1.6.0-openjdk-devel

Finally, we are ready to install Tomcat:

sudo yum install -y tomcat5

Start tomcat with:

service tomcat5 start

Recent Comments

Forward by Dries Buytaert, Founder and Project Lead, Drupal; CTO Acquia.

Order now from:

Managing Expectations Podcast with DrupalEasy

Author Interview http://tinyurl.com/8a8nxno

We provide the most Shiny Drupal Bits & Pixels

Since Drupal 4.x