SMF Support > SMF 2.0.x Support

Installed mods not working?

<< < (5/6) > >>

Ashelia:
Sorry for the double post, but I keep getting these errors in the log after installing mods:

http://www.secretforumcupcake.com/index.php?action=admin;area=packages;sa=install;package=ActivityBar.zip2: fclose() expects parameter 1 to be resource, boolean givenFile: /var/www/vhosts/secretforumcupcake.com/httpdocs/Sources/Subs-Package.php
Line: 2537



http://www.secretforumcupcake.com/index.php?action=admin;area=packages;sa=install;package=ActivityBar.zip2: fopen(/var/www/vhosts/secretforumcupcake.com/httpdocs/Sources/Who.php): failed to open stream: Permission deniedFile: /var/www/vhosts/secretforumcupcake.com/httpdocs/Sources/Subs-Package.php
Line: 2530

http://www.secretforumcupcake.com/index.php?action=admin;area=packages;sa=install2;package=ActivityBar.zip;pid=0512: package_flush_cache(): some files are still not writableFile: /var/www/vhosts/secretforumcupcake.com/httpdocs/Sources/Subs-Package.php
Line: 2534

Yoshi:
That means the Package Manager isn't able to write/read files.

Set your files to at least 0644 or 0755 permissions. Anything in between or lower may cause issues.

MrPhil:
PHP files usually don't need to have the "execute bit" set. 644 is where you should start. If PHP runs as "owner", that should be enough. If it's running in your "group", it will need 664. If (horrors!) it is running as a random "other" user, the files to be changed (written to) will have to be 666. Before going through all this, confirm that all the files and folders are owned by you. Sometimes you end up (due to FTP usage or SMF uploading files) with odd ownership of various files. Same goes for the "group". If your FTP and/or host control panel > file manager don't show ownership and group, you may have to run ls -laR on the command line (possibly as a one-time cron job, if you don't have direct command line access). Ask your host about this. If there are files or folders that are owned by someone else, they probably will have to change the ownership (chown and chgrp), as mere mortal users are usually not allowed to. Good luck!

Ashelia:
I made some changes to my file permissions, but it didn't do any good.

Here's a screenshot of my current file permissions, can you spot any obvious problems? Should every single file and sub-folder inside Smileys/Sources/Themes be writable too? Again, please forgive my ignorance. :D


MrPhil:
Folders (directories) may not need to be 777. You should start with 755, and only if SMF complains that it can't write to a folder do you go to 775 and (as last resort) 777. 750 for the top level (httpdocs) folder is common. Within folders, the files themselves need to be writable. Start with 644 for all files. If SMF complains it can't write to a file, go to 664 and (as last resort) 666. Also confirm that you are listed as the "owner" of all folders and files, and the "group" is consistent (and correct for you). If your folders and/or files show different owners and/or groups, you'll have to have your host straighten out ownership for you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version