AWS EC2 – N77 Design | NickClaeboe.com https://www.nickclaeboe.com Atlanta Web, Graphic & Flyer Design • Design Portfolio & Rates for Nick Claeboe Custom Design Work Thu, 10 Jun 2021 12:29:15 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://www.nickclaeboe.com/wp-content/uploads/2016/05/favicon-60x60.png AWS EC2 – N77 Design | NickClaeboe.com https://www.nickclaeboe.com 32 32 Bitnami: Start or stop services https://www.nickclaeboe.com/2021/03/03/start-or-stop-services/ Wed, 03 Mar 2021 13:29:47 +0000 http://www.nickclaeboe.com/?p=8899

Each Bitnami stack includes a control script that lets you easily stop, start and restart services. I had to save this for myself as I use these commands DAILY!

Hope this helps others as much as it does me.

Obtain the status of a service:

sudo /opt/bitnami/ctlscript.sh status

Call it without any service name arguments to start all services:

sudo /opt/bitnami/ctlscript.sh start

Or use it to restart a single service, such as Apache only, by passing the service name as argument:

sudo /opt/bitnami/ctlscript.sh restart apache

Use this script to stop all services:

sudo /opt/bitnami/ctlscript.sh stop

Restart the services by running the script without any arguments:

sudo /opt/bitnami/ctlscript.sh restart
]]>
Set Up, Configure and Install FTP on AWS EC2 Instance – Bitnami LAMP ubuntu-14-04-lts/ Apache2 – vsftpd https://www.nickclaeboe.com/2017/06/27/set-configure-install-ftp-aws-ec2-instance-bitnami-lamp-ubuntu-14-04-lts-apache2-vsftpd/ Tue, 27 Jun 2017 01:02:42 +0000 http://www.nickclaeboe.com/?p=534 Set up new user to use FTP, use $ sudo passwd only to change the password later if needed, $ sudo adduser will prompt you to create a password then.

$ sudo adduser username
$ sudo passwd username

Use the command below to ensure your Ubuntu server and all apps/modules are up to date.

$ sudo apt-get dist-upgrade

If VSFTPD is already installed, use snippet below to remove it and purge the previous config files.

$ sudo apt-get remove --purge vsftpd

Install VSFTPD with snippet below.

$ sudo apt-get install vsftpd

Use snippet below to edit the vsftpd.conf file.

$ sudo nano /etc/vsftpd.conf

While editing the vsftpd.conf file, uncomment the directives below to make vsftpd ‘work’

local_enable=YES
write_enable=YES
chroot_local_user=YES

Add the following directive at the end of your vsftpd.conf file:

allow_writeable_chroot=YES

Once you’re finished editing your vsftpd.conf file, be sure to restart vsftpd with the following command:

$ sudo service vsftpd restart

Use the snippet below to change your access to ‘superuser’ so that you may ‘jail’ the ftp user to a certain directory.

$ sudo su

Use this snippet to tell vsftpd what directory you want to ‘jail’ the ftp user to.

$ usermod --home /opt/bitnami/apps/yourappname/htdocs/ username

Also, be sure to set up an inbound rule in your AWS EC2 instance to all ftp traffic.

TCP/IP Protocol Custom Range 20-21 0:0:0:0:/0

]]>