title: How can I read files outside the cgi-bin folder?
body: <p>I've written a cgi script that processes data that is generated by another program. The problem is that this file is located outside the cgi-bin. How can I make sure that my perl scripts can read this file? I've already tried changing the permissions of this file and I also tried to make a link in the cgi-bin folder but Apache is too smart for that. I guess possible solutions are:</p>
  
  <ul>
  <li>Edit the Apache config file in a way that Apache can read files outside the cgi-bin.</li>
  <li>Run the cgi script with a 'portable' webserver. Like you can do with python (python -m http.server [port]). Unfortunately this does not execute the perl cgi scripts.</li>
  </ul>
  
  <p>I'm kind of stuck how to do either one of the solutions.</p>