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
Category: Linux
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
[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.
[ERROR] mysqld: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
Mysql was crashed and was not starting. Though we ran innodb_force_recovery to up the mysql, there were many issues like core tables were crashed, phpmyadmin was not showing databases, 16 length user character issue and so on. Also while checking mysql_upgrade_info file in the /var/lib/mysql directory, it was showing mysql5.6 though the server was having … Continue reading [ERROR] mysqld: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
***** FATAL: Failed to download updatenow.static from server: (XID xxmzbe) The system aborted the subprocess “/bin/rpm” (process [asis,ID] “11248”) because it reached the timeout of [quant,_3,second,seconds]
The cPanel update was resulting generating the fatal error ++++ FATAL: Failed to download updatenow.static from server: (XID xxmzbe) The system aborted the subprocess “/bin/rpm” (process [asis,ID] “112486”) because it reached the timeout of [quant,_3,second,seconds] ++++ Tried running mkdir /root/old_rpm_dbs/ mv /var/lib/rpm/__db* /root/old_rpm_dbs/ rpm --rebuilddb But the issue was not fixed. Also ran /scripts/cpanel_rpm_fix but … Continue reading ***** FATAL: Failed to download updatenow.static from server: (XID xxmzbe) The system aborted the subprocess “/bin/rpm” (process [asis,ID] “11248”) because it reached the timeout of [quant,_3,second,seconds]