Linux Resources
- Home
- Linux Resources
This article covers how to Install phpMyAdmin with Apache on CentOS 7 system. phpMyAdmin is a database utility used for managing MySQL databases through a graphical web-based interface. It can be configured to manage a local database (on the same system), or a remote database (over a network).
To Install EPEL Repository:
1. Get access to the EPEL repository – the Extra Packages for Enterprise Linux, by running the command.
$ sudo yum install -y epel-release
2. Once that operation finishes, it's a good idea to refresh and update the EPEL repository.
$ sudo yum –y update
To Install Apache Web Server:
1. Install Apache on CentOS use the command.
$ yum install httpd -y
2. Verify the status of Apache by running with the command.
$ systemctl status httpd
To install PHPMyAdmin on CentOS, enter the command:
$ sudo yum -y install phpmyadmin
This article covers how to install certbot client, obtain Let's Encrypt SSL certificate and configured to Nginx to use the certificates. Also you will learn how to set up a cronjob for automatic certificate renewal.
To install the Certbot software on Debian:
1. Update your package list.
$ sudo apt update
2. Next, install the dependencies for the python3-certbot-nginx package, which include the python3-acme, python3-certbot, python3-mock, python3-openssl, python3-pkg-resources, python3-pyparsing, and python3-zope.interface packages.
$ sudo apt install python3-acme python3-certbot python3-mock python3-openssl python3-pkg-resources python3-pyparsing python3-zope.interface
3. Finally, install the python3-certbot-nginx package:
$ sudo apt install python3-certbot-nginx
This article covers how to create an Nginx server blocks to host multiple website on a single Debian machine. Nginx is a very popular high-performance web server that combines the power of reverse proxying, load balancing, caching and so much more. Depending on how it is configured, it can act as a reverse proxy as well as a load balancer for HTTP/HTTPS servers.
To install Nginx on Debian:
1. Update the Debian 10 Package Repository.
$ sudo apt update -y
2. Install Nginx on Debian 10.
$ sudo apt install nginx -y
3. To check the status of Nginx, execute:
$ systemctl status nginx
This article covers how to install Nginx on your Debian 9 server. Now you can deploy your applications and use Nginx as a web or proxy server. Nginx is more resource-friendly than Apache in most cases and can be used as a web server or reverse proxy.
To install Nginx on Debian:
1. Update our local package index so that we have access to the most recent package listings:
$ sudo apt update
2. We can now install nginx:
$ sudo apt install nginx
When prompted to confirm the installation, hit Enter to proceed. After that, apt will install Nginx and any required dependencies to your server.
Profiles available for Nginx:
This article covers how to install phpMyAdmin with Apache on Ubuntu 18.04 system. While many users need the functionality of a database management system like MySQL, they may not feel comfortable interacting with the system solely from the MySQL prompt. phpMyAdmin was created so that users can interact with MySQL through a web interface.
Important php packages includes:
This article covers how to use the certbot Let’s Encrypt client to obtain a free SSL certificate and use it with Nginx on CentOS 7.
Let's Encrypt is a new Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps.
Currently, the entire process of obtaining and installing a certificate is fully automated on both Apache and Nginx web servers.
To Install the Certbot Let's Encrypt Client:
1. Enable access to the EPEL repository on your server by typing:
$ sudo yum install epel-release
2. Once the repository has been enabled, you can obtain the certbot-nginx package by typing:
$ sudo yum install certbot-nginx
How to Install Nginx on CentOS ?
1. To install Nginx, run the command:
$ sudo yum install nginx
2. Then, start Nginx using systemctl:
$ sudo systemctl start nginx
How to configure firewall on CentOS ?
If you have a firewall enabled, make sure port 80 and 443 are open to incoming traffic.
1. If you have a firewalld firewall running, you can open these ports by typing:
$ sudo firewall-cmd --add-service=http
$ sudo firewall-cmd --add-service=https
$ sudo firewall-cmd --runtime-to-permanent
2. If have an iptables firewall running, the commands you need to run are highly dependent on your current rule set. For a basic rule set, you can add HTTP and HTTPS access by typing:
$ sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
$ sudo iptables -I INPUT -p tcp -m tcp --dport 443 -j ACCEPT