on i4PACE(i for Personal Archiving and Creating Environment)
actions » SearchLogin 89 articles • 09 Sep 2010

Articles written on 19 Oct 2009

Monday, 19 Oct 2009

permalink ezPublish

installing ezPublish (http://ez.no/jp/ezpublish). download the source athttp://ez.no/jp/download. choose eZ Publish full installation (version 4.2.0). 27.2MB. (registered at http://ez.no as a user.)

untar the downloaded file

> sudo tar zxvf ezpublish-4.2.0-full-with_ezc-gpl.tar.gz -C /var/www
> sudo chown -R www-data:www-data /var/www/ezpublish-4.2.0
> sudo mv /var/www/ezpublish-4.2.0 /var/www/ezpublish

take care of its prerequisites:

> sudo apt-get install php5 php5-gd php-cli php-pear curl
> sudo apt-get install postgresql

by synaptic package manager on ubuntu9.04. apache is already installed.

follow the instructions at here.

the first thing to do is to execute psql as a postgres user. turns out i need a password... which i haven't set up :-/ this page gives an instruction, and i did

> sudo apt-get install pgadmin3
> sudo -u postgres psql postgres

within psql,

postgres=# \password postgres

then set the password as

Enter new password: 
Enter it again:
postgres=#\q

to login as postgres,

> sudo su
> su postgres
> psql -U postgres -W

assuming to use port 5432. create a new database and a new user

postgres=# CREATE DATABASE myezdb ENCODING='utf8';
CREATE DATABASE
postgres=# CREATE USER ezuser PASSWORD '********';
CREATE ROLE

grant permission

postgres=# GRANT ALL PRIVILEGES ON DATABASE myezdb TO ezuser;
GRANT

Next the instruction says to import the "pgcrypto" module. need to install pgcrypto as

> sudo apt-get install pgsql-contrib-8.3

Now, i can import the "pgcrypto" module into the new database:

postgres=# \c myezdb
Password for user postgres: 
You are now connected to database "myezdb".
myezdb=# \i '/usr/share/postgresql/8.3/contrib/pgcrypto.sql'
SET
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
myezdb=# \q

i donno what FUNCTIONs they are... but, it's ok. better restart PostgreSQL by

> sudo /etc/init.d/postgresql-8.3 restart

Apache is already installed and running. changed the config file at /etc/apache2/sites-available/defult by adding after <Directory /var/www/>

AddType application/x-httpd-php .php
                DirectoryIndex index.html index.php

saved the file as /etc/apache2/sites-available/ezpublish. then,

> sudo a2ensite ezpublish

After killing all the apache-related jobs (check ps aux | grep apache), start apache2

> sudo /etc/init.d/apache2 start

then access the site

> firefox http://localhost/ezpublish/index.php &

got error messages

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 491520 bytes) in /var/www/ezpublish/lib/eztemplate/classes/eztemplatearrayoperator.php on line 762

Fatal error: Class declarations may not be nested in /var/www/ezpublish/lib/ezdb/classes/ezdb.php on line 106

Ugrrr... After some gooling, changed memory_limit in php.ini

> sudo vi /etc/php5/apache2/php.ini

and changed to

memory_limit = 128M

also changed

max_execution_time = 720

Restarted apache2

> sudo /etc/init.d/apache2 restart

Launched the browser

> firefox http://localhost/ezpublish/index.php &

Voila!
[[image: ezpublish.png]]

hit "Finetune" button. a 'system check' page appears giving some cautions. here, instead of editing php.ini, edit config.php-RECOMMENDED under the root directory of ezPublish as

date.timezone = "Asia/Tokyo"

and save it as config.php.

> sudo chown www-data:www-data config.php

to change the ownership of the file. hit 'next' button anyhow. ... encountered "Missing database handlers" did

> sudo apt-get install php5-pgsql

that solved the problem. got [[image: ezpublish_1.png]]
put a smtp server name s***.xrea.com i have on a rental server. hit 'next' [[image: ezpublish_2.png]]
Servername is localhost, Port 5432, Username postgres, and Password ********. hit 'next' [[image: ezpublish_3.png]]
set default to japanese and additional to english(american). hit 'next' [[image: ezpublish_4.png]]
not all the screen is shown. chose 'Website Interface' as a begining. hit 'next'. took a minute or two to get [[image: ezpublish_5.png]]
chose 'Map to Japanese'. [[image: ezpublish_6.png]]
chose 'URL'. [[image: ezpublish_7.png]]
didn't change any assuming they can be changed in admin later. [[image: ezpublish_8.png]]
changed lastname to YUI, firstname to Comio. mail-address is admin at comio.net. hit 'next'. [[image: ezpublish_9.png]]
got a messge to change to virtual host. i am actually running in virtual host mode, but maybe the apache config file need to be modified. ignore this this time, and see if it's ok. hit 'next'. [[image: ezpublish_10.png]]
this time i won't send info to ez.no. hit 'next' [[image: ezpublish_11.png]]
finished ! :-> i wonder what is 'Usermame' ... %-| hit the link 'User site'. got [[image: ezpublish_12.png]]
ok. see the demo page :-) hit 'Admin site' at the Finished page. got [[image: ezpublish_13.png]]
typed admin as username, and a password. good to see japanese there. [[image: ezpublish_14.png]]
ok, got the admin page :-D

looks like the available extension options doesn't include ez-flow for example in the admin page. need to find out if it can be added thru the admin site.

• Wrote Teru at 00:02 (edited 41×, last on 09 Nov 2009) | read 91× | 0 Comments

1 shown; more articles may be found in the archives. The permalink icon is the article's permalink.
Process times: page=0.052 request=0.061 cpu=0.060