Posts Tagged ‘httpd-dev’

updating centOS 5 PHP install with mbstring & APC

Tuesday, December 22nd, 2009

The default install on A2hosting’s VPS does not have mbstring or APC installed by default.  I became aware of this as I was setting up symfony on the new server.  I googled around looking for a quick guide to install them.

mbstring is a straight-forward install:

yum install php-mbstring

Easy.

Installing APC is a pretty simple affair with one big caveat at the end.  The guide that I found for installing APC is on HowToForge. The last two steps are particular to CentOS on A2hosting’s platform.

1.  Install PEAR.

yum install php-pear

2.  Install php-dev & httpd-dev.

yum install php-devel httpd-devel

3.  Install group Development Tools

yum groupinstall 'Development Tools'

4.  Install group Development Libraries

yum groupinstall 'Development Libraries'

5.  Install APC

pecl install apc

6.  Reboot Apache

httpd -k restart

7.  Error alerts you to SSLRandomSeed error.

SSLRandomSeed Error

SSLRandomSeed Error

8.  Fix Centos Dev

Fix CentOS Dev on A2hosting

It took me an hour last night to figure out the last step.  Without the last step there is no authentication so there is no SSH access.

Till Next Time