EC-CUBEEC-CUBE at http://www.ec-cube.net/ is an open source software for e-commerce written in PHP. Here's a memo in trying to install on Ubuntu8.04.
Download EC-CUBE Version 2.1.2a(tar.gz) at http://www.ec-cube.net/download/index.php. Untaring creates a directory eccube-2.1.2a. Installed requred packages: php5 and postgres, pgadmin3 using synaptic. As written in http://solyaris.wordpress.com/2008/08/09/setup-postgres-in-ubuntu/, did
$ sudo /etc/init.d/postgresql-8.3 start $ sudo su postgres -c psql template1 postgres> ALTER USER postgres with PASSWORD 'password'; postgres> \q
where password is the password for postgres as a db user. Setup the password of postgres as a UNIX user as follows:
$ sudo passwd -d postgres $ sudo su postgres -c passwd
Modified /etc/postgres/8.3/main/pg_hba.conf: from: localhost all all ident sameuser to: localhost all all md5 Restart Postgres
$ /etc/init.d/postgresql-8.3 restart
Create a db user
$ sudo -u postgres createdb -O eccube eccube_db
Create a database sudo -u postgres createdb -O eccube eccube_db Installed apache2 by synaptic. Moved the EC-Cube directory eccube-2.1.2a to /var/local Edited the file /etc/apache2/sites-available/default and saved as eccube_site.
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/local/eccube-2.1.2a/html
DirectoryIndex index.html index.php
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/local/eccube-2.1.2a/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>Load the new setup file for Apache:
a2dissite default $ sudo a2ensite eccube_site
Restart Apache
$ sudo /etc/init.d/apache2 restart
Lauch a web browser at http://192.168.1.3/ shows the window below:
![[[image: eccube.png]]](/frog/files/Teru/eccube.png)
次へ進む(next) gives
![[[image: eccube1.png]]](/frog/files/Teru/eccube1.png)
looks OK. Hit 次へ進む(next).
![[[image: eccube2.png]]](/frog/files/Teru/eccube2.png)
looks successful. 次へ進む(next) shows the window
[[!!! BAD LINK: eccube3.png !!!]]
Now, setting DB
[[!!! BAD LINK: eccube5.png !!!]]
gets "DB Error: extension not found".
Installed php5-pgsql by synaptic. Restarted the PostgreSQL
/etc/init.d/postgresql-8.3 restart
Then, get different errors as shown below:
![[[image: eccube8.png]]](/frog/files/Teru/eccube8.png)
To see PHP settings, created phpinfo.php at /var/local/eccube-2.1.2a/html/ as
<? phpinfo() ?>
and browsed http://192.168.1.3/phpinfo.php.
![[[image: eccube9.png]]](/frog/files/Teru/eccube9.png)
seems OK. So, what's wrong?
Changed in vi /etc/postgresql/8.3/main/postgresql.conf,
#listen_addresses = 'localhost'
to
listen_addresses = '*'
Restarted Postgres and Apache.
OK with the host 127.0.0.1 it worked, and move to the window below:
![[[image: eccube10.png]]](/frog/files/Teru/eccube10.png)
Next window shows:
![[[image: eccube11.png]]](/frog/files/Teru/eccube11.png)
It looks OK. Then,
![[[image: eccube12.png]]](/frog/files/Teru/eccube12.png)
And, finally,
![[[image: eccube13.png]]](/frog/files/Teru/eccube13.png)
finishes!
Logging in
![[[image: eccube14.png]]](/frog/files/Teru/eccube14.png)
It says /install/index.php needs to be deleted after completing installation.
![[[image: eccube15.png]]](/frog/files/Teru/eccube15.png)
is the first page for administration.