While accessing phpMyAdmin the following error was popping up Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser. session_start(): open(SESSION_FILE, O_RDWR) failed: No such file or directory (2) session_start(): Failed to read session data: files (path: ) … Continue reading phpMyadmin : session_start(): open(SESSION_FILE, O_RDWR) failed: No such file or directory (2)
Month: January 2020
Skip/Exclude files from cPanel backup
Some files which may have incorrect permissions or immutable files may not be able backup by the backup script of cPanel. This may cause partial failure for backup status. To resolve this we can skip specific files or folders from backup. 1. To exclude files globally Add files or directories to the /etc/cpbackup-exclude.conf 2. To … Continue reading Skip/Exclude files from cPanel backup
cannot enable mail for an account in plesk windows
The following error was getting generated while trying to enable the mail from mail settings for the account in plesk Error: mailmng failed: MEAOSM.Domain.GetDomain failed at (MailEnable::openDomain line 87) at execute console command –turn-on-domain(vconsoleapp::start line 93) at execute “C:\Program Files (x86)\Plesk\admin\bin\mailmng” –turn-on-domain “–domain-name=example.com”(vconsoleapp::run line 110) (Error code 1) Fix 1. Access the server using RDP … Continue reading cannot enable mail for an account in plesk windows
To change document root of an account in cPanel
1. SSH into the server and go to # /var/cpanel/userdata/USERNAME/DOMAIN.COM 2. Edit the file replacing the “username” with your cPanel account username and “domain.com” with your primary domain name and “subdir” with your new directory. Find the following two lines in this file: documentroot: /home/username/public_html path: /home/username/public_html/cgi-bin 3. Now, look for Text Documentroot and edit … Continue reading To change document root of an account in cPanel
How to backup the database of a cPanel account using AWS S3 bucket
Install and Use AWS CLI for backup 1.Check python version #python --version 2.Download the AWS CLI Bundled Installer #curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" 3.Unzip and install #unzip awscli-bundle.zip #./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws 4.Installed Version Check #/usr/local/bin/aws --version 5.Configuring AWS Bucket #aws configure Or can configure at location #/root/.aws/credentials in file. aws_access_key_id = **************** aws_secret_access_key = … Continue reading How to backup the database of a cPanel account using AWS S3 bucket
How to enable HttpOnly flag in Apache – cPanel
We can mitigate most common XSS attacks using HttpOnly and Secure flag with our cookie. Without having HttpOnly and Secure flag in the HTTP response header, it is possible to steal or manipulate web application session and cookies. The steps to enable HttpOnly and Secure flag Go to : Home > Service Configuration > Apache … Continue reading How to enable HttpOnly flag in Apache – cPanel
Unable to add plugins from wordpress admin dashboard
After login to wordpress dashboard and tried to add new plugins It shows An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. While checking the logs the following error was getting generated [Fri Jan 03 08:16:46.573487 2020] [ssl:error] [pid … Continue reading Unable to add plugins from wordpress admin dashboard