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
Category: apache
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
How to change time zone for a domain using .htaccess
Open your .htaccess file and add the following line: SetEnv TZ location where location is the specific timezone you want to define. A list of Supported Timezones can be found here: http://www.php.net/manual/en/timezones.php
Apache: No space left on device: Couldn’t create accept lock
Within the Apache error logs, this message was appearing over and over: [emerg] (28)No space left on device: Couldn't create accept lock 1. Check the disk space 2. Review filesystem quotas 3. Clear out the active semaphores # ipcs -s If you see a list of semaphores, Apache has not cleaned up after itself, and … Continue reading Apache: No space left on device: Couldn’t create accept lock
Issue : no input file specified
Problem was with .htaccess file root@server [/home/bunny/public_html/bunnytech]# cat .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteBase /bunnytech/ Fix just changed the line RewriteRule ^(.*)$ index.php?/$1 [L]
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
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.
for default php PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20131226/htscanner.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20131226/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0
This can be corrected by installing htscanner. Fix pecl install htscanner
Enable HTTP/2 support on EasyApache4
EasyApache 4 adds quite a lot of HTTP/2 support from apache version 2.4.25-10". Install "mod_http2" package using below command to enable HTTP/2 support on EA4 server. yum install ea-apache24-mod_http2.x86_64 You can verify the status using below command. /opt/cpanel/libcurl/bin/curl -I --http2 -v http://domain.com