To find the correct path of a working php.ini on a cPanel server,Follow the steps below: Login to the SSH with root user Use the command as: […]
How to Rebuild Apache in cPanel
Log in to your server as the root using ssh to your server. Type the following commands: # cd /scripts # ./updatenow # ./easyapache Follow on screen recommendations to recover Apache for CPanel server under Linux. Please note that you can see a choice on display asking you which option you would like built into […]
Install ModSecurity and Get it Running in Linux CentOS/RHEL with Apache
If you’re hosting your own servers then securing your servers against attackers must be a high priority. ModSecurity is an open source Web Application Firewall that execute as a Module on your Web Server and it detects and prevents attacks against web applications. It monitors HTTP traffic and performs real time analysis. […]
Configure Basic Authentication in Apache using .htaccess
To setup basic authentication in Apache first create a .htaccess file in your website root folder or in specific directory and add following code: […]
How to enable keep alive in Centos
Keep alive is an concept to allow the same tcp connection for HTTP conversation instead of opening a new one with each new request. More simply , Keep alive is also known as a persistent connection. […]
How to check if a server is Suexec or not?
To check if the server is Suexec or not? follow the steps as below: Login into you server with the root details and run following command: /usr/local/cpanel/bin/rebuild_phpconf –current If server is Suexec then result would be as follows: Available handlers: suphp dso cgi none DEFAULT PHP: 5 PHP4 SAPI: none PHP5 SAPI: suphp SUEXEC: enabled RUID2: […]
How to password protect a file in Linux
To password protect a file in Linux use the command below: vim +X cpanelplesk.txt +X option will make your file password protect. vim +X cpanelplesk.txt “cpanelplesk.txt” [New File] Enter encryption key: Enter same key again: Now write anything you want and save it using !wq “cpanelplesk.txt” [New][crypted] 0L, 0C written Done. […]
Redirect from https to http except One folder
Sometimes we need to redirect all URL from https to http except one URL,In that case we just have to add below line above the redirection code in .htaccess file: RewriteRule ^foldername/ – [L] Now all the url except the foldername will be redirected from https to http: RewriteRule ^foldername/ – [L] RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://www.cpanelplesk.com/$1 [R=301,L] […]
Install and Configure phpMyAdmin on Ubuntu
Previously we have talk about how to install and configure phpmMyAdmin on CentOS. Here through the below steps we are explaining how to Install and Configure phpMyAdmin on Ubuntu server. First of all, before installing anything new we have to make sure that the list of available packages is up to date. apt-get -y update Now we can install phpMyAdmin using the below command: […]
How to uninstall MySQL Completely from Linux System
Some time we encounter problems with MySQL set up on Linux server. If we simply delete MySQL package and re-install it doesn’t resolve the problem, in that situation old configurations may still remains on server which again affects new set up. So first we have to uninstall MySQL completely from system and remove all configurations […]