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
install package “wkhtmltopdf” to convert html to pdf
1. Install the wkhtmltopdf package # wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm 2. check version # wkhtmltopdf -V 3. Now link the binary file' # ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf 3. To test whether the html is converted to pdf # /usr/local/bin/wkhtmltopdf http://www.google.com google.pdf Loading pages (1/6) Counting pages (2/6) Resolving links (4/6) Loading headers and footers (5/6) Printing pages … Continue reading install package “wkhtmltopdf” to convert html to pdf
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
mod_tls/2.7: NoCertRequest TLSOption is deprecated in Interworx
FTP CONFIG SYNTAX CHECK RESULTS Checking syntax of configuration file proftpd[28871]: mod_tls/2.7: NoCertRequest TLSOption is deprecated Fix Comment the line 'TLSOptions NoCertRequest' in the FTP configuration file. The FTP configuration file can be edited in Nodeworx under "System Services -> FTP Server -> FTP Config File Syntax" look for the button that says "Edit Configuration … Continue reading mod_tls/2.7: NoCertRequest TLSOption is deprecated in Interworx
Whoops, looks like something went wrong – laravel website issue
While trying to migrate laravel to production environment, following error was getting generated while accessing the website through browser. Whoops, looks like something went wrong Whoops, looks like something went wrong The issue was with application key was not generated. For that run the command under public_html to generate a key php artisan key:generate … Continue reading Whoops, looks like something went wrong – laravel website issue
Can’t create/write to file ‘/var/run/mysqld/mysqld.pid’ (Errcode: 13)
Check the permission of mysqld directory and it should be under the ownership of mysql # chown mysql:mysql /var/run/mysqld
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
[ERROR] Plugin ‘Aria’ registration as a STORAGE ENGINE failed.
Mysql service was down in one of the vps with following error in the mysql log [ERROR] Aria engine is not enabled or did not start. The Aria engine must be enabled to continue as mysqld was configured with --with-aria-tmp-tables [ERROR] Aborting mysqld: File '/var/lib/mysql/aria_log.00003041' not found (Errcode: 2 "No such file or directory") [ERROR] … Continue reading [ERROR] Plugin ‘Aria’ registration as a STORAGE ENGINE failed.
Add a SFTP user and allow to make SFTP connections only.
Create a group sftp_users # sudo groupadd sftp_users 2. Create the sftp user bunny. Here chroot is set to /home/bunny/data. # sudo useradd -d /home/bunny/data -G sftp_users -s /sbin/nologin bunny 3. Set password for the user # sudo passwd bunny 4. Now edit the sshd config file and make the following changes. # sudo vi … Continue reading Add a SFTP user and allow to make SFTP connections only.