Explore information related to installation


Set up cPanel on an AWS instance - step by step guide ?


This article covers how to set up cPanel on an AWS instance. In the setup to build cpanel & AWS on AWS EC2 instance, we need to setup a VPC,security group, instance,AWS Route 53 DNS and on AWS infrastructure after that cPanel/WHM installation on the EC2 instance .

Read More



Install DirectAdmin in ec2 - A step by step guide ?


This article covers the steps involved in installing DirectAdmin in EC2. In fact, An EC2 instance is nothing but a virtual private server in Amazon Web Services terminology. It stands for Elastic Compute Cloud server. It is a web service where an AWS subscriber can request and provision a compute server in AWS cloud.

Read More



Webmin "Error code ssl_error_rx_record_too_long" - Fix it Now ?


This article covers how to troubleshoot "Error code ssl_error_rx_record_too_long" in Webmin. Usually the ssl_error_rx_record_too_long error means that the service is not speaking in SSL - for example, if you try to access an http-only service via https. 

Are you sure that webmin is set up to talk in ssl on port :10000?

Read More



'Error InvalidArgumentException wrong file' in Magento 2 - fix it Now ?


This article covers methods to resolve 'Error InvalidArgumentException wrong file' in Magento 2 for our customers. 

You can resolve this error by applying the following changes in your php.ini file.

In your php.ini file increase values of below parameters:

max_execution_time = 18000
max_input_time = 1800
memory_limit = 1024M

Note : Make sure you increase max_input_time value to at least 1800 and it will works.

Read More



Windows Cannot Find Microsoft Software License Terms - Fix it Now ?


This article covers methods to fix Windows error, Cannot Find Microsoft Software License Terms. Basically, this error happens when trying to perform a clean install of Windows Server 2016 on a new Hyper-V virtual machine. A common cause for Windows cannot find the Microsoft license software terms can be your BIOS. Sometimes certain BIOS settings can interfere with your system and prevent Windows from installing.


To fix this Windows issue, users are suggesting entering BIOS and restore the default settings.

This is fairly simple to do, but if you don't know how to do it properly, we advise you to check your motherboard manual for detailed instructions. 

After restoring the default settings, try to install Windows again.


Another method to fix Windows cannot find the Microsoft license software terms message, is to,

Disconnect the installation media during the installation:

Follow the installation steps until you reach the Install Now screen.

Disconnect your installation media and click the Install Now button.

Continue the installation as you would do normally.

Once the setup is ready to start copying files, it will ask you to reconnect your installation media, so be sure to do so.

After you connect the installation media, follow the instructions on the screen to complete the installation.

Read More



Workgroup Failover Cluster without Active Directory in Windows


This article covers how to go about Workgroup Failover Cluster. While Availability Group was a viable replacement for Database Mirroring, there were a couple of blocking issues that prevented customers from upgrading. In older Windows Server versions prior to Windows Server 2016, you could create a failover cluster only between the servers in the same Active Directory domain. The new version allows to create two- (or more) nodes failover cluster between servers joined to different domains, and even between workgroup servers (not AD domain joined) – a so-called Workgroup Cluster.

Read More



Service Not Listed in WMI Wizard in Nagios - Fix it Now ?


This article covers methods to tackle Service Not Listed in WMI Wizard in Nagios. Basically, Service may not get listed in WMI Wizard in Nagios due to reasons like lower value of Truncate Output Length or insufficient permission of the user account. Windows Management Instrumentation (WMI) is a part of Windows operating systems and can provide management data and operational information about those system. WMI can be used to automate administrative tasks on remote Windows-based computers. Nagios Core and Nagios XI are capable of monitoring Windows machines via WMI. .


To Check the permissions of the files, use this command:

