Monday, October 29, 2018

Setup ZF3 on Ubuntu


Hi guys,
All steps need to do as following :

1. Database
 Install the latest Percona MySQL

2. Install Apache2, support PHP7

3. Install PHP extension
At least, you need to install dom ext by this command.
sudo apt install php-dom
sudo apt install php-zip
sudo apt install php-bcmath
sudo apt install php-curl
// mongodb
sudo apt-get install php7.x-dev
sudo pecl install mongodb 
or sudo pecl upgrade mongodb


sudo apt-get install libapache2-mod-php
sudo a2enmod rewrite

4. Config Apache for run PHP7
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php7.0-fpm
service apache2 reload
5. Folder Permission
 You must allow the Apache user (usually www-data) to create files in that directory
 Ex: sudo chown -R www-data /home2/your_source_dir/public

5. Clone project from Git Source
 git clone URL
 git checkout your_favorite_branch

6. Config the local.config file in folder /config/autolad/ directory

No comments:

Post a Comment

Sublime Text 3 Usage

1. Download and install sublime 2. Install some essential packages: - Seti.sublime-theme  : theme beautiful - HTML-CSS-JS Prettify (nee...