Linux Resources
- Home
- Linux Resources
This article covers how to Install phpMyAdmin with Nginx on Ubuntu 18.04 system. When developing a website or web application, many users need the functionality of a database system like MySQL. However, interacting with the system solely from the MySQL command-line client requires familiarity with Structured Query Language — more commonly referred to as SQL — which can present a major hurdle for some users. phpMyAdmin was created to allow users to interact with MySQL through an intuitive web interface, running alongside a PHP development environment.
How to Secure phpMyAdmin with Let's Encrypt SSL ?
Before starting, you will need to install the Certbot client to download and install Let's Encrypt SSL.
1. First, add the Certbot repository with the following command:
$ add-apt-repository ppa:ahasenack/certbot-tlssni01-1875471
2. Next, update the repository and install the Certbot client using the following command:
$ apt-get update -y
$ apt-get install certbot python3-certbot-nginx -y
3. Once the Certbot has been installed, run the following command to download and install the Let's Encrypt SSL for your domain:
$ certbot --nginx -d phpmyadmin.domain.com
This article covers how to install LAMP stack on CentOS 7. LAMP is a stack of applications that work together on a web server to host a website. With that being said, each individual program serves a different purpose.
In LAMP:
To install Apache easily using CentOS's package manager, yum:
1. Run the command.
$ sudo yum install httpd
2. Once it installs, you can start Apache on your server.
$ sudo systemctl start httpd.service
3. You can do a spot check right away to verify that everything went as planned by visiting your server's public IP address in your web browser.
http://your_server_IP_address/
Important PHP Modules:
This article covers how to check OS version using different methods. You can get more information of Ubuntu releases at official site of the Ubuntu Releases.
If you are using Ubuntu 16.04 then you can Upgrade using this guide Upgrade Ubuntu 16.04 to Ubuntu 18.04 LTS.
Ubuntu is a free, open-source Linux-based operating system, which has a long list of release versions. Finding out which Ubuntu version is running on your system can be important when troubleshooting issues or searching for installation guides.
To check the Ubuntu version, use the following command in terminal:
$ lsb_release -a
This will display you some details about your distribution including Ubuntu version:
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
This article covers how to Remove Files and Directories Using Linux Command.
The procedure to remove all files from a directory:
This article covers how to use of shutdown command in Linux with different arguments. Learn more by visit the shutdown man page.
On Unix-like operating systems, the shutdown command shuts down or reboots the system.
The shutdown command brings the system down in a secure way. All logged-in users are notified that the system is going down, and login operations are blocked. It is possible to shut the system down immediately, or after a specified delay.
All processes are first notified that the system is going down by the signal SIGTERM. This gives programs like vi time to save the file being edited, mail and news processing programs a chance to exit cleanly, etc.
Good Linux commands:
This article covers different wget command for different operations along with options. Wget is a command line utility in linux to download files from the internet. It provides many features such as downloading multiple files, resuming stopped downloads, limiting the bandwidth, downloading in the background and can be used for taking mirrors of the site. Wget supports HTTP, HTTPS and FTP protocol to connect server and download files.
You can learn more about Wget visit the GNU wget Manual page.
How to Install wget on Ubuntu | Debian ?
If your operating system is Ubuntu, or another Debian-based Linux distribution which uses APT for package management, you can install wget with apt-get:
$ sudo apt-get install wget