Codeigniter does not present its Welcome screen

Asked

Viewed 168 times

0

I started learning codeigniter a few days ago and I have the following problem:

I did the correct installation of LAMP and of Codeigniter /var/www/html/codeigniter

But when I try to access the page "Welcome" of framework using the following url http://localhost/codeigniter, browsing simply does not display the page Welcome as usual, it presents the CODE php of index.php within the root of framework, I can’t carry the view Welcome of frameworkinserir a descrição da imagem aqui

  • see apache status with sudo service apache2 status.

  • your apache ta running however without php configured

  • 1

    Have you tried installing this package? Usually when this problem happens your PHP is installed but your apache still needs this dependency. apt-get install libapache2-mod-php

1 answer

0

Your Lamp stack is not correctly installed or configured.

Check if these are the steps you followed:

sudo apt update && sudo apt upgrade
sudo apt install apache2

Assuming that you will use mysql and that it is version 7.2 of PHP that you will use.

sudo apt install mysql-server
sudo apt install php7.2 libapache2-mod-php7.2 php-mysql

Optional if you use any of these PHP modules

sudo apt install php-curl php-json php-cgi

Finally doing Re-start to apache, as you are in Ubuntu is simple:

sudo service apache2 restart 

If you have followed all these steps, possibly the only step you will be missing is libapache2-mod-php7.2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.