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.
Month: September 2018
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
configure: error: Unable to locate gmp.h
The following error was getting generated during PHP compilation in the server. checking for bind_textdomain_codeset in -lc… yes checking for GNU MP support… yes configure: error: Unable to locate gmp.h Fix yum install gmp-devel
mod_fcgid: HTTP request length 139264 (so far) exceeds MaxRequestLen (131072)
Increase the value of MaxRequestLen in /usr/local/apache/conf/includes/post_virtualhost_global.conf MaxRequestLen XXXXX XXXXX is the desired value If the above doesn’t work in case of a particular domain, then add the above in the respective domain’s virtual host entry.
Increase Limit Recursion in FTP
By default the FTP server will show only 2000 files in a folder. We can increase this to 4000 files. Open the pure-ftpd configuration file and edit the lines. vi pure-ftpd.conf # 'ls' recursion limits. The first argument is the maximum number of # files to be displayed. The second one is the max subdirectories … Continue reading Increase Limit Recursion in FTP
syntax error at /dev/null line 1, near “28 02” Execution of /dev/null aborted due to compilation errors.
Fix # rm /dev/null # mknod /dev/null c 1 3 # chmod a+rw /dev/null
For securing temp in openvz servers
Enter into the vps and then a. Add the following line in /etc/fstab none /tmp tmpfs nodev,nosuid,noexec 0 0 b. mount -a echo "none /tmp tmpfs nodev,nosuid,noexec 0 0" >> /etc/fstab;mount -a