A complete platform for building web applications.
Download compressed file:
wget https://github.com/daif/ertikazos/archive/master.zip -O ertikazos.zip
Uncompress the file:
unzip ertikazos.zip -d ./
Rename the directory:
mv ertikazos-master/ ertikazos/
Change to ertikazos
directory:
cd ertikazos
Edit configurations:
Edit $db['default']
nano application/config/database.php
Edit $config['base_url']
nano application/config/config.php
Migrate the database using creator
command:
php creator migrate
Seed the database using creator
command:
php creator seed
Now you can access to the application using default username admin@ertikazos.dev
and 12345678
as password.
Update all packages to the last version
sudo apt-get update
sudo apt-get upgrade
Installing Apache and needed modules:
sudo apt-get install apache2
sudo apt-get install libapache2-mod-fastcgi
sudo a2enmod actions alias fastcgi proxy_fcgi rewrite
Edit apache2.conf
and set AllowOverride
value to All
:
sudo nano /etc/apache2/apache2.conf
Create site directories:
mkdir /home/CURRENT-USER/logs/
mkdir /home/CURRENT-USER/www/ertikazos.dev/
Create ertikazos.dev
hostname:
sudo nano /etc/hosts
127.0.0.1 ertikazos.dev
Create ertikazos.dev
VirtualHost:
sudo nano /etc/apache2/sites-available/ertikazos.dev.conf
<VirtualHost *:80>
ServerAdmin admin@ertikazos.dev
ServerName ertikazos.dev
ServerAlias www.ertikazos.dev
DocumentRoot /home/CURRENT-USER/www/ertikazos.dev/public
ErrorLog /home/CURRENT-USER/logs/error.log
CustomLog /home/CURRENT-USER/logs/access.log combined
</VirtualHost>
Enable ertikazos.dev
VirtualHost:
sudo a2ensite ertikazos.dev.conf
Restart apache2
to apply changes:
sudo service apache2 restart
Installing MySQL:
apt-get install mysql-server
Create database and user
mysql -u root -p
create database ertikazos;
grant all on ertikazos.* to 'ertikazos_user' identified by '******';
Installing PHP and needed modules:
sudo apt-get install php php-cli php-fpm
sudo apt-get install php-mysql php-zip php-curl php-gd php-mcrypt php-imap php-mbstring php-soap php-gettext php-json php-phpseclib
Enable PHP config for apache:
sudo a2enconf php7.0-fpm
Set PHP error_log to /home/CURRENT-USER/logs/php-error.log
:
sudo nano /etc/php/7.0/fpm/php.ini
Restart php7.0-fpm
to apply changes:
sudo service php7.0-fpm restart
Installing GIT:
sudo apt-get install git
Installing PHPmyAdmin:
sudo apt-get install phpmyadmin
Follow CodeIgniter official documentation.