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 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:

eZ debug

Timing: Jan 17 2025 21:06:22
Script start
Timing: Jan 17 2025 21:06:22
Module start 'content'
Timing: Jan 17 2025 21:06:22
Module end 'content'
Timing: Jan 17 2025 21:06:22
Script end

Main resources:

Total runtime0.2315 sec
Peak memory usage6,144.0000 KB
Database Queries186

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 603.3359180.8125
Module start 'content' 0.00750.0951 784.1484433.9922
Module end 'content' 0.10260.1288 1,218.1406408.8516
Script end 0.2314  1,626.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00411.7819210.0002
Check MTime0.00160.6711210.0001
Mysql Total
Database connection0.00090.382410.0009
Mysqli_queries0.146163.13171860.0008
Looping result0.00231.01341840.0000
Template Total0.196885.020.0984
Template load0.00210.895920.0010
Template processing0.194784.131220.0974
Template load and register function0.00010.054410.0001
states
state_id_array0.00090.388810.0009
state_identifier_array0.00080.349120.0004
Override
Cache load0.00170.7525150.0001
Sytem overhead
Fetch class attribute name0.00261.106630.0009
Fetch class attribute can translate value0.00080.327010.0008
class_abstraction
Instantiating content class attribute0.00000.003930.0000
XML
Image XML parsing0.00030.108910.0003
General
dbfile0.00662.8667220.0003
String conversion0.00000.003930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplblog_entry/full.tplextension/community_design/design/suncana/override/templates/blog_entry/full.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezkeyword.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezkeyword.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs