This is because path environment variables is not set correctly. The .bashrc file should contain following variables in it. Fix export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Run the command to ensure it# echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/games
Category: interworx
“Cannot open /var/log/sysstat/sa18: No such file or directory.”
After installing sysstat package and running sar command I encountered the error message: “Cannot open /var/log/sysstat/sa18: No such file or directory. Please check if data collecting is enabled” FixOpen and edit /etc/default/sysstat config file and change row from ENABLED=”false” to ENABLED=”true” sudo service sysstat restart
Japanese character were displaying blank in pdf file converted using wkhtmltopdf
We can convert the html file to pdf format using tool called wkhtmltopdf. I have already provided necessary steps to implement in linux server in my previous post. But the pdf file was not displaying Japanese characters in it. Fix Please note that Chinese, Japanese, Korean font was not installed in the server. yum install … Continue reading Japanese character were displaying blank in pdf file converted using wkhtmltopdf
change wordpress theme from the database using phpMyadmin
Follow the steps to change/activate WordPress theme from within the database. 1. Log into phpMyAdmin. 2. Click on the wordpress database. 3. Go to the wp_options table. 4. Under the option_name column, locate the template entry. 5. Click Edit next to the template entry. 6. In the option_value column, change the value to the name … Continue reading change wordpress theme from the database using phpMyadmin
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
Recover mails that are struck in qmail todo folder in an interworx server
Mails were getting struck in the interworx todo queue and the client was bit angry as he was having important mails in the queue. So reinstalling qmail was not an option. The messages was not getting preprossed. [root@bunnytech]# /var/qmail/bin/qmail-qstat messages in queue: 5 messages in queue but not yet preprocessed: 90 The /var/log/send/current log (which … Continue reading Recover mails that are struck in qmail todo folder in an interworx server
Mails struck in qmail todo queue in an Interworx server
Mails were getting struck in qmail mail todo box. Tried to process the mails but was not successful. This can happen permissions, timestamps, or other file attributes of the queue have been modified by something other than qmail programs and you are having issues sending/recieving mail. Additionally, if you are sitting on a large (1000+) … Continue reading Mails struck in qmail todo queue in an Interworx server
Fatal error: Cannot redeclare views_views_plugins() – Drupal
Fatal error: Cannot redeclare views_views_plugins() (previously declared in /home/bunny/public_html/sites/all/modules/views/includes/plugins.inc:15) in /home/bunny/public_html/sites/all/modules/x/profiles/x/modules/contrib/views/includes/plugins.inc on line 425 Ran the url http://www.example.com/update.php (www.example.com being the website) If your settings.php file is properly configured, you should get an access denied message. In that case, go to the directory (/home/bunny/public_html/sites/default) and open the settings.php file. Look for the line $update_free_access = … Continue reading Fatal error: Cannot redeclare views_views_plugins() – Drupal