Permission issues with WordPress

sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content/cache
sudo find /opt/bitnami/apps/wordpress/htdocs/wp-content/cache -type f -exec chmod 664 {} \;
sudo find /opt/bitnami/apps/wordpress/htdocs/wp-content/cache -type d -exec chmod 775 {} \;
sudo chown bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-config.php
sudo chmod g+w /opt/bitnami/apps/wordpress/htdocs/wp-config.php
sudo chown bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/.htaccess
sudo chmod g+w /opt/bitnami/apps/wordpress/htdocs/.htaccess

As you may have noticed, you have a block called Sidebar, to modify this SideBar, you just have to modify your theme.

My theme was done with Boostrap which implements the task,

Go in Appearance> Editor> Edit single.php

Before:

<section id="section-block" class="site-content">
    <div class="container">
        <div class="row">
            <!--Blog Posts-->
            <?php 
echo '<div class="col-md-'.( !is_active_sidebar( "sidebar-primary" ) ?"12" :"8" ).' col-xs-12">'; 
?>

After :

<section id="section-block" class="site-content">
    <div class="container">
        <div class="row">
            <!--Blog Posts-->
            <?php // echo '<div class="col-md-'.( !is_active_sidebar( "sidebar-primary" ) ?"12" :"8" ).' col-xs-12">'; ?>
                <?php echo '<div class="col-md-12 col-xs-12">'; ?>
<?php

/*
 * if ( is_active_sidebar( 'sidebar-primary' ) ): ?>
	<div class="col-md-4 col-sm-4 col-xs-12">
		<div class="sidebar" >
		<?php dynamic_sidebar( 'sidebar-primary' );	 ?>
		</div>
	</div>
<?php endif; 
*/
?> 

I put everything in the comment, so that the side is not displayed!

Log in as root and place yourself at the root of your site directory

# Add group www-data 
chown www-data:www-data -R wp-content/uploads/

# set permission 755
find . -type d -exec chmod 755 {} \;

# set permission 644
find . -type f -exec chmod 644 {} \;