ls -ls /tmp/*.state

Here you can see that the root user/group is the owner of the file:

-rw-r--r-- 1 root root 91 Apr 24 16:10 /tmp/cwpss_checkcpu__1025143___.state

The simplest option is to delete the files with this command:

rm -rf /tmp/*.state

Read More



Install Nagios NCPA on Linux and Windows - Step by Step Process ?


This article covers how to Install Nagios NCPA on Linux and Windows. Basically, NCPA simplifies monitoring configurations and maintenance by allowing Nagios to monitor servers using the same agent regardless of platform. NCPA is intended to simplify and universalize agent-based monitoring

across different operating systems.


To monitor Windows Machines you will need to follow several steps and they are:

  • Install NSClient++ addon on the Windows Machine.
  • Configure Nagios Server for monitoring Windows Machine.
  • Add new host and service definitions for Windows machine monitoring.
  • Restart the Nagios Service.


Why do we need Nagios?

Here, are the important reasons to use Nagios monitoring tool: 

  • Detects all types of network or server issues. 
  • Helps you to find the root cause of the problem which allows you to get the permanent solution to the problem. 
  • Active monitoring of your entire infrastructure and business processes.

Read More



Import Config Files From Nagios Core into Nagios XI


This article covers method to Import Config Files From Nagios Core into Nagios XI.

Importing configuration files automates setting up your existing Hosts, Services, Hostgroups, Servicegroups, and Host/Service Templates in your Nagios XI installation.


To Import Configuration Files Into Nagios XI:

1. In CCM expand Tools and select Config File Management. 

2. Click the Write Configs button to create / update the config files on the Nagios XI server. 

3. You can see in the screenshot to the right that the host and service config files were created and the existing hostgroups and commands config files were updated.

Read More



Install Wazuh Server on Ubuntu 20.04 - Step by Step Process ?


This article covers how to go about to install Wazuh Server on Ubuntu 20.04. Wazuh is a free and open source solution for security monitoring.

It monitors hosts at an application and operating system levels and offers  threat detection, incident response, integrity monitoring, and compliance. 


To restart Kibana, Elasticsearch and Wazuh-manager with the below commands:

$ sudo systemctl restart kibana
$ sudo systemctl restart elasticsearch
$ sudo systemctl restart wazuh-manager

Read More



Adding Additional Instances To Nagios Log Server Cluster


This article covers method to add instances to Nagios Log Server Cluster. You will need to have an existing Nagios Log Server cluster before following the steps in this guide. An existing cluster is one or more instances of Nagios Log server.

Read More



Install Wazuh Server on CentOS 7 - Step by Step Process ?


This article covers the installation procedure of Wazuh Server on CentOS Linux System. Basically, Wazuh is a free, open-source and enterprise-ready security monitoring solution for threat detection, integrity monitoring, incident response and compliance. 


You can use Wazuh for the following applications:

  • Security analysis
  • Log analysis
  • Vulnerability detection
  • Container security
  • Cloud security


To Install Java on CentOS 8.

1. Run the command below to install JDK:

$ sudo dnf install java-11-openjdk-devel

2. Confirm that you have it installed

$ java -version

Read More



Unable to find the User entry – Fix Apache Web Agent Installation Error


This article covers how to fix Unable to find the User entry Apache Web Agent Installation Error.

This arror happens when we fail to set the user and group in the Apache httpd.conf file. Also, You will see "Unable to find the "User" entry in the httpd.conf file, will try APACHE_RUN_USER environment variable" and/or "Unable to find the "Group" entry in the httpd.conf file, will try APACHE_RUN_GROUP environment variable" errors.

To resolve this Apache error:
1. Check whether the user and group are set; you can do this via the httpd.conf file or equivalent file (such as envvars). For example:
a. Review the httpd.conf file and check whether the user and group are set. By default, they are set to apache, for example:

$ cat httpd.conf | grep 'User\|Group'
...
User apache
Group apache
..

If they are not set, you should set them; you can set them to apache or nobody.
b. Review the envvars file to ensure the user and group are set in the APACHE_RUN_USER and APACHE_RUN_GROUP environment variables. For example:

$ cat envvars | grep 'APACHE_RUN_USER\|APACHE_RUN_GROUP'
export APACHE_RUN_USER=apache
export APACHE_RUN_GROUP=apacheIf they are not set, you should set them; you can set them to apache or nobody.

2.     Review the passwd and group files to check whether the user and group match what is set in your httpd.conf file or equivalent. For example:

$ cat /etc/passwd | grep apache
apache:x:48:48:apache:/usr/share/httpd:/sbin/nologin
$ cat /etc/group | grep apache
apache:x:48:


If they are not set, you should set them to match what is in the httpd.conf file or equivalent.

Read More



Attributes do not match - Fix this SQL Server Installation Error


This article covers how to resolve the error, SQL Attributes do not match. Basically, the error, Attributes do not match occurs during SQL Server installation or during SQL Server patching activity.
Once you get this issue, you can check all drives available on your database server whether they are compressed or not. If any drive is compressed and SQL Server is using that drive during installation then that might be the reason for getting issue Attributes do not match.
You need to uncompress all such drives and then start the installation.

To uncompress the drive we need to launch property window of that drive:
1. We just need to right click on the identified drive and choose Properties to see the status of compression.
2. You can see compress this drive to save disk space option is ticked.
3. Uncheck this option and click on OK button to apply the change.
4. Once you validated all drives that none of the drives are compressed then you can start SQL Server installation and this time SQL Server installation will be successful.

When installing SQL server and running into an error "Attributes do not match.
Present attributes (Directory, Compressed) , included attributes (0), excluded attributes (Compressed, Encrypted)".
This is because you are trying to install SQL into a folder that is compressed which is not supported.
To fix this;
1. Navigate to C:\Program Files\Microsoft SQL server folder
2. Right click on properties on SQL Server folder.  
3. Under advanced option in general tab, look for compress contents to save disk space, uncheck it.
4. Also, uncheck "encrypt contents to secure data"
5. Re-run the SQL install

Read More



Install and Configure Mahara on Ubuntu


This article covers how to install Mahara. Basically, Mahara is a popular ePortfolio and social networking system that helps educators to develop a digital classroom in a remote learning environment and track student's progress. 

Mahara also has many non-student applications. You can use it to build a blog, a resume-builder, a file-repository, or a competency framework.

Mahara is a fully featured web application to build your electronic portfolio. 

You can upload files, create journals, embed social media resources from the web and collaborate with other users in groups. 


To install Mahara on Ubuntu:

1. 1. Login to your VPS via SSH

ssh user@vps

2. Update the system

[user]$ sudo apt-get update && sudo apt-get -y upgrade

3. Install MariaDB

To install MariaDB, run the following command:

[user]$ sudo apt-get install -y mariadb-server

4. Create MariaDB database for Mahara

Next, we need to create a database for our Mahara installation.

[user]$ mysql -u root -p
MariaDB [(none)]> CREATE DATABASE mahara character set UTF8;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON mahara.* TO 'maharauser'@'localhost' IDENTIFIED BY 'your-password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Do not forget to replace 'your-password' with a strong password.

5. Install Apache2 Web Server

Install Apache2 web server

[user]$ sudo apt-get install apache2

6. Install PHP

Install PHP and required PHP modules

To install the latest stable version of PHP version 5 and all necessary modules, run:

[user]$ sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-gd

7. Download and extract Mahara

Download and extract the latest version of Mahara on your server:

[user]$ sudo cd /opt && wget https://launchpad.net/mahara/16.04/16.04.1/+download/mahara-16.04.1.zip
[user]$ sudo unzip mahara-16.04.1.zip
[user]$ sudo mv mahara-16.04.1 /var/www/html/mahara
Create Mahara’s upload directory
[user]$ sudo mkdir /var/www/html/mahara/upload/

8. Configure Mahara

Create Mahara’s config.php

In the Mahara ‘htdocs’ directory there is config-dist.php file. Make a copy of this called config.php.

[user]$ cd /var/www/html/mahara/htdocs/
[user]$ sudo cp config-dist.php config.php

Open the config.php and make the necessary changes where appropriate.

[user]$ sudo nano config.php
$cfg->dbtype   = 'mysql';
$cfg->dbhost   = 'localhost';
$cfg->dbport   = null;
$cfg->dbname   = 'mahara';
$cfg->dbuser   = 'maharauser';
$cfg->dbpass   = 'your-password';
$cfg->dataroot = '/var/www/html/mahara/upload/';

All files have to be readable by the web server, so we need to set a proper ownership

[user]$ sudo chown www-data:www-data -R /var/www/html/mahara/

9. Configure Apache Web Server

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘mahara.conf’ on your virtual server:

[user]$ sudo touch /etc/apache2/sites-available/mahara.conf
[user]$ sudo ln -s /etc/apache2/sites-available/mahara.conf /etc/apache2/sites-enabled/mahara.conf
[user]$ sudo nano /etc/apache2/sites-available/mahara.conf
Then, add the following lines:
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/mahara/htdocs/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/mahara/htdocs/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

10. Restart and Verify

Restart the Apache web server for the changes to take effect:

[user]$ sudo service apache2 restart

Open your favorite web browser, navigate to http://your-domain.com/ and if you configured everything correctly the Mahara installer should be starting.

Read More



Plesk Panel Database issues


This article covers the different #Plesk database errors. The main reason for database issues in Plesk is the misconfiguration of the PSA database.
Plesk employs the native functionality of database management tools for checking and repairing databases.
For example, for #MySQL databases it uses the mysqlcheck utility.

To check and repair a #database:
1. Go to Websites & Domains > Databases > Check and Repair in a database tools pane.
2. If problems are found, click the link See Details and Resolve.
3. The list of tables and corresponding problems will open.
For MySQL databases, you can choose the tables that you would like to repair.
For Microsoft SQL databases, you can repair an entire database only.
Click Repair Selected (for MySQL) or Repair (for Microsoft SQL).

Read More



KVM hypervisor How it Works


This article will guide you on how the KVM #hypervisor works. Basically, KVM is a type-2 hypervisor (installed on top of another OS, in this case some flavor of #Linux). 

It runs, however, like a type-1 hypervisor and can provide the power and functionality of even the most complex and powerful type-1 hypervisors, depending on the tools that are used with the KVM package itself.

KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).

Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images.

1. The main difference between Type 1 vs. Type 2 hypervisors is that Type 1 runs on bare metal and Type 2 runs on top of an operating system. 

2. Each hypervisor type also has its own pros and cons and specific use cases.

3. Xen is better than #KVM in terms of virtual storage support, high availability, enhanced security, virtual network support, power management, fault tolerance, real-time support, and virtual CPU scalability.

4. A Type 1 hypervisor takes the place of the host operating system. 

5. Type 1 hypervisors are highly efficient because they have direct access to physical hardware. 

6. This also increases their security, because there is nothing in between them and the CPU that an attacker could compromise.

Read More



Drupal Unexpected Error


This article will guide you on how to fix #drupal unexpected error. Drupal error occurs due to many reasons that include corrupt #database, non-compatible modules installation, cache, #PHP configuration, custom codes, and so on. 

1. An "Internal Server Error" is an #error on the web server that you're trying to access. 2. That server is misconfigured in some way that is preventing it from responding properly to what you're asking for. 

3. An "Internal Server Error" often occurs due to: Misconfigured Drupal core file or folder read and write permissions.

To clear cache in #Drupal:

i. In the Manage administrative menu, navigate to Configuration > Development > Performance (admin/config/development/performance).

ii. Click Clear all caches.

iii. A message saying the cache has been cleared appears at the top of the page.

Read More



Are You Sure You Want to Do This Error in WordPress


This article will guide you on how to go about fixing "Are You Sure You Want to Do This" Error in WordPress. 

Critical errors damage your website's credibility, usability and accessibility. An important part of website optimization is therefore to detect critical errors and correct them as quickly as possible. The most common critical errors include server errors, broken pages, and broken images.

To fix WordPress #errors:

1. Check Your .htaccess File.

2. Switch To The Default Theme. If you are seeing the 500 Internal Server Error message, then you probably can't access the dashboard.

3. Increase #Memory Limit.

4. Deactivate All Your #WordPress #Plugins.

To get rid of warnings in WordPress:

i. Access your website by clicking the “public_html” folder in the directory.

ii. Select the wp-config.

iii. Click the “Edit” button on the new window.

iv. You may see “true” instead of false.

v. Click the “Save Changes” button in the top right.

Read More



Microsoft office Error code 1309


This article will guide you on different methods to resolve #Microsoft office Error code 1309. To avoid this error please right click the downloaded file and select “Extract All,” then choose a destination for the files to be extracted to.

If you encountered a problem while installing Office on a PC, try restarting your computer and then attempting to install Office again. If that didn't help, use this easy fix tool to uninstall #Office completely. After your uninstall is complete, try reinstalling Office.

To fix Another installation is already in progress on Windows 10:

1. Restart the #Windows Installer service.

2. End Windows Installer process.

3. Disable Windows Installer service and restart your #PC.

4. Perform Disk Cleanup.

5. Perform a Clean #Boot.

6. Check your #Registry.

7. Uninstall and reinstall Office.

Read More



How to Install OpenNMS on CentOS 8


This article will guide via a step-by-step procedure to #install OpenNMS in #CentOS. 

OpenNMS is a free, Open Source network monitoring system that can be used to #monitor tens of thousands of unlimited devices with a single #instance.

It will discover and monitor the services or nodes automatically in your #network, or you can assign a particular service to monitor by OpenNMS.

To configure #OpenNMS:

1. Install OpenNMS Horizon. Add yum repository and import GPG key. 

2. Initialize and set up #PostgreSQL. Initialization of the PostgreSQL database will start.

3. Initialize and start OpenNMS Horizon. 

4. First Login and change default password.

Read More



Virtual Machines (VMs) in oVirt 4 0 Environment


This article will guide you on the steps to create a Virtual Machines (#VMs) in oVirt 4.0 Environment.

The #oVirt engine acts as the control center for oVirt environments. The engine enables admins to define #hosts and #networks, as well as to add storage, create VMs and manage user permissions. Included in the oVirt engine is a graphical user interface (GUI), which manages oVirt #infrastructure resources.

To Create a Virtual Server:

i. Access the Virtual Server class tab in the Class #Manager.

ii. Click the Add Virtual Server link.

iii. Specify the name of the virtual server, its connections, and the URL Hosts. ...

iv. Click OK and then Apply to save and apply your changes.

To to Create Virtual Machines (VMs) in oVirt 4.0 Environment:

1. Create new Data Center.

2. Configure Cluster for Data Center.

3. Add Host or oVirt Node to above created data center & cluster.

4. Creating Storage #Domains.

5. Upload #ISO files to ISO Storage Domain.

6. Create Virtual Machine.

Read More



Install and Configure Salt Master on Ubuntu


This article will give you a comprehensive guide on the steps to perform installation and configuration of Salt Master and Minion servers on Ubuntu which involves a series of steps that include installing the master daemon, initial master configuration, installing a separate minion, and configuring the Minion.

Read More



Windows Update Error 0x8007012f


This article will guide you on how to fix Windows Update Error 0x8007012f which occurs when you try to install any kind of Windows update.

Read More



How to install the Anaconda Python on Ubuntu


This article will guide you on how to install, setup, update, and uninstall Anaconda which involves a series of steps to install and setup the Anaconda environment.

Read More



Performance graph problems in Nagios


This article will help to fix performance issues in Nagios when performance graphs does not display the correct data even though their checks return true performance data. 

Read More



How to fix Nagios error XI installation script fails when installing dependency pymssql


This article will help to fix Nagios error experienced during XI installation when its script fails in the process of installing dependency pymssql which occurs as a result of missing packages in the Server repositories. 

Read More



Unable to login to Nagios XI web interface


Sometimes, Nagios users experience login issues and are unable to Log into the Nagios XI web interface due to a number of reasons ranging from the wrong password to the SELinux policy.

Read More



Splunk installation on Ubuntu


This article will show you how to install Splunk on Ubuntu by following an easy to understand Installation process.

Read More



Steps to install Debian 9 Stretch


This article will guide you through the complete steps you need to follow to install Debian 9 Stretch on your Machine.

Read More



Odoo installation on Centos


This article will guide you on how to install Odoo software on CentOS 7. Odoo is a very popular business software for managing business application.

Read More




For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on LinuxAPT.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com