×

Configure WordPress on Ubuntu Server with Apache - Step by step process to do it ?

This article covers setup WordPress — including Apache, MySQL, and PHP, on the Ubuntu Linux server. WordPress is the most popular CMS (content management system) on the internet. It allows you to easily set up flexible blogs and websites on top of a MySQL backend with PHP processing. WordPress has seen incredible adoption and is a great choice for getting a website up and running quickly. After setup, almost all administration can be done through the web frontend.


How to install PHP Extensions on Ubuntu?

1. You can download and install some of the most popular PHP extensions for use with WordPress by executing the commands:

$ sudo apt update
$ sudo apt install php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip

2. Then restart Apache to load these new extensions in the next section. 

If you are returning here to install additional plugins, you can restart Apache now by running:

$ sudo systemctl restart apache2


To install WordPress on Ubuntu:

1. Change into a writable directory and then download the compressed release by typing:

$ cd /tmp
$ curl -O https://wordpress.org/latest.tar.gz

2. Extract the compressed file to create the WordPress directory structure:

$ tar xzvf latest.tar.gz

3. Add a dummy .htaccess file so that this will be available for WordPress to use later.

Create the file by typing:

$ touch /tmp/wordpress/.htaccess

4. Copy over the sample configuration file to the filename that WordPress actually reads:

$ cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php

5. Create the upgrade directory, so that WordPress won't run into permissions issues when trying to do this on its own following an update to its software:

$ mkdir /tmp/wordpress/wp-content/upgrade

6. Copy the entire contents of the directory into our document root:

$ sudo cp -a /tmp/wordpress/. /var/www/wordpress


Change Host Name on Ubuntu 20.04 - How to perform this task ?

This article covers both the CLI and GUI based methods of changing the hostname on Ubuntu 20.04. 

To change the hostname on Ubuntu Linux:

1. Type the following command to edit /etc/hostname using nano or vi text editor: $ sudo nano /etc/hostname. Delete the old name and setup new name.

2. Next Edit the /etc/hosts file: sudo nano /etc/hosts.

3. Reboot the system to changes take effect: sudo reboot.


To change the hostname on Ubuntu:

1. To change the hostname invoke the hostnamectl command with the set-hostname argument followed by the new hostname. 

2. Only the root or a user with sudo privileges can change the system hostname. 

3. The hostnamectl command does not produce output.


To change the localhost hostname (static name in the hostname file)?

1. You can also set the static hostname manually by editing /etc/hostname

2. This file contains exactly one line by default. 

3. If you have not changed the hostname yet, then that line probably reads localhost. localdomain .


To display the current Ubuntu hostname:

Simply type the following command:

$ hostnamectl


To change Ubuntu LTS hostname permanently:

1. Type the hostnamectl command :

$ sudo hostnamectl set-hostname newNameHere

2. Delete the old name and setup new name.

3. Next Edit the /etc/hosts file:

$ sudo nano /etc/hosts

Replace any occurrence of the existing computer name with your new one.

4. Reboot the system to changes take effect:

$ sudo reboot


To change hostname on Ubuntu without a system restart:

1. Let us see current setting just type the following command:

$ hostnamectl

2. Next change hostname from localhost to linuxapt, enter:

$ hostnamectl set-hostname linuxapt

3. Verify new changes:

$ hostnamectl


Install Nginx on Ubuntu 20.04 - Step by Step process to implement it ?

This article covers how to install Nginx on the Ubuntu system. Also, you will learn how to configure the firewall and manage Nginx services. 

Finally, you will see how to uninstall Nginx in case you no longer need it in your system.

Nginx is a free, open-source Linux application for web servers. It works as a reverse proxy server by directing web traffic to specific servers.

Also, Nginx is used for security and load-balancing, but can also function independently as a web server.


To Install Nginx From Ubuntu Repositories:

1. Update Software Repositories

It is important to refresh the repository lists before installing new software. This helps make sure that the latest updates and patches are installed.

Open a terminal window and enter the following:

$ sudo apt-get update

2. Nginx is included in the Ubuntu 20.04 default repositories. Install it by entering the following command:

$ sudo apt-get install nginx


How to manage Nginx on Ubuntu ?

The behavior of Nginx can be adjusted. Use this to start or stop Nginx, or to enable or disable Nginx at boot.

Start by checking the status of the Nginx service:

$ sudo systemctl status nginx

If the status displays active (running), Nginx has already been started. 

Press CTRL+z to exit the status display.

If Nginx is not running, use the following command to launch the Nginx service:

$ sudo systemctl start nginx

To set Nginx to load when the system starts, enter the following:

$ sudo systemctl enable nginx

To stop the Nginx service, enter the following:

$ sudo systemctl stop nginx

To prevent Nginx from loading when the system boots:

