![]() ![]() Run the below command to install all the necessary extensions of PHP for Magento 2.3 sudo apt-get install php7.2 libapache2-mod-php7.2 php7.2-mysql php7.2-soap php7.2-bcmath php7.2-xml php7.2-mbstring php7.2-gd php7.2-common php7.2-cli php7.2-curl php7.2-intl php7.2-zip zip unzip -y Let’s start by installing PHP and all of the PHP extensions required in order for Magento 2.3 to run Now just hit the IP address of server in the browser, you will see the Apache welcome page. Restart Apache for any changes to take effect sudo systemctl restart apache2Įnable Apache through the firewall sudo ufw allow 'Apache Full' Open Apache settings file to set the Global ServerName sudo nano /etc/apache2/nfĪdd this line at the end of the file, then save and exit ServerName Ĭheck for any errors sudo apache2ctl configtestĮnable Apache rewrite sudo a2enmod rewrite htaccess rules required for Magento sudo nano /etc/apache2/sites-available/nf Now open Apache configuration file and add the below snippet at the below of the all content. The -y added in the command will skip the confirmation question. Use the below command to install Apache server. Now we need to download/update the records from the connected repositories, run the below command. So we use a well know PHP repository that have the latest PHP versions, to add repo, just use the below command. The basic PHP version is coming with 16.04 version is PHP 7.0, but here we need at least 7.2 for the version of Magento we are using. Now we are almost there to install Magento 2.3 You will get a disconnecting warning on the screen, just hit Y and go to the next command. Now reload the ssh configuration using the below command sudo systemctl reload sshdĪs we using ssh connections, we need to allow this in the firewall. Use the arrow keys to navigate through the configuration file, and find a text like this PermitRootLogin yes. usermod -aG sudo tutsplanetĪccess the following config file to access the ssh configuration and disable root login. In this tutorial I have used Digital Ocean droplet (2GB instance), you may please create the same or you can install one in your PC.įirst we create a user apart from root user, as it is not advisable to share root user for all the people works in the project.Īdd the user to sudo group, so they will have the super user access as root(Super User). ![]() This tutorial demonstrates how to install Magento 2.3 and build a web server on operating system Ubuntu 16.04 LTS. ![]()
0 Comments
Leave a Reply. |