Category: Linux

How to Restrict VSFTPD Users to Their Home Directories

Edit User Access Directory:

Edit: vsftpd.conf
Change #chroot_list_enable=YES to: chroot_list_enable=YESCreate: chroot_list, since chroot_list does not exist after installing vsftp, we have to create it ourselves touch chroot_listEnter the username (using 123 as an example): …

How to Install and Remove Software Using Yum on CentOS

To install a single package: yum -y install httpd
To install multiple similar packages: yum -y install httpd*
To install multiple dissimilar packages: yum -y install httpd php php-gd mysql
To uninstall a single package: yum -y remove httpd
To uninstall multiple similar pac…

How to Configure an L2TP VPN on Ubuntu

Previously, I published an article on How to Set Up a PPTP VPN Server on Ubuntu. However, in some cases, PPTP can be affected and may not work properly. In that scenario, you have another option: using an L2TP/IPSec VPN. Install the packages: sudo apt-get install xl2tpd openswan ppp

How to Install XAMPP 1.8.3.4 on Popular Linux Systems

How to Quickly Set Up a Local Test Server with XAMPP
XAMPP should be no stranger to webmasters. If you want to quickly set up an Apache host for testing websites, this is an excellent choice. XAMPP is a completely free and easy-to-install Apache distribution containing MySQL, PHP, and Perl. The XAMPP open source package’s setup makes installation …

How to Configure a VPN on an Ubuntu VPS

Install pptpd: sudo apt-get install pptpd. Edit configuration: sudo vi /etc/pptpd.conf. Set localip and remoteip. The second line specifies the IP range to assign. Set DNS: sudo vi /etc/ppp/pptpd-options. Modify for Google DNS:

How to Clear DNS Cache on Linux/Unix/Mac

I use a dial-up connection on Linux, and frequent disconnections cause DNS issues. How to clear DNS cache on various Linux/Unix distributions? On MS-Windows, use ipconfig. However, Linux and Unix provide different methods.

How to Reset a Forgotten Password on Linux (CentOS)

Struggling with how to phrase this title to make it clearer for everyone — this method does not apply to OpenVZ under the SolusVM management panel, nor does it apply to XEN, because if you forget the password on those two architectures, you can simply click “root password” in the backend to reset it. However, if you are using a dedicated server, or a KVM step by step…