I am trying out new VPS package. It’s from DMEHosting. Just for 3 dollar for first month. But since I am totally new to this VPS, I manage to screw it up within first 30 minutes.
In 30 minutes I apparently did rebuild the VPS 2 times. Reboot it for about 6 times. Boot it back 3 times. And the result it, I can’t access it. LOL. I submit a ticket, and it was resolved within 30 minutes. Tech support reply my ticket with “please don’t do multiple rebuild and reboot at the same time”.
Anyway, I settle down for CentOS 5. Particularly selecting with VNC so I can access its GUI when it’s needed. But for the time being SSH is all I need.
First the default OS comes with Apache already install (httpd). So all I did is ” yum groupinstall “MySQL Database” “. Then I found out that it did not have php installed by default so I run “yum install php-mysql” which it just nice.
But when browsing by browser, php is not rendered as PHP page instead it shows source code. Oh Shi*!
I google around and I found this site
From there I remove back what I previously install and run this command instead. I also remove default installed httpd by issuing “yum erase httpd”
yum install httpd
yum install php
yum install mysql-server mysql
service httpd start
service mysqld start
After that all run nicely
Welcome to CentOS world!
Update on 17 Nov 2010: I forgot to install one important thing.
yum install php-mysql
This is to make sure php can communicate with mysql (or actually means load its extension). From there you might want to consider installing this too:
yum install php-mcrypt
yum install php-gd
php-mcrypt to make sure your phpmyadmin run without any error notification. php-gd is for you to use with image manipulation, particularly to generate captcha image.
















