Category: cPanel

Change WordPress URL through functions.php file

Changing the WordPress URL can be done by editing the functions.php located in the theme folder, in most of the webservers the location will be as below /home/site/public_html/wp-content/themes/mytheme/functions.php Once you open the functions.php files add the below lines (replace the URL with the new one) immediately after <?php   update_option( ‘siteurl’, ‘https://www.newurl.net’ ); update_option( ‘home’, […]

Convert Existing MySQL Database to Innodb

  Converting existing MySQL Database Tables from MyISAM to InnoDB can be done from PHPMyAdmin but if there are too many tables the following script will help you to convert all the tables of a particular database to InnoDB Pre-requisites: 1. This tutorial assumes that you have .my.cnf configured with MySQL credentials for auto-login 2. […]

Install PHP ImageMagick cPanel

  Installation on latest version of WHM/cPanel with EasyApache4 (EA4)   1. Install the following packages using YUM yum install ImageMagick ImageMagick-devel   2. Install on EA4 PHP 5.5 /opt/cpanel/ea-php55/root/usr/bin/pecl install imagick   3. Install on EA4 PHP 5.6 /opt/cpanel/ea-php56/root/usr/bin/pecl install imagick   4. Install on EA4 PHP 7.0 /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick   5. Install […]

SSL Installation on Tomcat Server

  Generate CSR for Tomcat Server: 1. Generate the private key with the below command keytool -genkey -alias website -keyalg RSA -keysize 2048 -keystore example_com.jks -dname “CN=example.com,OU=IT, O=Example Pvt Ltd, L=Hyderabad, ST=Telangana, C=IN” 2. Generate the CSR using the below command keytool -certreq -alias website -file example_com.csr -keystore example_com.jks 3. Once the certificate is signed, […]

Install PHP OCI8 extension to connect to remote Oracle Databases

Installtion on EasyApache 3: 1. Install Oracle Instaclient Basic and Devel packages from here [[email protected] ~]# rpm -ivh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm Preparing… ########################################### [100%] package oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64 is installed [[email protected] ~]# rpm -ivh oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm Preparing… ########################################### [100%] package oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm is installed 2. Download OCI8 package wget -4 https://pecl.php.net/get/oci8-2.0.5.tgz 3. Untar the archive tar -xvf oci8-2.0.5.tgz cd oci8* 4. […]

EasyApache is currently upgrading your Apache and PHP installation

  Some times you will not be able to change PHP/SuPHP settings, Add Java Servlet’s. We get the following error while doing it through WHM EasyApache is currently upgrading your Apache and PHP installation But you will not see any easyapache/php upgrade running on the server, this happens because the last Easyapache/PHP upgrade has not […]

www.hostingdada.net © 2016