Drakkon
Diamond Member
I have a very annoying server setup at the university I'm working at where PHP is compiled as a CGI application and it runs outside the web tree in apache. Thus i have to put the
#! thing at the top of every php script n addition to putting them in a cgi-bin directory whcih no other filetypes can run from. On top of this all php runs under https whereas all html gets run under a http domain. so while my php script runs at https://www.mysite.edu/cgi-bin/domain/script.php man image file has to be run at http://domain.mysite.edu/images/image.jpg.
Screwy enough yet?
Well my newest dilemma is this : i have a PHP page that needs to be guarded by some sort of auth. I thought htaccess would be the easiest but apparently when you run PHP outside of the web tree apache doesn't process the htaccess file. Or at least thats the impression I'm getting (the web group here is of NO help whatsoever btw). Any thoughts/ideas of what can be done using this config (outside of using a cookie/regular login/pass script)?
I'm not sure why it is setup this way if its for security or because someone is lazy or they just don't want to mess with it anymore but its making it impossible to create any neat sites. I can't do any flash/php modules because due to flash player security a http domain cannot access an https domain and i cant run a swf under the https domain (just as another aannoying example of something i would like to find a way to do but cant at this point).
#! thing at the top of every php script n addition to putting them in a cgi-bin directory whcih no other filetypes can run from. On top of this all php runs under https whereas all html gets run under a http domain. so while my php script runs at https://www.mysite.edu/cgi-bin/domain/script.php man image file has to be run at http://domain.mysite.edu/images/image.jpg.
Screwy enough yet?
Well my newest dilemma is this : i have a PHP page that needs to be guarded by some sort of auth. I thought htaccess would be the easiest but apparently when you run PHP outside of the web tree apache doesn't process the htaccess file. Or at least thats the impression I'm getting (the web group here is of NO help whatsoever btw). Any thoughts/ideas of what can be done using this config (outside of using a cookie/regular login/pass script)?
I'm not sure why it is setup this way if its for security or because someone is lazy or they just don't want to mess with it anymore but its making it impossible to create any neat sites. I can't do any flash/php modules because due to flash player security a http domain cannot access an https domain and i cant run a swf under the https domain (just as another aannoying example of something i would like to find a way to do but cant at this point).