Posts by ServerOk

log

log

Logging Linux Commands for all users Monitor Apache site traffic with Apachetop Find IP with Most Access from Apache Log

Monitor Apache site traffic with Apachetop

Monitor Apache site traffic with Apachetop

apachetop is a command line tool like top, that shows traffic on a web site. It used apache access log

Amazon S3 CORS

Amazon S3 CORS

To enable CORS for Amazon S3 bucket, add

imunify360

imunify360

Imunify360 is paid version of Imunify. It provides additional protection like Web Application Firewall, Real-time protection, and automated malware cleaning.

Resize a linux file system with resize2fs

Resize a linux file system with resize2fs

On cloud servers, once you upgrade disk, you will need to resize the filesystem. On Linux ext4 file system, you

Plesk move vhosts folder

Plesk move vhosts folder

Plesk use /var/www/vhosts folder to store sites. On some servers this folder will be on smaller partition. Say you have

Bandwidth Limit on rsync

Bandwidth Limit on rsync

I wanted to transfer some files between two computers, but don’t want to use all bandwidth available on the network

Redirect a site to HTTPS using PHP

Redirect a site to HTTPS using PHP

This PHP script will redirect web site visitor to HTTPS (SSL) url. You can add this in your index.php of

Install x11vnc on Ubuntu

Install x11vnc on Ubuntu

To install x11vnc on Debian/Ubuntu, run To start vnc server, run By default, there will be no password. To set

Upload all files to FTP server using lftp

Upload all files to FTP server using lftp

lftp allow you to upload all files and sub folders using single command. With normal ftp command, you need to

chmod recursive with lftp

chmod recursive with lftp

lftp is a command line FTP program with several advanced options. To chmod all files and folders inside a sub

lftp enable debug mode

lftp enable debug mode

To enable debug mode, add -d to command line like See lftp