Tip: Setup Ubuntu 11.04 for eZ publish dev

Wednesday 24 August 2011 11:33:12 am

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 components.ez.no
 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:
#openjdk
#defaultjdk
#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:

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 17 2025 23:47:09
Script start
Timing: Jan 17 2025 23:47:09
Module start 'layout'
Timing: Jan 17 2025 23:47:09
Module start 'content'
Timing: Jan 17 2025 23:47:09
Module end 'content'
Timing: Jan 17 2025 23:47:09
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 591.2344152.6406
Module start 'layout' 0.00550.0026 743.875039.5000
Module start 'content' 0.00800.0047 783.375090.6719
Module end 'content' 0.01270.0021 874.046930.2891
Script end 0.0148  904.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.2618140.0002
Check MTime0.00128.1815140.0001
Mysql Total
Database connection0.00085.657510.0008
Mysqli_queries0.002516.573730.0008
Looping result0.00000.094910.0000
Template Total0.001811.910.0018
Template load0.00085.725010.0008
Template processing0.00096.183210.0009
Override
Cache load0.00064.093210.0006
General
dbfile0.00021.617380.0000
String conversion0.00000.033840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs