To setup basic authentication in Apache first create a .htaccess file in your website root folder or in specific directory and add following code: […]
Category: Cpanel
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 […]
How to Change default MySQL Data Directory in Linux
Mostly MySQL uses /var/lib/mysql directory as default data directory for Linux based systems. But if you wanted to change your data folder to another location,Follow the below steps to make all the changes: […]
“headers already sent” PHP Error
In some cases we find the following error from Apache logs: We can fix this error by updating a php.ini file. […]
How to find inode usage of a cPanel account
For most of the hosting service accounts there can be a restriction in the use of inode. Mostly the inode can be loaded by the e-mails, once the inode utilization becomes full then the server will stop working. […]