Permission Modification

I tried to change the permissions of a file on my website to make it executable, but I wasn’t successful. Does InfinityFree restrict permission changes? If I upgrade my plan, will I then be able to change the permissions?

I tried to change the permissions of a file on my website to make it executable, but I wasn’t successful. Does InfinityFree restrict permission changes? If I upgrade my plan, will I then be able to change the permissions?
I’m currently running my mediawiki website, and when I try to import pages, it tells me I need to give the file execute permissions.

To answer your questions: yes, changing file permissions is not available on free hosting, but is available on premium hosting.

Restricting file permission changes isn’t done to force you to upgrade to premium hosting. It’s a matter of user-friendliness. The simple fact is that after 10 years of running this service with millions of websites, I have not encountered a single case where someone had a problem that could be solved with file permissions. Meanwhile, I’ve encountered many situations where someone messed up their file permissions and corrupted their website or locked themselves out of their own files. So we disabled this because it rarely helps and often causes problems.

There is no legitimate reason to make your code executable. The servers execute any PHP scripts it encounters regardless of whether the executable permission is set. And if it doesn’t, then that’s usually caused by invalid .htaccess rules (notably any rules that try to configure a handler for PHP that doesn’t match how our servers are setup).

So before you are considering to shell out money for a solution which I strongly doubt will solve your issue, can you please tell us a bit more about why you want to make your files executable?

Firstly, if you want to add something to your previous message, please add it to your previous message. Please don’t create a new topic about the same issue, that just makes a mess.

As for the error itself, can you please tell us a bit more about the exact issue? What import process are you referring to, what is the exact error message, and which file do they say should be made executable?

7 Likes

OK, here are the detailed error messages.
The lua binary (/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

I encountered this error message while importing entries. It seems to say that I need to change the permissions of a file named “Lua” to executable.

OK, I see the issue.

In this particular case, the Lua binary does need to be executable to work. However, even if you could change the file permission, it would still require you to be able to execute the Lua command, which is also not possible on free hosting.

Any Mediawiki functionality that uses Lua or the Scribunto plugin will not work on free hosting, unfortunately. Premium hosting on the other hand does support both changing file permissions and running system commands from PHP.

4 Likes

So, I need to upgrade to a premium host to do that.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.