Jump to content

chmod on shared webspace not allowed


chrizz
 Share

Recommended Posts

I just moved another site to PW and I am currently in the process of testing it on a staging environment (in debug mode).

The website is hosted on a shared webspace with limited access. This is why I get an error like this once I logged out:

Warning: chmod() [function.chmod]: Operation not permitted in /www/htdocs/customersite/stage/wire/core/Functions.php on line 298

My questions about this: why PW tries to change permissions?

Thanks and happy eastern everyone!

Link to comment
Share on other sites

@chrizz

You can set the permissions for files/folder required by your webserver in the config.php file. Most of the time, this is 644 for files and 755 for folders.

Example: Some folders must be writeable for ProcessWire, therefore the system tries to change the permissions of those folders.

In this case, the problem is (most likely) that your user executing the script on the webserver does not have write permission on a file/folder where ProcessWire tries to change the permissions. How did you upload the files to your staging environment? Maybe you need to set the correct permissions before uploading or correct the permissions on the server.

Cheers

  • Like 4
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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