Chroot VSFTPD user on a webserver and change port of VSFTPD

First of all make sure to change the name of your VSFTP configuration file: sudo mv /etc/vsftpd.conf /etc/vsftpd.conf_orig sudo nano /etc/vsftpd.conf Now paste below code in vsftpd.conf file: listen_port=4021 listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES connect_from_port_20=NO chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO pasv_enable=Yes pasv_min_port=10000 pasv_max_port=10100 allow_writeable_chroot=YES Restart VSFTPD service and it … Read more

Password protect directories / folders with nginx

Overview On an Apache server, it’s possible to password protect a directory using .htaccess and .htpasswd files. However, .htaccess files are not supported on Nginx. You can still password protect your directories, but you need to use a basic_auth.conf file instead. Creating the file Log into your server via SSH. Navigate to your user’s directory. … Read more

How to install PHP opcache

OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. CMS frameworks such as WordPress, Joomla and Drupal, use a complex code and consume many processes. Several website speed enhancement plugins are available, heavily featured within the yield of … Read more

Howto disable or enable apache2 autostart on Ubuntu

Folder /etc/init.d/ contains all the init scripts for different boot up services like for example nginx, apache, mysql, etc. There is a program that makes those services simple to enable or disable from the start up. If you need to disable apache2 from start up, type: sudo update-rc.d apache2 disable To enable apache2 at start … Read more

How to Manually Upgrade phpMyAdmin

Since the release of Ubuntu 18.04 and other Linux distros, many people have been having compatibility issues with PHP 7.2 and phpMyAdmin 4.6. In this article we will manually download and install the latest version of phpMyAdmin to resolve these issues. 1. Back up phpMyAdmin You should back up your current phpMyAdmin folder by renaming it. sudo … Read more

How to upgrade to PHP 7.3 on Ubuntu

PHP 7.3 has a lot of performance advantages compared to 7.2 and co among other bug fixes. Since performance is one of my main reason why I wanted to upgrade to PHP 7.3 on my Ubuntu server I am going to share how you can upgrade to PHP 7.3 on Ubuntu. My machine run Ubuntu … Read more

osTicket – Solve problem with cron.php

Do you have troubles polling IMAP or POP via cron.php job? I have a solution. Here is a simple solution that will help you solve the problem with cron.php 1. go into /api/ and copy cron.php to some random filename like xfgjkdscron.php 2. now edit xfgjkdscron.php and comment lines: //if (!osTicket::is_cli()) //die(__(‘cron.php only supports local … Read more

Chrooted user for VSFTP and Webserver purpose

If you need to create a chrooted user for one of your webservers particular folder please read this article. 1. First we need to create a system user # useradd test # passwd test 2. Disable SSH access for FTP users The default user creation script will give a user the /bin/bash shell, which can … Read more

Ubuntu remote desktop from Windows

To connect from your Windows to Ubuntu via Remote desktop you need to install xRDP server. From command line in your Ubuntu install xRDP: sudo apt-get install xrdp Now from your Windows start Remote Desktop application and connect via IP or host name to your ubuntu. If everything goes well your Ubuntu desktop will appear. … Read more