Skip to content

Instantly share code, notes, and snippets.

@behrad
Created August 4, 2013 08:20
Show Gist options
  • Save behrad/6149679 to your computer and use it in GitHub Desktop.
Save behrad/6149679 to your computer and use it in GitHub Desktop.
Zotonic Installation in Centos 6
# firs make sure EPEL & REMI repos are enabled!
yum -y install erlang mercurial gcc gcc-c++ make librsvg2-devel lcms-devel libjpeg-devel libpng-devel jasper-devel fontconfig-devel freetype-devel libxml2-devel libtiff-devel bzip2-devel ncurses-devel openssl-devel
yum install ImageMagick
rpm -Uvh http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
su - postgres -c /usr/pgsql-9.2/bin/initdb
chkconfig --levels 235 postgresql-9.2 on
vim /etc/postgresql/<pg version>/main/pg_hba.conf
#local all zotonic ident
#host all zotonic 127.0.0.1/32 md5
#host all zotonic ::1/128 md5
/etc/init.d/postgresql start
su postgres
createdb zotonic
createuser -P
# psql zotonic
#zotonic=> create language "plpgsql";
#zotonic=> \q
cd /opt
unzip zotonic.zip
cd zotonic
make
cp zotonic.sh /etc/init.d/zotonic
chmod +x /etc/init.d/zotonic
chkconfig --add zotonic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment