XF 2.0 XenForo 2.0.9 - Permission error?

CammsName

Member
Licensed customer
Hi,

I tried upgrading to 2.0.9 today and ran into issues with permissions(?). I've had a similar issue before, where PHP wasn't writeable, but that was due to a mishap with the user group permissions on the server. After I uploaded the upload contents and tried to run the install (www.example.com/forums/install) I was thrown this error:

Code:
An exception occurred: [ErrorException] [E_WARNING] include(/raid/www/forums/src/XF/Template/Templater.php): failed to open stream: Permission denied in src/vendor/composer/ClassLoader.php on line 444

    XF::handlePhpError() in src/vendor/composer/ClassLoader.php at line 444
    include() in src/vendor/composer/ClassLoader.php at line 444
    Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
    Composer\Autoload\ClassLoader->loadClass()
    spl_autoload_call() in src/XF/Install/Templater.php at line 5
    include() in src/vendor/composer/ClassLoader.php at line 444
    Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
    Composer\Autoload\ClassLoader->loadClass()
    spl_autoload_call() in src/XF/Install/App.php at line 204
    XF\Install\App->setupTemplaterObject() in src/XF/Install/App.php at line 43
    XF\Install\App->XF\Install\{closure}() in src/XF/Container.php at line 28
    XF\Container->offsetGet() in src/XF/App.php at line 1299
    XF\App->XF\{closure}() in src/XF/Container.php at line 228
    XF\Container->create() in src/XF/App.php at line 2684
    XF\App->renderer() in src/XF/Mvc/Dispatcher.php at line 282
    XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 44
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
    XF\App->run() in src/XF.php at line 328
    XF::runApp() in install/index.php at line 14

I've read a few threads stating to make data and internal_data both chmod 777 recursively, however I'm a little uneasy about doing this as wouldn't it open up vulnerabilities for exploits/attacks? Apologies for my scepticism, I'm not overly confident with linux permissions, haha.

Cheers in advance.
 
Had the same problem, wasn't about the chmod (rights) but about the owner of the newly uploaded files.

A quick login via console and chown www-data:www-data -R * fixed it for me.
 
Back
Top Bottom