I was trying to cache the frequently used urls in the redis so that the website loads faster. But when I was trying to implement the redis cache got caught with following error. class Redis not found Fix: Issue was with php7.x-redis not installed and in this case I was using php7.2. apt install php7.2-redis
Category: apache
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
After setting SSL in the Apache default-ssl.conf file I was not able to access the website using https which was showing ERR_SSL_PROTOCOL_ERROR. Also the curl command was showing the following error: curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number Fix: sudo a2ensite default-ssl and restart apache2. Note: Before that you need to ensure following modules are also … Continue reading curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
How to display original IP accessing the website which uses cloudflare nameservers
As you know, using cloudflare is a method to hide the A record of the domain and it has many advantages like preventing DDOS as well as providing CDN and so on. But if you enable cloudflare for a domain you wont be able to find the original client IPs accessing the website in cPanel … Continue reading How to display original IP accessing the website which uses cloudflare nameservers
Dockerfile build hanged at Configuring tzdata
while running a dockerfile, it was hanged at the following Configuring tzdata ------------------ Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc 2. … Continue reading Dockerfile build hanged at Configuring tzdata
script to test website response time
We can simply test the website response time using the following script from the linux command line. curl -s -w 'Testing Website Response Time for :%{url_effective}\n\nLookup Time:\t\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nAppCon Time:\t\t%{time_appconnect}\nRedirect Time:\t\t%{time_redirect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' -o /dev/null https://www.domain.com
Redirect domain.com/interworx to hostname
When a user requests https://example.com/siteworx it would redirect them to https://<hostname>:2443/siteworx/?domain=example.com and the ssl should work. In order to accomplish this I've provided the steps below: 1.) Ensure a service level cert is installed for the server hostname. 2.) Edit /etc/httpd/conf.d/iworx.conf and change the first instance of %{HTTP_HOST} to the server hostname in the following … Continue reading Redirect domain.com/interworx to hostname
enable custom ssl request log in apache
To enable custom ssl log in apache follow below steps: 1. Add the below configuration files in post_virtualhost_global.conf for logging all SSL entries for virtual hosts that a user owns. WHM »Service Configuration »Apache Configuration »Include Editor Post »VirtualHost Include Include /etc/apache2/conf.d/userdata/ssl/2_4/bunnytech/ssllog.conf Include /etc/apache2/conf.d/userdata/ssl/2_4/bunnytech/ssllog.conf 2. Add the below configuration in ssllog.conf file for Custom … Continue reading enable custom ssl request log in apache
The YUM cache is incomplete. The system is updating the cache to repair the issue. This operation can take a few minutes to complete (it is very network and disk i/o intensive). EasyApache 4 will be available as soon as possible
While accessing easyapache4 the following error was getting. The YUM cache is incomplete. The system is updating the cache to repair the issue. This operation can take a few minutes to complete (it is very network and disk i/o intensive). EasyApache 4 will be available as soon as possible.. Fixed by # yum clean all
Fatal error: Uncaught Error: Class ‘DOMDocument’
A Magento website was down with following error. Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/bunnytech/public_html/vendor/magento/framework/Config/Dom.php:390 Stack trace: #0 /home/bunnytech/public_html/vendor/magento/framework/Config/Dom.php(117): Magento\Framework\Config\Dom->_initDom('<?xml version="...') The issue was that php xml module was not installed/enabled. "DOM/XML" should be in enabled state while accessing the php info page.
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