installed ckfinder, but get an error: Warning: is_writable(): open_basedir restriction in effect.
Posted: Mon May 28, 2018 5:31 pm
Installing ckfinder is easy. All you do is set a path for the install. However it is failing to start and the full error is like the following:
Warning: is_writable(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/my_account/web/my-domain.com/public_html:/home/my_account/tmp) in /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php on line 330
Fatal error: Uncaught exception 'CKSource\CKFinder\Exception\InvalidConfigException' with message 'The temporary folder is not writable for CKFinder' in /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php:331 Stack trace: #0 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php(73): CKSource\CKFinder\Config->validate() #1 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/CKFinder.php(92): CKSource\CKFinder\Config->__construct('/home/my_account...') #2 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/pimple/pimple/src/Pimple/Container.php(113): CKSource\CKFinder\CKFinder->CKSource\CKFinder\{closure}(Object(CKSource\CKFinder\CKFinder)) #3 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/CKFinder.php(187): Pi in /home/my_accounmy_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php on line 331
I looked at the php.ini via Vesta CP. The open_basedir setting is:
;open_basedir =
To resolve the above error what would be the right syntax for open_basedir? Or - can this be fixed by modifying the .htaccess? How?
Warning: is_writable(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/my_account/web/my-domain.com/public_html:/home/my_account/tmp) in /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php on line 330
Fatal error: Uncaught exception 'CKSource\CKFinder\Exception\InvalidConfigException' with message 'The temporary folder is not writable for CKFinder' in /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php:331 Stack trace: #0 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php(73): CKSource\CKFinder\Config->validate() #1 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/CKFinder.php(92): CKSource\CKFinder\Config->__construct('/home/my_account...') #2 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/pimple/pimple/src/Pimple/Container.php(113): CKSource\CKFinder\CKFinder->CKSource\CKFinder\{closure}(Object(CKSource\CKFinder\CKFinder)) #3 /home/my_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/CKFinder.php(187): Pi in /home/my_accounmy_account/web/my-domain.com/public_html/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php on line 331
I looked at the php.ini via Vesta CP. The open_basedir setting is:
;open_basedir =
To resolve the above error what would be the right syntax for open_basedir? Or - can this be fixed by modifying the .htaccess? How?