Page 1 of 1

How to set open_basedir to none?

Posted: Fri 15. Dec 2023, 07:50
by akong77
I install prestashop via application.And I also install prestashop theme to my prestashop.
I found a theme bug and call theme design help fix it.He say
Kindly please contact the hosting provider for the same error or ask thme to modify the open_basedir settings in your hosting and set them to none.
I see my keyhelp open_basedir settings is
##DOCROOT##/www:##DOCROOT##/files:##DOCROOT##/tmp
How to set open_basedir to none and could affect another website?

Re: How to set open_basedir to none?

Posted: Fri 15. Dec 2023, 10:07
by Alexander
You may want to familiarize yourself, what open_basedir is and how it can affect you and your server security:

https://www.php.net/manual/en/ini.core. ... en-basedir

tl;dr Setting this to none will allow the corresponding client (or applications running by that client) to access any file an the file system.
Of course, the normal OS file privilege system remains enabled. So if a file belongs to "root" and it has file privileges of "0600" - the client of course can not open this file.
Kindly please contact the hosting provider for the same error or ask thme to modify the open_basedir settings in your hosting and set them to none.
Be aware, that this is message by the support is, from a security standpoint, a disaster...

My advise:
1) Get to know, what directories are needed to be accessed by the application
2) Add only these directories to the open_basedir

Re: How to set open_basedir to none?

Posted: Fri 15. Dec 2023, 10:47
by akong77
OK, I will respond to theme design.Thanks a lot.