martes, 26 de julio de 2011

Development Server: Centos 6 in a Virtualbox

1) Download lastest virtualbox.
2) Download centos 6.
3) Install as webserver.
4) yum update.
5) configure portforwarding.
SSH 2222 -> 22,
HTTP 8080 -> 80,
Postgresql 6543 -> 5432
6) yum install gcc kernel sources kernel-devel kernel-headers
7) load guest additions (devices -> install gues additions)
8) mount /dev/cdrom /media
9) cd /media
10) ./VBoxLinuxInstall.sh
11) configure shared folder auto-mount
12) add apache to vbox group
usermod -a -G vboxsf apache
wget http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
rpm -i epel-release-6-5.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/remi-release-6-1.el6.remi.noarch.rpm
rpm -i remi-release-6-1.el6.remi.noarch.rpm
13) install php-pgsql php-pear php-pear-MDB2 php-pear-Driver-pgsql php-Smarty
14) edit php.ini in /etc/php.ini
date.timezone = America/Asuncion # or your timezone
include_path = ".:/usr/share/pear:/usr/share/php/Smarty"
15) service httpd restart
16) yum install postgresql-server postgresql-contrib postgresql-devel
17) service postgresql initdb
18) edit pg_hba.conf and postgresql.conf in /var/lib/pgsql/data
add 10.0.2.2/32 trust
and listen_adrress to '*' and autovacuum = on
19) service postgresql start

No hay comentarios: