Posts

Showing posts from January, 2024

How to add a domain to digital ocean droplet

Image
 How to add a domain to digital ocean droplet In this tutorial, we are going to learn how to add the domain to a droplet inside Digital Ocean. Step 1:   Go to the add domain section, add your domain name, and select the droplet from the dropdown that you want to add your domain name. Step 2: Go to the domain manage section from the right menu bar. Step 3: Select A record from the menu, fill up the hostname with value @, then choose the droplet that is associated with your domain, and finally press the Create Record button. Step 4: Select A record from the menu again, fill up the hostname with value www, then choose the droplet that is associated with your domain, and finally press the Create Record button again. Step 5 : Now yourdomain.com and www.yourdomain.com both are attached with droplet IP. 

How to install Apache into Ubuntu for Laravel

Image
How to install Apache into Ubuntu for Laravel In this tutorial, I am going to show you how to install and configure the Apache web server inside Ubuntu OS. Step 1:  Run the following command to install the Apache web server. sudo apt install apache2 Step 2:   If the “apache2” services are not already enabled, run following command to do so. sudo systemctl start apache2 Step 3:   To check the apache2 server status run below command  sudo systemctl status apache2 Apache configuration of Laravel web application: Default apache web application folder location is /var/www/html. Here we will delete html folder and create a folder named laravel_app. All of our laravel default files and folders will keep inside this laravel_app folder. Follow below commends cd var/www rm -r html/ Now open /etc/apache2/sites-enabled/000-default.conf this file with following commend and change it as below sudo nano /etc/apache2/sites-enabled/000-default.conf <VirtualHost *:80> S...

How to install composer into Ubuntu OS for Laravel

Image
How to install Composer into Ubuntu for Laravel In this tutorial, I am going to install Composer, which is a dependency manager for PHP,   into Ubuntu OS in a proper way. Step 1: Before installing Composer for Laravel you have to install PHP and other packages. For this First follow this tutorial in the below link.  How to install PHP and other php libraries into Ubuntu OS Step 2: Run the following command to install Composer curl -sS https://getcomposer.org/installer | php Step 3:  Now move composer.phar file to bin directory sudo mv composer.phar /usr/local/bin/composer Step 4:  Now give permission to the composer folder to execute composer.phar file sudo chmod +x /usr/local/bin/composer Step 4:  Now check the installed composer version composer -v

How to install PHP and other php libraries into Ubuntu for Laravel

How to install PHP and other PHP libraries into Ubuntu for Laravel In this tutorial, I am going to show you how to install PHP libraries manually for Laravel. Step 1:   Run the following command to update apt-get itself. sudo apt-get update Step 2:   Next, install software-properties-common, which adds management for additional software sources: The -y flag will automatically agree to the installation. Without that, you would receive a prompt in your terminal window for each installation. sudo apt -y install software-properties-common Step 3:   Next, install the repository ppa:ondrej/php, which will give you all your versions of PHP: sudo add-apt-repository ppa:ondrej/php Step 4:   Finally, you update apt-get again so your package manager can see the newly listed packages: sudo apt-get update Step 5:   Now you’re ready to install PHP 7.4 using the following command: sudo apt -y install php7.4 Step 6:   Check the version installed: php -v Step 7:  ...

How to create a droplet inside Digital Ocean

Image
How to create a droplet inside Digital Ocean Digital Ocean Droplets are Linux-based virtual machines where we can install different types of Linux-based operation systems with the help of cloud-based infrastructure. In this tutorial, we will learn how to create a droplet and install an Ubuntu OS inside it. For example, I am going to install Ubuntu OS 22.04. Step 1: Create a project inside the Digital Ocean admin panel and inside the project press the create droplet button. Step 2:  Now choose step by step Region, OS Image, Version, Droplet Type, CPU options, configurations, Authentication Method, set password, quantity, set  hostname and finally press Create Droplet Button. Step 3: Now Droplet has been created. Click to show details droplet information. Step 4: To access the droplet click on access console form right ... menu, then launch the droplet console. Console will open asking for resetting password. Set new password and done. Step 5:  Set a ne...

How to install and configure MySQL server inside Ubuntu

Image
Install and configure MySQL into Ubuntu In this tutorial, I am going to show you how to install and configure MySQL server inside Ubuntu OS. Besides, you will learn how to access MySQL server data from outside the server with the help of the MySQL client application. Here I am using a newly created clean Digital Ocean Droplet inside install Ubuntu 22.04 OS. Step 1: Open the droplet console and run these commands inside the console, press yes, then keep the local version, ok and finally restart the server. sudo apt update && sudo apt upgrade sudo reboot Step 2: Install MySQL server with the following command and follow instructions sudo apt install mysql-server Step 3: Now check Mysql server is wokring properly or not with this command systemctl status mysql --no-pager -l Step 4: Enter inside mysql form console with root access. Here user root and default password is password sudo mysql -u root -p Step 5: Update mysql root password with following command ALTER USER 'root...