Blogs / Thiago Campos Viana / Tip: Setup Ubuntu 11.04 for eZ publish dev

Tip: Setup Ubuntu 11.04 for eZ publish dev

Wednesday 24 August 2011 11:33:12 am

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

By : Thiago Campos Viana

Sometimes it's just better develop in Ubuntu, so in this post I will show how to setup your Ubuntu for eZ publish dev.

Open terminal:

sudo su
 #install MySQL, Apache and PHP

 apt-get install mysql-server mysql-client
 apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
 apt-get  install libapache2-mod-php5 php5 php5-common php5-gd php5-curl  php5-dev  php5-idn php-pear php5-imagick php5-imap php5-mcrypt  php5-memcache  php5-mhash php5-ming php5-mysql php5-ps php5-pspell  php5-recode  php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl  php5-cli  imagemagick php5-pgsql
 a2enmod ssl
 a2enmod rewrite
 a2enmod suexec
 a2enmod include

 #maybe you need to configure servername as localhost
 #gksu gedit /etc/apache2/conf.d/fqdn
 #ServerName localhost

 #let's change our php ini to the recommended eZ publish settings
 gedit /etc/php5/apache2/php.ini

 max_execution_time = 180
 max_input_time = 180
 memory_limit = 128
 #!important: maybe also add E to the php.ini variables_order setting
 #set php timezone
 date.timezone =  Your/Time_Zone

 #let's install eZ components - it takes a while
 pear channel-discover
 pear install -a ezc/eZComponents

 #I think you can install these using Synaptics
 sudo apt-get install sendmail
 sudo apt-get install phpmyadmin
 #remember to choose apache2 when installing phpmyadmin

#maybe it is a good idea to set apache as yourself:
gedit /etc/apache2/envvars

export APACHE_RUN_USER=your_username
export APACHE_RUN_GROUP=your_group #same as name

#If you plan using Netbeans or other java based IDE you will need to intall:
#just use synaptic

/etc/init.d/apache2 force-reload
#/etc/init.d/apache2 restart

Then just follow eZ publish install instructions (create db, unzip files in /var/www, open ez dir in browser using localhost, and so on).

Check also: