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
Author: thekubeadmin
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
WHMCS showing incorrect time than server time
Fix correct this in the configuration.php of whmcs. Open up your configuration.php (which is in your root WHMCS directory) using any text editor you are using and then at the bottom before the closing php tag add the following line: date_default_timezone_set('Pacific/Auckland');
Script to check and take crashed database list in a file
mysqlcheck --all-databases | grep "doesn't exist" | awk {'print $4'} | cut -d. -f1 | cut -d \' -f2 | uniq > /root/dblist
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
PHP Fatal error: Call to undefined function apply_filters() in /home/bunny/public_html/wp-includes/load.php on line 317
Fix The issue was that one of the core file wp-settings.php was corrupted. You can either copy the file from backup or upload the file from source.
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
configure: error: libXpm.(a|so) not found.
While compiling PHP in the server the following error was showing up. checking for png_write_image in -lpng… yes configure: error: libXpm.(a|so) not found. Fix yum install libXpm-devel
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
Can’t connect to local MySQL server through socket ‘/var/tmp/mysql.sock’ (2)
Check whether a symlink of /var/tmp/mysql.sock is present in /tmp/. If not create it. Fix ln -s /var/tmp/mysql.sock /tmp/mysql.sock