cancel
Showing results for 
Search instead for 
Did you mean: 

Open_basedir error while log into admin area

SOLVED

Open_basedir error while log into admin area

Hello Friends I have just installed magento via softaculous and it installed successfully. When I access the website it works fine but when I try to log in to admin panel it shows error. The error message was "An error has happened during application run. See exception log for details.". When I check exception log it says "[2020-03-03 16:36:38] main.CRITICAL: Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/admin/web/shop.rrsmedia.tk/public_html:/home/admin/tmp) in /home/admin/web/shop.rrsmedia.tk/public_html/vendor/magento/framework/Filesystem/DirectoryList.php on line 101 {"exception":"[object] (Exception(code: 0): Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/admin/web/shop.rrsmedia.tk/public_html:/home/admin/tmp) in /home/admin/web/shop.rrsmedia.tk/public_html/vendor/magento/framework/Filesystem/DirectoryList.php on line 101 at /home/admin/web/shop.rrsmedia.tk/public_html/vendor/magento/framework/App/ErrorHandler.php:61)"} []"

 

Then I add "/home/admin/tmp" in open_basedir in php.ini and check if it works or not. But still got nothing. Can anyone help me with this.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Open_basedir error while log into admin area

Hello @rashmi_ranjan 

did you try this solution?

https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-th...

Or if it has file permission error, you can contact hosting guys too.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

View solution in original post

1 REPLY 1

Re: Open_basedir error while log into admin area

Hello @rashmi_ranjan 

did you try this solution?

https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-th...

Or if it has file permission error, you can contact hosting guys too.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now