Skip to content

Instantly share code, notes, and snippets.

@Alexnder
Last active July 22, 2016 19:54
Show Gist options
  • Save Alexnder/44b7340a0894efc81a12 to your computer and use it in GitHub Desktop.
Save Alexnder/44b7340a0894efc81a12 to your computer and use it in GitHub Desktop.
Debian ez publish legacy install

Install nginx, mysql, php and other

apt-get install -y curl mysql-server mysql-client nginx php5-fpm php5-cgi php5-cli imagemagick php5-intl php5-xsl php5-mysql php5-curl php5-gd php5-pgsql git;

Get ez

cd /var/www
git clone https://github.com/ezsystems/ezpublish-legacy.git ezpublish_legacy
cd ezpublish_legacy
git checkout v2015.01.3

Get composer and install dependencies

curl -s http://getcomposer.org/installer | php
php -d memory_limit=-1 composer.phar install --prefer-dist
chown -R www-data:www-data .

Create nginx config

// http://blog.alekc.org/guide-how-to-install-symfony-ezpublish-5-on-nginx-through-git

vim /etc/nginx/sites-available/ez
ln -s /etc/nginx/sites-available/ez /etc/nginx/sites-enabled/ez
service php5-fpm restart
service nginx restart

Php config

vim /etc/php5/fpm/php.ini

At least change this values

date.timezone = "Europe/Moscow"
post_max_size = 16M
upload_max_filesize = 16M
cgi.fix_pathinfo=0
variables_order = "EGPCS"

Create db

Login to mysql

mysql -uroot -ppass;

Create db

CREATE DATABASE `db_name` CHARACTER SET utf8;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON db_name.* TO 'user'@'localhost';
FLUSH PRIVILEGES;

Init db

mysql -uuser -ppass database < kernel/sql/mysql/kernel_schema.sql
mysql -uuser -ppass database < kernel/sql/common/cleandata.sql

Config sendmail

sudo dpkg-reconfigure exim4-config

And choice "internet site"

OPT Change hostname

vim /etc/hostname
vim /etc/hosts
invoke-rc.d hostname.sh start
invoke-rc.d networking force-reload
invoke-rc.d network-manager force-reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment