Nginx, Apache Configuration for CodeIgniter!

Nginx Configuration (sites-available):

service nginx restart
http://your_ip_address

Apache Configuration:

http://your_ip_address/phpmyadmin
ln -s /usr/share/phpmyadmin /var/www/html/ci
http://your_ip_address/phpmyadmin

Bonus Section:

PHP / Nginx: set max file upload and post size:

sudo nano /etc/php/7.4/fpm/php.ini
upload_max_filesize = 80M
post_max_size = 80M
service php7.4-fpm restart

Nginx error: 413 Request Entity Too Large:

sudo nano /etc/nginx/nginx.conf
locate nginx.conf
sudo nginx -t
sudo service nginx reload

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Meher Ullah Khan Raj

Meher Ullah Khan Raj

Software Developer | طالب علم | Average person