• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hosting codeigniter project to linux server

#1
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/
 and i already set in 

Code:
/etc/apache2/sites-available/000-default.conf
 but when I'm open in the browser, the page show 

Code:
index.html
 apache2 it works!
I tried using new conf in 

Code:
/etc/apache2/sites-available/
 but it can't work for me
how I can change that default page to my CodeIgniter project?
Reply

#2
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
Reply

#3
Hope your post will be helpful to install my web hosting services.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.