Установка CodeIgniter PHP Framework на Ubuntu 18.04 LTS

Установка CodeIgniter PHP Framework на Ubuntu 18.04 LTS

Steps to Install CodeIgniter PHP Framework on Ubuntu 18.04 LTS

sudo apt-get update
sudo apt-get install net-tools
sudo apt-get install apache2 -y
sudo apt-get install software-properties-common -y
sudo apt-get install libapache2-mod-php7.1 php7.1-common php7.1-xml php7.1-zip php7.1-mysql unzip wget -y
sudo systemctl start apache2
sudo systemctl enable apache2
sudo wget https://github.com/bcit-ci/CodeIgniter/archive/3.1.8.zip
sudo unzip 3.1.8.zip
sudo cp -r CodeIgniter-3.1.8 /var/www/html/codeigniter
sudo chown -R www-data:www-data /var/www/html/codeigniter
sudo chmod -R 777 /var/www/html/codeigniter/
sudo nano /etc/apache2/sites-available/codeigniter.conf

<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/codeigniter
ServerName ipaddress
ServerAlias ubuntu
<Directory /var/www/html/codeigniter/>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/codeigniter-error_log
CustomLog /var/log/apache2/codeigniter-access_log common
</VirtualHost>

sudo a2ensite codeigniter
sudo systemctl restart apache3

http://ipaddress