0

Directory structure of my server

/home/server/public_html/maindata
/home/server/public_html/files

when I set open_basedir= "/home/server/public_html/files" ,out put of www.domain.com/maindata is

"No input file specified."

how to resolved this isue?

Ram Sharma
  • 8,676
  • 7
  • 43
  • 56
  • What is the code? What line is the error on? What is it supposed to do? – kainaw Nov 14 '14 at 12:47
  • there is no error in code. but browser get output "No input file specified" – Jayesh Vekariya Nov 14 '14 at 12:50
  • when i set open_basedir= "/home/server/public_html" it is perfectly work – Jayesh Vekariya Nov 14 '14 at 12:51
  • but i want to open_basedir= "/home/server/public_html/files" – Jayesh Vekariya Nov 14 '14 at 12:51
  • See [manual](http://php.net/manual/en/ini.core.php#ini.open-basedir) of `open_basedir` for what is it for. `open_basedir= "/home/server/public_html/files` allows your php instance to only access files within `/home/server/public_html/files` and disallow access anithing outside of it. – MIvanIsten Nov 14 '14 at 12:54
  • It could be that the open_basedir includes everything after the =. So, it is including the " at the beginning and end. Try removing the quotes. – kainaw Nov 14 '14 at 18:12

0 Answers0