Fred.
Well-known member
Can someone tell me what the correct File Permissions are for XF2? Especially for the src folder and files in it.
XF 1.x always gave a warning to change the permission, XF2 doesn't seems to do that anymore. It just throws an error.
I'm running into a error if I try to upgrade XFMG
XF 1.x always gave a warning to change the permission, XF2 doesn't seems to do that anymore. It just throws an error.
I'm running into a error if I try to upgrade XFMG
Code:
ErrorException: file_put_contents(/home/admin/domains/example.com/subdomains/test/private_html/xf2/internal_data/code_cache/phrase_groups/l1/widget.php): failed to open stream: Permission denied in src/vendor/league/flysystem/src/Adapter/Local.php at line 196
XF::handlePhpError()
file_put_contents() in src/vendor/league/flysystem/src/Adapter/Local.php at line 196
League\Flysystem\Adapter\Local->update() in src/vendor/league/flysystem/src/Filesystem.php at line 98
League\Flysystem\Filesystem->put()
call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 57
League\Flysystem\EventableFilesystem\EventableFilesystem->put()
call_user_func_array() in src/vendor/league/flysystem/src/MountManager.php at line 269
League\Flysystem\MountManager->invokePluginOnFilesystem() in src/vendor/league/flysystem/src/MountManager.php at line 179
League\Flysystem\MountManager->__call() in src/XF/Util/File.php at line 99
XF\Util\File::writeToAbstractedPath() in src/XF/Service/Phrase/Group.php at line 49
XF\Service\Phrase\Group->compilePhraseGroup() in src/XF/Entity/Phrase.php at line 180
XF\Entity\Phrase->XF\Entity\{closure}() in src/XF.php at line 236
XF::triggerRunOnce() in src/XF/Mvc/Dispatcher.php at line 128
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1771
XF\App->run() in src/XF.php at line 319
XF::runApp() in admin.php at line 13