Posts Tagged ‘vps’

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

setting up a domain-nameless domain

Monday, December 21st, 2009

My company’s website is being completely rewritten from scratch and I chose to move to A2hosting.com.  We are going with a Virtual Private Server (VPS) from them and have found a little difficulty setting up web access to it.

The main issue is that since the website is already up and running, I can’t just transfer the domain name to the new server and be done with it.  I need to be able to access the new website by just the IP address for a while, until we move the production site over to it.  This is not documented anywhere on A2hosting’s site that I could find.

The issue resides in the setup of IP address of the server through Kloxo.  I am unable to configure the domain to default to the domain of my choice.  The error checking of this function disallows the assigning of that domain name since the domain name does not currently resolve to the server’s IP address.The solution resides in the /etc/hosts file.  I had to set the IP to equate to the domain name that WILL be the correct name once the production site is moved over.

A quick little walkthrough:

Set the /etc/hosts file

IP Addresses link in Kloxo admin

IP Address table

IP Address info

Select the proper domain name for the IP Address

Hope this helps.

Till Next Time