Jump to content

mkdir(): open_basedir restriction in effect.


anantamishra

Recommended Posts

Oops!
Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.

If the problem persists, please contact us.

For additional assistance, please reference the WHMCS TroubleShooting Guide »

League\Flysystem\Exception: Impossible to create the root directory "/home/<removed for security>/public_html/attachments". mkdir(): open_basedir restriction in effect. File(/home/<removed for security>) is not within the allowed path(s): (/home/<removed for security>/public_html:/home/<removed for security>public_shtml:/home/<removed for security>/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt) in /home/<removed for security>public_html/vendor/league/flysystem/src/Adapter/Local.php:112
Stack trace:
#0 /home/<removed for security>public_html/vendor/league/flysystem/src/Adapter/Local.php(78): League\Flysystem\Adapter\Local->ensureDirectory('/home/admin/web...')
#1 /home/<removed for security>public_html/vendor/whmcs/whmcs-foundation/lib/File/Provider/LocalStorageProvider.php(0): League\Flysystem\Adapter\Local->__construct('/home/admin/web...')
#2 /home/<removed for security>public_html/vendor/whmcs/whmcs-foundation/lib/File/Configuration/FileAssetSetting.php(0): WHMCS\File\Provider\LocalStorageProvider->createFilesystemAdapterForAssetType('email_template_...', '')
#3 /home/<removed for security>public_html/vendor/whmcs/whmcs-foundation/lib/File/Storage.php(0): WHMCS\File\Configuration\FileAssetSetting->createFilesystemAdapter('')
#4 /home/<removed for security>public_html/vendor/whmcs/whmcs-foundation/lib/File/Storage.php(0): WHMCS\File\Storage->createFilesystem('email_template_...')
#5 /home/<removed for security>public_html/vendor/illuminate/support/Facades/Facade.php(261): WHMCS\File\Storage->emailTemplateAttachments()
#6 /home/<removed for security>public_html/vendor/whmcs/whmcs-foundation/lib/Mail/Message.php(0): Illuminate\Support\Facades\Facade::__callStatic('emailTemplateAt...', Array)
#7 /home/<removed for security>public_html/vendor/whmcs/whmcs-foundation/lib/Mail/Emailer.php(0): WHMCS\Mail\Message::createFromTemplate(Object(WHMCS\Mail\Template))
#8 /home/<removed for security>public_html/includes/functions.php(0): WHMCS\Mail\Emailer::factoryByTemplate(Object(WHMCS\Mail\Template), 32, '')
#9 /home/<removed for security>public_html/admin/sendmessage.php(0): sendMessage(Object(WHMCS\Mail\Template), 32, '', true, Array)
#10 {main}

 

Link to comment
Share on other sites

As the error mentions, you are trying to access files / directories and those are not listed in the open_basedir php settings.   But also, you appear to be using different users and that wont be possible without permission changes.   So you need to have WHMCS in one user or the other or relax security. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated