Install PHP in Ubuntu and Run Codeigniter Application without database

Install PHP in Ubuntu and Run Codeigniter Application

Install PHP in Ubuntu and Run Codeigniter Application without database
Install PHP in Ubuntu and Run Codeigniter Application without database

How To Run A PHP Codeigniter Application On Ubuntu

1. sudo apt install php libapache2-mod-php
2. sudo systemctl restart apache2
3. sudo apt install php-curl
4. open etc/apache2/apache2.conf 
    line no 172 AllowOverride None to AllowOverride All
5. sudo nano /var/www/html/your-application-folder/.htaccess
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php/$0 [PT,L]
    
    Options All -Indexes
    
    ctrl+s
6. sudo systemctl restart apache2
7. sudo a2enmod rewrite
8. sudo systemctl restart apache2