WordPress Developers – working with the AWS Lightsail Terminal? Here are a few commands that may be useful

by Alan Bracken in AWS Hosting on June 3, 2020

WordPress in AWS Lightsail (Bitnami AMI)


# restart apache
$ sudo /opt/bitnami/ctlscript.sh restart apache

# remove bitnami banner
$ sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1
$ sudo /opt/bitnami/ctlscript.sh restart apache

# ssl configuration
$ sudo /opt/bitnami/bncert-tool

# setting correct owner permissions
$ sudo chown daemon:daemon -R /opt/bitnami/apps/wordpress/htdocs

# access php-ini file for editing $ sudo nano /opt/bitnami/php/etc/php.ini

# open wp-config.php in terminal editor $ sudo nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php
# debug to file define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define( 'WP_DEBUG_DISPLAY', false );


# Update WordPress Automatically Without Using FTP define('FS_METHOD','direct');


# increase WordPress memory limit define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M');

Share Your Valuable Opinions

WP Feedback

Dive straight into the feedback!
Login below and you can start commenting using your own user instantly