using the following codes on centos
yum -y install httpd
yum -y install mysqld mysql-server
yum -y install php php-mysql
yum -y install php-gd php-imap
service httpd start
service mysqld start

i am able to run a website with not more than 50mb of ram without any control panel