HostOnNet Blog

Enable htaccess in Apache

To verify mod_rewrite is enabled in your Apache server, run On CentOS On Debian/Ubuntu If the command shows “rewrite_module”, you have rewrite module enabled on your Apache server. On CentOS servers, rewrite module is enabled by default. On Ubuntu/Debian, you


PHP Script to verify TLS 1.2

Many payment providers recently moved to more secure SSL protocol TLS 1.2. Many of these providers will sent you mail asking you to make sure your web server support TLS 1.2 Checklist: Preparing for the system upgrade to TLS 1.2


CentOS 7 PHP can’t sent email using mail function

On CentOS 7 server, PHP mail() function did not sent email. It always returned false. I used following test script to verify mail is working I checked the mails server log, found following error message Problem fixed by adding proper


php-fpm use socket

By default php-fpm listen on tcp port 9000. It is better to use socket instead of tcp as it is less overhead. To change, edit file Find Replace with Now edit nginx config. Find replace with Now restart nginx and


sar No such file or directory

When running sar on Ubuntu, i get error To fix, run This will ask you to activate cronjob for data collection. Select Yes. Now wait some time for cronjob to run, sar will work. See sar


Text Editor For Programmers

There was a time there where only few text editors available for programmers like Editplus, UltraEdit, etc.. they are all paid. Then come Sublime, that become very popular among programmers, it was light weight, coded in python, allowed extending its


Librem 5 Crowdfunded Linux Phone

Librem 5 is a crowdfunded linux based phone that focus on security and privacy. Phone will be based on popular Linux Distribution Debian offers world’s first ever IP-native mobile handset, using end-to-end encrypted decentralized communication. As of today, the campaign


yum stuck forever

When i run any yum command on a server it get stuck for ever. I run yum with strace It get stuck with following message from strace Got it fixed by deleting the lock files. See yum