• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue open_basedir wrong in TYPO3

Sellighsphire

New Pleskian
Hi!

I've set up a new subdomain and installed a new fresh TYPO3 v8.7
I've configured TYPO3 properly so it works fine (for the first sight).
I then checked ability to perform gd-operations and TYPO3 failed with following error:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1170251401: Could not create directory "typo3temp/assets/images/"! | RuntimeException thrown in file /var/www/vhosts/domain.de/test.domain.de/typo3_src-8.7.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php in line 2322. Requested URL: http://test.domain.de/typo3/sysext/...all[context]=backend&install[controller]=tool

At this point I can't figure out what the real problem is.
I then discovered another problem within TYPO3:

Core: Error handler (BE): PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/vhosts/domain.de/test.domain.de/../typo3temp/assets/compressed/xtheme-t3skin-dfd71f128a8ee5183ccd80adfbffc743.css) is not within the allowed path(s): (/var/www/vhosts/domain.de/test.domain.de/:/tmp/:/typo3:../) in /var/www/vhosts/domain.de/test.domain.de/typo3_src-8.7.0/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 440

I was thinking that the "../" part is the problem. Seems to me that TYPO3 is looking at the wrong basedir.
So the question is: Is this some problem from TYPO3 or is it a problem within the configuration of plesk?
Any hint will be appreciated much.

TYPO3 is installed in path /var/www/vhosts/domain.de/test.domain.de/ and therefore the typo3temp-folder is located at /var/www/vhosts/domain.de/test.domain.de/typo3temp/

Regards
Jens
 
Hi Sellighsphire,

So the question is: Is this some problem from TYPO3 or is it a problem within the configuration of plesk?
Any hint will be appreciated much.
Plesk doesn't configure your content at all, not even the content that you install over the application vault. It might "pack" apps, though, but if the content needs additional modifications ( in your case: additional open_basdir - expansion ), you have to modify that by yourself. :)

Pls. always consider to check as well user and group permissions of your content, to avoid issues/errors/problems.
 
Back
Top