J john8889 New member Joined Oct 14, 2013 Messages 3 Oct 14, 2013 #1 say i would need a domain which able to read/write some file outside of the folder /home/username/domains/panel.mailmanual.com/public_html/thefolder would like it to write in /var/thefolder is that possible?
say i would need a domain which able to read/write some file outside of the folder /home/username/domains/panel.mailmanual.com/public_html/thefolder would like it to write in /var/thefolder is that possible?
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,567 Location www.poralix.com Oct 14, 2013 #2 Hello, Yes, if you consider to set correct permissions and take care of basedir restrictions in PHP.
J john8889 New member Joined Oct 14, 2013 Messages 3 Oct 15, 2013 #3 Unable to write nope, i was unable to write it. the upper level which can write is /home/username/thefolder if i create one here /home/thefolder it can not write. do i need to disable basedir, if gonna write there?
Unable to write nope, i was unable to write it. the upper level which can write is /home/username/thefolder if i create one here /home/thefolder it can not write. do i need to disable basedir, if gonna write there?
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,567 Location www.poralix.com Oct 15, 2013 #4 Yes, you really need to disable basedir restrictions in PHP at least for the desired user in order to achieve what you want.
Yes, you really need to disable basedir restrictions in PHP at least for the desired user in order to achieve what you want.
T thunn Verified User Joined Mar 13, 2012 Messages 166 Oct 16, 2013 #5 Disable open_basedir will be a security hole if your site is hacked. then the hacker can access to other places on your server.
Disable open_basedir will be a security hole if your site is hacked. then the hacker can access to other places on your server.
Arieh Verified User Joined May 27, 2008 Messages 1,127 Location The Netherlands Oct 16, 2013 #6 No need to disable it, just add your path for the domain, at Custom HTTPD Configurations http://help.directadmin.com/item.php?id=182 |?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/:/var/thefolder| Click to expand...
No need to disable it, just add your path for the domain, at Custom HTTPD Configurations http://help.directadmin.com/item.php?id=182 |?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/:/var/thefolder| Click to expand...