

#IP2LOCATION HOW TO#
How to display geolocation information in the default Welcome page?ġ) Before getting started, register for a free account in IP2Location Lite, and download the DB11 Lite database. We can do it with this command:Ĭhown If you see the page similar to the screenshot, you have done the basic configuration for CodeIgniter 4. You can refer to this article to get started.ĥ) Go to the line “DocumentRoot /var/Restart the Apache service to register the changes.Ħ) We will also need to change the ownership of the cache folder. Note: If you have a purchased domain and would like to use it for this new website, you can also configure in Apache. Open the configuration file called nf by using the command nano /etc/apache2/sites-enabled/nf. But before that, you will need to configure in the Apache so that the Apache will load the correct directory. , :, ` and space._Ĥ) After the creation process is done, you can go to the browser to test the website. Note that the new folder name can only contain alphanumeric and symbols /, `.
#IP2LOCATION INSTALL#
Run the following commands to install those extensions: apt-get install php7.4-curl php7.4-intl php7.4-domģ) After that, change the path to /var/www/ and run this command composer create-project codeigniter4/appstarter project1 to create a new CodeIgniter4 project. Note: The PHP will be installed as well if you haven’t installed it before.Ģ) The CodeIgniter 4 requires certain PHP extensions to be installed. In the same container, run this command sudo apt-get install composer to install Composer. So, we need to install Composer in the server first.
#IP2LOCATION UPGRADE#
How to install CodeIgniter 4 in the server?ġ) CodeIgniter recommends that users use Composer to install and upgrade the CodeIgniter project(s). If you saw a page similar to the screenshot, congratulations, you have successfully installed and setup Apache in the Docker container. Use the following command to start the service: /etc/init.d/apache2 start.ħ) Now go to your browser and enter your server IP. Sudo apt-get install apache2 libapache2-mod-phpĦ) After the installation is done, we will then start the Apache service. To install Apache, run the following command:
#IP2LOCATION UPDATE#
Just run sudo apt-get update before doing anything.ĥ) After that, we can proceed to install the packages required. You can read this article to get started.Ĥ) We will need to install the Apache web server in the container, but let us update the package list to get the latest version first. It is advisable to check for the available port number first before running the above command. The name “webserver1” can be changed to any name you like.ģ) Please note that in the above command, we are binding the HTTP port 80 from host to the container. Use the following command to do so:Ģ) Next, create a new Docker container with the name webserver1 and the interactive mode: sudo docker run -name webserver1 -p 80:80 -it debian /bin/bash We will pull a latest Debian image in this tutorial.

Note: We will use Docker in this tutorial, if you haven’t installed Docker, please do so before proceeding.ġ) First, we need to pull the Docker image to the server.
