Linux Resources
- Home
- Linux Resources
This article covers how to install XAMPP on your CentOS system. XAMPP is an easy to install and use Apache distribution packaged with MariaDB, PHP, and Perl.
XAMPP was first developed by a project team called Apache Friends. As an open-source Apache distribution of a PHP development environment, it consists of cross-platform software (X): Apache (A), MariaDB (M), PHP (P) and Perl (P).
To install XAMPP on CentOS 8 Linux system:
1. Update system
Ensure your CentOS system is updated.
$ sudo dnf -y update
$ sudo dnf -y install libnsl
2. Download XAMPP on CentOS 8
Install wget on CentOS 8:
$ sudo dnf -y install wget
Download XAMPP installer. Choose the installer matching the PHP version you want to have.
### PHP 8.0 ###
$ wget https://www.apachefriends.org/xampp-files/8.0.1/xampp-linux-x64-8.0.1-0-installer.run
### PHP 7.4 ###
$ wget https://www.apachefriends.org/xampp-files/7.4.14/xampp-linux-x64-7.4.14-0-installer.run
### PHP 7.3 ###
$ wget https://www.apachefriends.org/xampp-files/7.3.26/xampp-linux-x64-7.3.26-0-installer.run
3. The binary installer should be executable.
### PHP 8.0 ###
$ chmod a+x xampp-linux-x64-8.0.1-0-installer.run
### PHP 7.4 ###
$ chmod a+x xampp-linux-x64-7.4.14-0-installer.run
### PHP 7.3 ###
$ chmod a+x xampp-linux-x64-7.3.26-0-installer.run
4. Then run the XAMP installer:
### PHP 8.0 ###
$ sudo ./xampp-linux-x64-8.0.1-0-installer.run
### PHP 7.4 ###
$ sudo ./xampp-linux-x64-7.4.14-0-installer.run
### PHP 7.3 ###
$ sudo ./xampp-linux-x64-7.3.26-0-installer.run
How to Start and use XAMPP on CentOS 8:
XAMPP is installed to /opt/lampp/. To start XAMPP services, run:
$ sudo /opt/lampp/lampp start
To verify installation of XAMPP on CentOS 8 visit the Apache web page:
http://localhost
Stopping and Uninstalling XAMPP on CentOS 8:
To stop XAMPP services run:
$ sudo /opt/lampp/lampp stop
To uninstall XAMPP on CentOS 8, run:
$ cd /opt/lampp
$ sudo ./uninstall
$ sudo rm-rf /opt/lampp
This article covers how to install TeamViewer on Debian 10. TeamViewer is a cross-platform application that can be used for remote control, desktop sharing, online meetings, and file transfer between computers.
To install TeamViewer on Debian:
TeamViewer is proprietary computer software, and it is not included in the default Debian repositories.
TeamViewer maintains its own APT repository from which we’ll install the package, and update it when a new version is available.
1. Download TeamViewer
Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon.
Use wget to download the latest TeamViewer .deb package:
$ wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
2. Install TeamViewer
Install the downloaded .deb package by typing the following command:
$ sudo apt install ./teamviewer_amd64.deb
When prompted Do you want to continue? [Y/n], type Y to continue the installation.
This article covers how to install and configure a Git server on Ubuntu. Git is basically a Version control system which allows you to keep track of your software at the source level. With Git, You can easily track changes, revert to previous stages, and branch to create alternate versions of files and directories.
To install Git on Ubuntu Server:
1. Run the following commands as sudo user:
$ sudo apt update && sudo apt install git
2. To install the git package on CentOS servers type:
$ sudo yum install git
3. Next, create a new user that will manage the Git repositories:
$ sudo useradd -r -m -U -d /home/git -s /bin/bash git
The user home directory is set to /home/git.
All the repositories will be stored under this directory.
This article covers how to install Go on your Ubuntu 20.04 machine. Now you can start programming Go language. Go is a popular programming language created by Google.
Many modern applications such as Docker, Kubernetes, and Caddy are written in Go.
To install Go on Ubuntu:
1. Use curl or wget to download the current binary for Go from the official download page. As of this writing, the current version is 1.12.9.
Check the download page for updates, and replace 1.12.9 with the most recent stable version if necessary:
$ curl -O https://storage.googleapis.com/golang/go1.12.9.linux-amd64.tar.gz
Verify the .tar file using sha256sum:
$ sha256sum go1.12.9.linux-amd64.tar.gz
3. Extract the tarball:
$ tar -xvf go1.12.9.linux-amd64.tar.gz
4. Adjust the permissions and move the go directory to /usr/local:
$ sudo chown -R root:root ./go
$ sudo mv go /usr/local
This article covers how you can install Memcached on Ubuntu 20.04. Memcached has proved to be a very reliable caching system since its inception in 2003 and continues to be a favorite among developers in speeding up web applications.
Memcached is a high-performance, distributed memory object caching server. It is free and open source software intended for use in speeding up dynamic web applications by mitigating database load.
To install and configure memcached on Ubuntu:
1. Update your Ubuntu server:
$ sudo apt update
$ sudo apt upgrade
2. Install memcached server on Ubuntu:
Run apt command as follows:
$ sudo apt install memcached
3. Configure memcached server:
Edit config file named /etc/memcached.conf using a text editor such as nano command or vim command:
$ sudo nano /etc/memcached.conf
OR
$ sudo vi /etc/memcached.conf
How to restart, stop, reload memcached server on Ubuntu:
To Stop service - $ sudo systemctl stop memcached
To start Service - $ sudo systemctl start memcached
To restart Service - $ sudo systemctl restart memcached
To check the status - $ sudo systemctl status memcached
This article covers method to Install and Use Firewalld in CentOS in order to increase the security of your Linux system. Note that the host-based firewall like firewalld is recommended by compliances like PCI DSS.
FirewallD is a complete firewall solution that manages the system's iptables rules and provides a D-Bus interface for operating on them. Starting with CentOS 7, FirewallD replaces iptables as the default firewall management tool.
Firewalld services are predefined rules that apply within a zone and define the necessary settings to allow incoming traffic for a specific service.
How to install Firewalld on CentOS?
Firewalld is installed by default on CentOS 7, but if it is not installed on your system, you can install the package by running the command:
$ sudo yum install firewalld
Firewalld service is disabled by default. You can check the firewall status with:
$ sudo firewall-cmd --state
If you just installed or never activated before, the command will print not running. Otherwise, you will see running.
To start the FirewallD service and enable it on boot type:
$ sudo systemctl start firewalld
$ sudo systemctl enable firewalld
To open HTTP and HTTPS ports add permanent service rules to the dmz zone:
$ sudo firewall-cmd --permanent --zone=dmz --add-service=http
$ sudo firewall-cmd --permanent --zone=dmz --add-service=https
Make the changes effective immediately by reloading the firewall:
$ sudo firewall-cmd --reload
Zones provided by FirewallD:
1. drop: All incoming connections are dropped without any notification. Only outgoing connections are allowed.
2. block: All incoming connections are rejected with an icmp-host-prohibited message for IPv4 and icmp6-adm-prohibited for IPv6n. Only outgoing connections are allowed.
3. public: For use in untrusted public areas. You do not trust other computers on the network, but you can allow selected incoming connections.
4. external: For use on external networks with NAT masquerading enabled when your system acts as a gateway or router. Only selected incoming connections are allowed.
5. internal: For use on internal networks when your system acts as a gateway or router. Other systems on the network are generally trusted. Only selected incoming connections are allowed.
6. dmz: Used for computers located in your demilitarized zone that have limited access to the rest of your network. Only selected incoming connections are allowed.
7. work: Used for work machines. Other computers on the network are generally trusted. Only selected incoming connections are allowed.
8. home: Used for home machines. Other computers on the network are generally trusted. Only selected incoming connections are allowed.
9. trusted: All network connections are accepted. Trust all of the computers in the network.