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:
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 |
Total runtime | 0.0148 sec |
Peak memory usage | 2,048.0000 KB |
Database Queries | 3 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0055 | 591.2344 | 152.6406 |
Module start 'layout' | 0.0055 | 0.0026 | 743.8750 | 39.5000 |
Module start 'content' | 0.0080 | 0.0047 | 783.3750 | 90.6719 |
Module end 'content' | 0.0127 | 0.0021 | 874.0469 | 30.2891 |
Script end | 0.0148 | 904.3359 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0026 | 17.2618 | 14 | 0.0002 |
Check MTime | 0.0012 | 8.1815 | 14 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0008 | 5.6575 | 1 | 0.0008 |
Mysqli_queries | 0.0025 | 16.5737 | 3 | 0.0008 |
Looping result | 0.0000 | 0.0949 | 1 | 0.0000 |
Template Total | 0.0018 | 11.9 | 1 | 0.0018 |
Template load | 0.0008 | 5.7250 | 1 | 0.0008 |
Template processing | 0.0009 | 6.1832 | 1 | 0.0009 |
Override | ||||
Cache load | 0.0006 | 4.0932 | 1 | 0.0006 |
General | ||||
dbfile | 0.0002 | 1.6173 | 8 | 0.0000 |
String conversion | 0.0000 | 0.0338 | 4 | 0.0000 |
Note: percentages do not add up to 100% because some accumulators overlap |
Usage | Requested template | Template | Template loaded | Edit | Override |
---|---|---|---|---|---|
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 1 Number of unique templates used: 1 |
Time used to render debug report: 0.0001 secs