Running PHP file outside of documentroot (cgi-bin folder)
I am working with a colleague to set up their local environment on a MAC in XAMPP, on windows my vhost looks like the one below. When I access a URL like http://domain.local/cgi-bin/handler.php the web server processes the PHP correctly but on his we get a 500 server error and this message... The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: We tried changing the name of the cgi-bin folder to something else as I noticed there was another alias in httpd.conf but this had no effect...so it seems to me like the issue