Our Client Open ticket and asked support to fix any issue during installing phpmyadmin on centos . but because this problem occur in different situation , We describe How fix issue for others.
How to Generate Certificate Signing Request (CSR) on Linux
CSR stands for ‘Certificate Signing Request’, that is generated on the server where the certificate will be used on. A CSR contains information about to your organization and domain name, locality, and country and a public key that will be included in your certificate.
This article has 3 methods to create CSR (Certificate Signing Request) on Linux systems. You can choose any one of below methods. All methods will do the same task, only they have a detailed explanation.
How to enable passive FTP connections in ProFTPD
Passive mode can sometimes resolve certain clients ability to connect to the FTP server which may have been blocked by firewalls. If you are having issues connecting remotely, would like you to try to to enable passive connections in ProFTPD you will need to edit /etc/proftpd.conf.
1. Edit the /etc/proftpd.conf file:
vi /etc/proftpd.conf
And add the following lines with the letter “i” to insert:
PassivePorts 60000 65535
AllowStoreRestart on
AllowRetrieveRestart on
TimeoutNoTransfer 65535
ListOptions "-la"
TimeoutIdle 65535
2. You will then also need to add the passive range in the firewall.
IPtables:
- Add the new rule:
iptables -A INPUT -p tcp -m tcp --dport 60000:65535 -j ACCEPT
- Save the ruleset:
iptables-save > /etc/sysconfig/iptables
Firewalld:
- Add the new port range:
firewall-cmd --permanent --add-port=60000-65535/tcp
- Reload the firewall:
firewall-cmd-reload
3. Testing The FTP Service
You can test the FTP configuration locally first to ensure the daemon is running by using netstat
# netstat -plan|grep :21
You can also connect locally by installing the ftp client
yum install -y ftp
And then making a connection to the localhost or 127.0.0.1
ftp localhost
How add .iso extension on IIS mime type file
If you want download iso file from IIS webserver may you got 404 Error like following screen :
You must add the correct MIME type for the file you’re trying to download.
From IIS Manager, go to Sites > YOUR_SITE> and in the features view, double-click MIME Types.
Under actions, click Add.
Enter the file extension iso and the MIME type application/octetstream
Click OK and retry your download.
How to disable web terminal SSH in Cpanel/WHM
You can disable web terminal access (SSH) in Cpanel/WHM by creating /var/cpanel/disable_whm_terminal_ui file for WHM users.
root@pardishosting.com:~# touch /var/cpanel/disable_whm_terminal_ui
How Install Let’s Encrypt SSL on Hostname in cPanel/WHM Server
The Let’s Encrypt allows you to install AutoSSL for the hostname. In this tutorial, I will show you how to install Let’s Encrypt SSL to the hostname. Here are the steps to install the same on hostname.
How run MySQL dump inside mysql console
Sometimes it may be necessary to use the mysqldump command in the mysql command line. As you know, this command is an external command and must be executed separately, but with the method we teach, you can also use it in the mysql command line.
For this purpose, it is enough to use the phrase \!
at the beginning of the command.
\! mysqldump -u username -p database > database_dump.sql
How Install LiteSpeed Web Server Plugin for cPanel/WHM
1.Install LiteSpeed WHM plugin
Run the following commands from ssh as root
cd /usr/src
wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh
sh ./lsws_whm_plugin_install.sh
rm -f lsws_whm_plugin_install.sh
Note: To uninstall WHM LiteSpeed plugin, run command at
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh
2.Install LiteSpeed Web Server from within WHM
-
Click “LiteSpeed Web Server Plugin for WHM” in “Plugins” section of WHM.
-
Click “Install LiteSpeed Web Server”
-
Fill in the form to sepecify
-
Trial license key or serial number
-
LiteSpeed target installation directory
-
Port Offset ( set to 0 to replace Apache otherwise set a number like “2000” to try LiteSpeed on port 2080 )
-
Whether to enable PHP SuEXEC
-
Assign user name and password for LWSW web admin console
-
Your email address as the Administrators email.
-
-
Click “Next” to install LiteSpeed
If you set Port Offset to “0”, it may stop Apache and start LiteSpeed after a successful installation, you may want to switch back to Apache temporarily as we still need to build PHP binary for LiteSpeed.
How to Install Zip and Unzip in Linux
Zip is a command-line utility tool used for compressing files and folders. Compression of files & folders enables faster and more efficient transfer, storage, and emailing of files and folders. On the other hand, unzip is a utility tool that helps you decompress files and folders.
Benefits of zipping files:
- Compressed/zipped files take up less disk space, leaving you with more space to work with.
- Zipped files are easy to transfer including uploading, downloading, and attaching them on email.
- You can easily decompress zipped files on Linux, Windows, and even mac.
In this topic, we focus on how you can install the zip and unzip utilities on various Linux distributions.