hosting codeigniter project to linux server |
I want to host my CodeIgniter project to Linux server using apache2
I already install apache2 using
Code: sudo apt install apache2 I already to copy my project in
Code: /var/www/ Code: /etc/apache2/sites-available/000-default.conf Code: index.html I tried using new conf in
how I can change that default page to my CodeIgniter project?
Code: /etc/apache2/sites-available/
Hello bealefay ! The issue is not coming from CI, it is your apache configuration.
1/ You need to make sure PHP is installed. You can type "php -v" in the Terminal to make sure it is ok. https://linuxize.com/post/how-to-install...ntu-18-04/ 2/ "000-default.conf" needs to point to the "public" folder, not the root folder ("<Directory /path/to/public>"). I suggest you set up a virtualhost. https://linuxize.com/post/how-to-set-up-...ntu-18-04/ 3/ "000-default.conf" needs to load "index.php", not "index.html". https://stackoverflow.com/questions/1619...index-html
|
Welcome Guest, Not a member yet? Register Sign In |