• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Composer - Plesk Obsidian

NateWon

Basic Pleskian
Hello,

Im attempting to run a silverstripe application on Plesk Obsidian, the application works fine on a local dev server, however the configuration doesn't appear to work on the live server. I attempted to use the extension Composer to install the packages however it didn't seem to resolve the issues.

I believe the issues are all configuration based, as PHP version is the same. I've tried builds and an exact copy of the source files, running the silverstripe /dev/build?flush=1 command shows some errors, the most noteable being
"open_basedir restriction in effect."

Is there somewhere with clear information on how to use the extension, local I would just run composer install and it would work. However the server version seems to create references.
 
More info, I've removed the class that was thrown an exception during a reflection attempt, the site now runs in some capacity.
But am receiving this error, which provides more detail on the above.

[Warning] is_readable(): open_basedir restriction in effect. File(/opt/plesk/php/7.3/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php) is not within the allowed path(s): (/var/www/vhosts/example.com/:/tmp/)

How do I add the "/opt/plesk/php/7.3/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php"
location to the php base directories I've attempted a few variations including,

{DOCROOT}{/}{:}{TMP}{/}{:}/opt/plesk/php/7.3/share/pear/Zend/
 
I have some experience running Silverstripe sites, albeit older ones, and they can be troublesome when it comes to the open_basedir and set_include_path. Often the errors Silverstripe throws aren't what they seem.

Did you try:

{DOCROOT}{/}{:}{TMP}{/}{:}/opt/plesk/php/7.3/share/pear

Also, compare the list of disabled PHP functions on your dev and live server... Or, for that matter, any other phpinfo() differences.
 
Last edited:
Thanks Ales, yes you are correct it is to be entered as {DOCROOT}{/}{:}{TMP}{/}{:}/opt/plesk/php/7.3/share/pear
 
Back
Top