$ sudo systemctl disable nginx

To reload the Nginx service (used to apply configuration changes):

$ sudo systemctl reload nginx

For a hard restart of Nginx:

$ sudo systemctl restart nginx

To Test the Configuration

$ sudo nginx –t

The system should report that the configuration file syntax is OK, and that the configuration file test is successful.


Assign Multiple IP Addresses to Single NIC in Linux Mint 20 - How to Do it ?

This article covers how to assign multiple IP addresses to a single interface in Mint OS. By following our guide carefully, you can either assign the IP address temporarily or permanently to your network interface.

NIC stands for network interface controller or network interface (controller) card. WNIC is wireless network interface controller or wireless network interface (controller) card. IP Addresses belong to network interfaces, not to the computer itself.


To Restart network service using command:

# systemctl restart network

To Verify the new IP address using command:

# ip addr


How configure multiple IP address in CentOS ?

Now, in order to add additional IP addresses you'll need to edit the configuration file (from hereon called “config file”) for this specific interface. On CentOS 7, the interface config files are located in /etc/sysconfig/network-scripts/ and they are all prefixed with ifcfg-.


How remove secondary IP address Linux?

To add or remove additional IP adresses and keep the configuration persistent, we need to Edit the corresponding /etc/sysconfig/network-scripts/ifcfg-eth[x] configuration file and add/remove as many additional IPADDR[n] and PREFIX[n] entries as additional IP addresses are required.


To configure a static IP address on CentOS  / RHEL :

1. Create a file named /etc/sysconfig/network-scripts/ifcfg-eth0 as follows:

DEVICE=eth0.

BOOTPROTO=none.

ONBOOT=yes.

PREFIX=24.

IPADDR=your_ip_address

2. Restart network service: systemctl restart network.


How do I login as a different user in Linux?

To change to a different user and create a session as if the other user had logged in from a command prompt, type "su -" followed by a space and the target user's username. Type the target user's password when prompted.


What is Nmcli in Linux?

nmcli is a command-line tool which is used for controlling NetworkManager. nmcli commnad can also be used to display network device status, create, edit, activate/deactivate, and delete network connections. Typical Uses: Scripts: Instead of manually managing the network connections it utilize NetworkMaager via nmcli.


Difference between the output of ifconfig and ipconfig:

Functionality: The ipconfig command displays all the currently connected network interfaces whether they are active or not. 

On the other hand, the ifconfig command displays only the enabled network interfaces that are connected to the system.


Process to configure an NTP server and client on Ubuntu 20.04 LTS ?

This article will guide you on how to configure the NTP server on the #Ubuntu machine and then sync a clock of NTP client machine. Now you can easily set up NTP server and connect multiple client machines with it for time synchronization.

The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks.

NTP is intended to synchronize all participating computers to within a few milliseconds of Coordinated Universal Time (UTC).


How do I start #NTP on Linux?

In order to add command line options to the ntpd service (/etc/init. d/ntpd), one has to edit /etc/sysconfig/ntpd file and add the desired option to the OPTIONS variable, and restart the service via 'service ntpd restart'.


What port does NTP use?

NTP time servers work within the TCP/IP suite and rely on User Datagram Protocol (UDP) port 123. NTP servers are normally dedicated NTP devices that use a single time reference to which they can synchronize a network. 

This time reference is most often a Coordinated Universal Time (UTC) source.


To Sync NTP client with server via command line:

1. Edit the /etc/ntp.

2. Search for the lines beginning server .

3. Replace the server entries with the IP address or hostname of the NTP server or servers with which you want to synchronize.

4. Save the file.

5. Configure the NTP client service to start at run level 3 when the appliance boots.


Modify the Date, Time, and Timezone in Ubuntu 20.04 LTS - How to do it ?

This article will guide you on the different methods to modify the date, time, and Timezone of your #Ubuntu 20.04 system. 

However, if you have attempted to change these entities just for the sake of demonstration, then it is highly recommended to activate the #NTP Service again once you are done so that your system can again synchronize itself with NIST atomic clock. 

This can be done by running the “timedatectl set-ntp yes” command.

To change the time zone in Linux systems use the sudo timedatectl set-timezone command followed by the long name of the time zone you want to set.


To change the hostname in #Linux:

1. Type the following command to edit /etc/hostname using nano or vi text editor: sudo nano /etc/hostname. Delete the old name and setup new name.

2. Next Edit the /etc/hosts file: sudo nano /etc/hosts.

3. Reboot the system to changes take effect: sudo reboot.


#NTP server sync date and time in Linux by:

i. On the Linux machine, log in as root.

ii. Run the ntpdate -u <ntpserver> command to update the machine clock. For example, ntpdate -u ntp-time.

iii. Open the /etc/ntp. conf file and add the NTP servers used in your environment.

