Posts by ServerOk

Protecting files with noclobber

To protect files on Linux by accidently overwritten by > operator, you can use

Now if you try to overwrite a file with >, you will get error

If you really need to overwrite, use >! operator.

Example

Instead of running the command “set -o noclobber” everytime, you can add it […]

Read More…

Email Alert When User Login Using SSH

On web servers, you may need to get email alert when someone login to your server using SSH. To do this edit file

Add

In above, replace [email protected] with your actual email address. You need a mail server installed on your server for this to work. If you want to log to a […]

Read More…

Uninstall ImunifyAV on Plesk Server

Uninsall Plesk Extension

ImunifyAV is a free antivirus for Linux Server. On a Plesk server, i installed paid version of ImunifyAV. Now plesk shows both paid and free versions.

To remove free version of ImunifyAV, run

See Plesk Server […]

Read More…

Plesk mail not working 10024: Connection refused

On a Plesk mail server, when sending/reciving email, it fail with following error in /var/log/maillog

To fix, reinstall email-security extension.

Verify mail works. If all good, you can reinstall the Plesk mail security extension from Plesk admin

If its mail configuration issue, you can run

See Plesk […]

Read More…

yum [Errno 5] [Errno 2] No such file or directory

When running yum update on CentOS 7 server, i get following error

Someone had tried to install differnt version of python on this server. That caused this problem. When i run urlgrabber-ext-down, i get error saying python missing.

Problem fixed by creating symlink

See yum […]

Read More…

Enable SSL on BitBucket Server

bitbucket server

BitBucket Server alloow you to host git repositories. By default bitbucket server have url in following format

To install SSL, first point a domain to the server IP. Install nginx

Now install LetsEncrypt

Get SSL in standalone mode. We use standalone mode because nginx will proxy all request to bitbucket server, so […]

Read More…

KVM VNC Allow Remote Access

By default VNC Console on a KVM virtual Machine only listens to localhost. So you need to do SSH tunnel to access VNC console. To make VNC available on all interfaces on Host machine, you need to edit file

You need to uncomment the line vnc_listen = “0.0.0.0”.

Once this is done, you […]

Read More…