Archive for the ‘cpanel’ Category

Script to check the ip for domains

Many time we are facing the problem while auditing the server for active domains, at that time we can use the following script to check which domain is resolving to which ip. Copy all the domains hosted on the server in the simple text file, for example we have copied all the domains in the […]

phpmyadmin error “Cannot start session without errors”

“cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.” To resolve above error you need to change the values in/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini file. root@admin[~]#pico /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini And than change the following values in php.ini file FROM: —– session.save_handler = sqlite session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb —– TO —– […]

How to check mysql servers set values?

Most of the time we need to check the mysql value set on server and most of the techs checks /etc/my.cnf file.If you want to check all values set in mysql on server. We can use following simple command. mysqld –no-defaults –verbose –help  

Database sizes shows zero in cPanel

Once we upgrade from cPanel 11.24 to 11.25 version. We are receiving lots bug. One of them is database size showing zero in cPanel. To resolve this issue you have to edit following file /var/cpanel/cpanel.config root@support[~]vi /var/cpanel/cpanel.config Search line “disk_usage_include_sqldbs” in file “ /var/cpanel/cpanel.config “and change it From   disk_usage_include_sqldbs=0 to disk_usage_include_sqldbs=1 And run script -/scripts/update_db_cache  

cPanel easyapache error “pdo was disabled by the dso patch”

While enabling the PDO extension using the /scripts/easyapache the following error occur pdo was disabled by the dso patch To avoid above error message do not select “Concurrent DSO patch” option in EasyApache under the “Exhaustive Options List” and recompile the Apache with the PDO module.  

Reinstall Frontpage extensions on the domain

You can reinstall the Frontpage extension for single hosting account / domain by using following command from shell. cd /usr/local/frontpage/version5.0/bin ./owsadm.exe -o install -u cpanel_user_name -p 80 -m www.domainname.com -servconf /usr/local/apache/conf/httpd.conf -xuser cpanel_user_name  

Install and uninstall Frontpage for single domain from Shell.

First you need to login into your server with the root login details and then run followings commands one by one /scripts/setupfp5: What is the servername you want to setup? www.****.org Saving .htaccess file: /home/****/public_html/.htaccess Using Upgrade Mode Saving .htaccess file: /home/****/public_html/_private/.htaccess For remove /scripts/unsetupfp4 What is the servername you want to setup? www.****.org Saving .htaccess […]

Frontpage problem

If anyone facing problems with the FrontPage installation then first uninstall the installed FrontPage from shell /home/user/public_html (Change the user to your user name) Then run the following commands one by one. rm -rf .htaccess.* rm -rf _vti_pvt/ rm -rf _derived rm -rf _private rm -rf _vti_* If server is SuExec enabled then first disable […]

Connect and publish files by using Frontpage

Following are the steps to connect the Frontpage and publish the sites files/folders. 1.Begin by starting Microsoft FrontPage Explorer from your Windows Start Menu. 2.Select Open Web… from the File… menu. This will open the Open Web dialogue. 3.In the Open Web dialogue, select the My Network Places icon. 4.Now, enter http://www.yourdomainname.com into the Web […]

Secure FTP by changing FTP port.

In recent few months FTP brute force attacks increased on most the cPanel servers. To avoid such attacks, we can simple default FTP account or change FTP port. If you are shared server then client won’t be happy after disabling default FTP which is cPanel login details. There for simply change the FTP port number […]