Author: thekubeadmin

To change wordpress theme via backend using database commands

To change the current theme to twentyfourteen default theme >> mysql >> use database_name; To see current theme >> select * from wp_options where option_name = 'template' or option_name = 'stylesheet' or option_name = 'current_theme'; >> update wp_options set option_value = 'twentyfourteen' where option_name = 'template'; >> update wp_options set option_value = 'twentyfourteen' where option_name … Continue reading To change wordpress theme via backend using database commands

email ip does not change in /etc/mailips issue

Firstly found that there was lsattr set for the file. Tried by removing and resetting the lsattr but no use. Fix Found that in whm exim config settings this should be like this Send mail from account’s dedicated IP address Off Reference /etc/mailhelo for outgoing SMTP HELO Off Reference /etc/mailips for outgoing SMTP connections On … Continue reading email ip does not change in /etc/mailips issue

PHP Fatal error: Access to undeclared static property: WP_Screen::$this

The following error was getting generated in the error log of wp-admin and the wp-admin was loading a white screen. PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home/bunny/public_html/wp-admin/includes/screen.php on line 706 Fix Open file blog/wp-admin/includes/screen.php in a text editor. On line 706 find the following PHP statement: _help_sidebar; ?> Replace it with … Continue reading PHP Fatal error: Access to undeclared static property: WP_Screen::$this

How to Change cPanel Theme via command line

If you need to change all cpanel account themes, you can use this command as root: # replace RS=oldtheme RS=newtheme — /var/cpanel/users/* This will change all the cpanel users theme, if you need to change only one account, # cd /var/cpanel/users/ # vi user_account and replace the “RS=” line

Install ssl for addon using dedicated ip in a cPanel Server

It's not directly possible from WHM inteface. But you can manaully edit the cpanel config files and assign dedicated IP for the addon domain and then install the SSL Edit the file Code: /var/cpanel/userdata/username/addon-domain.com also checkl file /var/cpanel/userdata/username/addon-domain.com_ssl and change the IP to a dedicated IP. Also edit the DNS entires for the addon domain … Continue reading Install ssl for addon using dedicated ip in a cPanel Server