Jump to content

Permission issues on fresh Bitnami installation


Recommended Posts

Posted

Hi, 

I tried to follow the Hello Worlds tutorial, but I'm stuck at the step after I have created the Earth page using the Planet template.

When trying to view the Earth page I get a blank page, or with PHP debug on, I see the following error message:

"Warning: file_put_contents(/opt/bitnami/apps/processwire/htdocs/site/assets/cache/FileCompiler/site/templates/_init.php): failed to open stream: Permission denied in /opt/bitnami/apps/processwire/htdocs/wire/core/FileCompiler.php on line 389"

The admin interface itself works.

Some permissions that I need to change?

Cheers,

Chris 

Posted

Thank you

Are you sure it's not 775 for directories and 660 for files?

I tried the opposite as you suggested, but that didn't work. Then tried the above and it works.

Not sure it's the strictest possible setting, but this is not running on a shared machine..

OK as long as I don't have anything world writable?

Best.

Christ

Posted

I just tried the following, I created a file 'chmod.php':

<?php
  chmod(".htaccess", 0644); // nothing lower would work here
  chmod("site/config.php", 0400); // this seems ok
  echo 'Completed'
?>

...uploaded it into my root via filezilla, went to mysite.com/chmod.php. Back to filezilla, deleted the file.

site/config.php is now 400.
.htaccess is now 644 (nothing lower than this would work in my environment).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...