iv. Run the service ntpd start command to start the NTP service and implement you configuration changes.


Assign Multiple IP Addresses to Single NIC in Ubuntu 20.04 LTS - How to do it ?

This article will guide you on how to assign multiple IP addresses to a single NIC in Ubuntu OS. Now you can allocate multiple IP addresses to a single NIC.

To change your IP address on #Linux, use the "ifconfig" command followed by the name of your network interface and the new IP #address to be changed on your computer. 

To assign the subnet mask, you can either add a "netmask" clause followed by the subnet mask or use the CIDR notation directly.

The ifconfig command can be used from the #command line either to assign an address to a #network interface or to configure or display the current network interface configuration information. 

The ifconfig command must be used at system startup to define the network address of each interface present on a machine.


To determine my IP address in Linux :

1. ifconfig -a.

2. ip addr (ip a).

3. hostname -I | awk '{print $1}'.

4. ip route get 1.2.

5. nmcli -p device show.


To add secondary IP address permanently on Ubuntu system, just edit /etc/network/interfaces file and add the requires IP details. 

Verify the newly added IP address. # ifconfig eth0


Step by Step process to install and configure Zabbix monitoring server on Ubuntu ?

This article will guide you on how to install and configure the Zabbix server on #Linux. You have also learned how to install and configure the Zabbix agent on the Zabbix server and the client #machines. Now you can easily keep track of the servers and monitor their health.

Zabbix server is the central process of #Zabbix software. The server performs the polling and trapping of data, it calculates triggers, sends notifications to users.

The server can itself remotely check networked services (such as web servers and mail servers) using simple service checks.

You can now start the Zabbix server and agent by running the commands:

sudo systemctl start zabbix-server.

sudo systemctl start zabbix-agent.


Steps by step process to install VLC media player on Ubuntu 20.04 LTS ?

This article will guide you on different installation methods for the VLC. We have also seen how we can uninstall this streaming #software from the system when it is not needed.

VLC Media Player is one of the most well known and arguably best media players available for any platform, including Windows. #VLC can also help you convert video files from one format to another, save YouTube videos for offline playback, and record your own videos using your webcam.

Using #Linux #Terminal to Install VLC in #Ubuntu:

1. Click on Show Applications.

2. Search for and launch Terminal.

3. Type the command: sudo snap install VLC .

4. Provide the sudo password for authentication.

VLC will be downloaded and installed automatically.


Methods to safely shutdown Ubuntu 20.04 LTS ?

This article will guide you on how to easily shut down your #Ubuntu 20.04 system. Here you will learn different methods will eventually cause your Ubuntu 20.04 #system to shut down.

There's nothing different in running sudo #reboot in a instance versus on your own server. This action shouldn't cause any problems. I believe the author was worried if the disk is persistent or not. Yes you can shutdown/start/reboot the instance and your data will persist.

If your system fails to boot for whatever reason, it may be useful to boot it into recovery mode. This mode just loads some basic services and drops you into command line mode. You are then logged in as root (the superuser) and can repair your system using command line tools.

To remove all #files from a directory in #Linux:

1. Open the terminal #application.

2. To delete everything in a #directory run: rm /path/to/dir/*

