Linux Resources
- Home
- Linux Resources
This article covers how to install LAMP stack on Rocky Linux 8.4. You can now proceed to test or host your website and applications. A LAMP stack is a group of open-source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP.
How to Install and configure Apache Web Server ?
1. First, we will start by installing the Apache web server. To complete the installation, use the following command:
$ yum install httpd httpd-tools
2. Once the installation is complete, enable Apache (to start automatically upon system boot), start the web server and verify the status using the commands below:
$ systemctl enable httpd
$ systemctl start httpd
$ systemctl status httpd
3. To make your pages available to public, you will have to edit your firewall rules to allow HTTP and HTTPS requests on your web server by using the following commands:
$ firewall-cmd --permanent --zone=public --add-service=http
$ firewall-cmd --permanent --zone=public --add-service=https
$ firewall-cmd --reload
4. Verify that the web server is running and accessible by accessing your server’s IP address:
$ echo "Hello there, Apache webserver is now running" > /var/www/html/index.html
5. And restart tht Web Server to reflect the changes made:
$ systemctl restart httpd
From your browser,
http://IP_address
How to Install PHP on CentOS ?
1. To install PHP on your RHEL 8 use the command below:
$ yum install -y php-mysqlnd php-dom php-simplexml php-xml php-xmlreader php-curl php-exif php-ftp php-gd php-iconv php-json php-mbstring php-posix php-sockets php-tokenizer
2. Now restart your web server so that Apache knows that it will be serving PHP requests as well:
$ systemctl restart httpd
This article covers how you can easily install the GIMP image editor on your CentOS system. GIMP is the acronym for GNU Image Manipulation Program. It is free and open source raster graphics editor used for image retouching and editing, free form drawing, converting between image formats and many more tasks. It is released under GPL3 license and is available for Linux, Microsoft Windows and MacOS.
How to Install and use Gimp graphical editor on Linux?
You can install gimp package by using the dnf command:
# dnf install gimp
You can Start Gimp graphical editor from your menu or by executing the following command:
$ gimp
This article covers the different ways you can easily find out the interface link speed of any specific interface in Linux Mint 20. IP command is similar to ifconfig, which is used for assigning Static IP Address, Route & Default Gateway, and so on.
Also the ethtool command is used to query or control network driver and hardware settings:
# ethtool eth0
This article covers how to get the geographical information of a Linux server via the command line. IP addresses provide an easy way to track the location of the server in the world by using two useful APIs provided by ipinfo.io and ipvigilante.com to get the city, state, and country connected with a server.
To get the IP address geographic location of the server, we need to install curl command line downloader and jq command-line tool to process the JSON data from the geolocation APIs:
$ sudo apt install curl jq #Ubuntu/Debian
$ sudo yum install curl jq #CentOS/RHEL
$ sudo dnf install curl jq #Fedora 22+
$ sudo zypper install curl jq #openSUSE
To get the server's public IP address, use the following curl command to make an API request to ipinfo.io in your terminal:
$ curl https://ipinfo.io/ip
This article covers the best methods to organize your directories in your Linux Mint system. Keeping an organized file system brings merit not only to system administrators, but regular users can also benefit from it.
To rename a directory on Linux, use the "mv" command and specify the directory to be renamed as well as the destination for your directory. To rename this directory, you would use the "mv" command and specify the two directory names.
This article covers how to install and configure OpenLiteSpeed webserver. OpenLiteSpeed is an easy-to-use, open-source web server. It offers unbeatable features and performance to your sites along with top-notch security. Also, it understands all the apache rewrite rules and has intelligent cache acceleration features that let you implement the fastest caching on your server. Apart from all these, you get to install a customized PHP processor that is optimized for the OpenLiteSpeed server.
OpenLiteSpeed server's Frontend (default page) is located at:
http://<your-server-public-IP>:8088
It's backend (admin console) is located at:
https://<your-server-public-IP>:7080