HostOnNet Blog

Category Archives: Linux

errors

configure: error: no acceptable C compiler found in $PATH/li>


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


Create Volume Group with vgcreate

vgcreate is used to create LVM volume group. Before we can create a volume group, we need to create physical volume. To list available physical volume, run pvdisplay If you don’t have a physical volume, create one with pvcreate. From


iptables

iptables is firewall used in linux servers. This is a command line tool. Most other firewalls like uwf, csf, apf etc actually use iptables to do the blocking, they are just programs make it easy to work with iptables. ip


lvresize

lvresize can be used to resize LVM partition. Lets create a LVM partition to test Format the LVM partition as ext4 Verify the file system by mounting it and copy a file to it, so we can verify it works


Delete Logical Volume with lvremove

lvremove is used to delete a logical volume. Usage is Example See lvm


Resize LVM partition with lvreduce

lvreduce can be used to reduce logical volume size (lvm). IMPORTANT: You must resize file system inside LVM or you will lose data stored in file system. Always backup data before you resize lvm partition. Use resize2fs to resize file


Monitoring Qmail on Plesk Server with Monit

Install monit on your server as per instruction available at Restarting Services with Monit Now create a file With following content Restart monit service If all setup properly, you will be able to view qmail-send status in monit web interface.


Restarting Services with Monit

Monit is a monitoring software that will monitor running services, restart if service stop responding, notify you by email. Installing Monit on Ubuntu Start monit On Ubuntu, run Enable Web Interface Edit /etc/monit/monitrc Find Replace with Set a password. Restart


locale: Cannot set LC_CTYPE to default locale: No such file or directory

When i login to a server, i get following error To verify en_US.UTF-8 is available on the system, run locale -a On this server en_US.UTF-8 is not installed. To enable this, run You will get screen with all available locales,