3. To remove all sub-directories and files: rm -r /path/to/dir/*


Steps to Install Webmin on Ubuntu 20.04 LTS ?

This article will guide you on the steps to install #Webmin in your Linux system. Webmin comes with a very simple webserver called miniserv.pl that is capable of doing all that is necessary for Webmin to run. However, it is not as fast or memory efficient as a well-developed server such as #Apache.

To modify the default port, 10000 to 10101, open the /etc/webmin/miniserv. conf file and modify line 1 and 16. Now you can access the Webmin through url with new custom port.

To Install Webmin on #Ubuntu:

1. Log in to your Ubuntu #server.

2. Issue the command sudo nano /etc/apt/sources. list.

3. Hit [CTRL][x] and save the file.

4. Add the downloaded key with the command sudo apt-key add jcameron-key. asc.

5. Update apt with the command sudo apt-get update.

6. Install Webmin with the command sudo apt-get install webmin.


Steps to install Google Chrome in Ubuntu 20.04 LTS ?

This article will guide you on the different methods to #install #Google #Chrome on #Ubuntu 20.04 system using two different ways using the command line and graphical methods. We have executed different commands on the terminal for the installation.

To Install Google Chrome on Ubuntu Graphically:

1. Click on Download Chrome.

2. Download the DEB file.

3. Save the DEB file on your #computer.

4. Double click on the downloaded DEB file.

5. Click Install button.

6. Right click on the deb file to select and open with Software Install.

7. Google Chrome installation finished.


Steps to Install Samba on Ubuntu 20.04 and share files on Linux and Windows

This article will guide you on steps to #install #Samba in #Ubuntu 20.04 Linux system. We have executed all #commands and set of procedures on Ubuntu 20.04 LTS system and Windows 10. Also, We have implemented how to share folders via a local #network using Samba shares. Enjoy the benefits of Samba on your #system.

To Set up the Samba File Server on Ubuntu / #Linux:

1. Open the terminal.

2. Install samba with the following command: sudo apt-get install samba smbfs.

3. Configure samba typing: vi /etc/samba/smb.conf.

4. Set your workgroup (if necesary).

5. Set your #share folders.

6. Restart samba.

7. Create the share #folder: sudo mkdir /your-share-folder.


How to block or unblock ping requests on Ubuntu Server 20.04 LTS ?

This article will guide you on steps to block or unblock #ping requests on #Ubuntu Server 20.04 LTS. Also you will learn how to unblock the ping requests in case you need to use ping for system administration and troubleshooting.

To block #ping requests in #Linux:

You can implement blocking ICMP messages in your Linux system by adding the below #kernel variable that will drop all ping packets. In order to make the above rule permanent, append following line to /etc/sysctl. conf file and, subsequently, apply the rule with sysctl command.


How to modify font type, size, and color of Ubuntu 20.04 LTS terminal ?

This article will guide you on different methods to modify font type, size, and color of #Ubuntu 20.04.

Ubuntu Mono from the Ubuntu Font Family (font.ubuntu.com) is the default GUI monospace terminal font on Ubuntu 11.10 (Oneiric Ocelot).

GNU Unifont (unifoundry.com) is the default font for the CD #bootloader menu, #GRUB bootloader, and alternate (text-based) installer where a software framebuffer is in use. 

To change text color in Ubuntu #terminal: 

1. Open your terminal and right-click inside it.

2. Select profile and profile preferences. 3. Go to colour header button.

4. Unmark user colours of system theme.

5. Select any colour you would like in the text or background and named your choice.

6. In addition You can also add an image onto your terminal as background.


MySQL on Ubuntu 20.04 LTS - How to Install and Configure ?

This article will guide you on how to install and configure #MySQL server on the #Linux system Ubuntu 20.04 in this article. Also, we have explored different basic commands to run MySQL server. MySQL is a relational #database that uses SQL to query a database. It facilitates data storing, modifying, and management in a tabular format. To install the latest version of MySQL in #ubuntu: 1. Enable MySQL #Repositories. 2. Install MySQL Repositories. 3. Refresh the Repositories. 4. Install MySQL. 5. Set up MySQL Security. 6. Start, Stop, or Check Status of MySQL Service. 7. Launch MySQL to Enter #Commands.


Install latest LibreOffice on Ubuntu 20.04 LTS - Different methods to do it ?

This article will guide you on different methods to have the latest version of #LibreOffice installed on your #Ubuntu 20.04 system. To #install LibreOffice Ubuntu 20.04 step by step instructions: 1. Use the top left Activities menu to open the #Software application. 2. Search for LibreOffice software. 3. Click the Install button to begin the LibreOffice installation. 4. Enter your username and password. 5. Start the LibreOffice #application.


Different methods to create and run a Shell script on Ubuntu 20.04 LTS ?

This article will guide you on different methods of creating and running a #shell #script in #Ubuntu 20.04. Shell Scripting is an open-source #computer program designed to be run by the #Unix / #Linux shell. Shell Scripting is a program to write a series of commands for the shell to execute. To write and execute a script: 1. Open the #terminal. Go to the directory where you want to create your script. 2. Create a file with . sh extension. 3. Write the script in the file using an editor. 4. Make the script executable with command chmod +x . 5. Run the script using ./.


Steps to Install GCC on Ubuntu 20.04 LTS ?

This article will guide you on the steps to install #GCC on Ubuntu 20.04. Also you will learn the method of running a basic C program by making use of this #compiler. To install GCC on #Ubuntu: 1. Start by updating the packages list: sudo apt update. 2. Install the build-essential package by typing: sudo apt install build-essential. 3. To validate that the GCC compiler is successfully installed, use the gcc --version command which prints the GCC version: gcc --version.


Install and Configure VNC on Ubuntu 20.04 - Steps to do it.

This article will guide you on the steps to set up a secured VNC server up and running on your Ubuntu 20.04 server. This will help you to manage your files, software, and settings with a user-friendly graphical interface, and you will be able to run graphical software like web browsers remotely.


Process to save terminal output to a file under Linux

This extract will guide you on how to save terminal output to a file when using Linux or Unix-like operating system with modern shell such as Bash or KSH including POSIX syntax.


Complete guide on how to modify Hostname on Ubuntu 20.04

This article will guide you on how to change your Ubuntu server hostname without restarting the system.