Hello, I'm running php as a cgi. This way I can use the suexec wrapper.
The thing is.. with #!/path/to/binary at the top of each script, I can't use cookies or sessions, because it conflicts with the headers.
I have this in my vhost (and obviously isn't working):
AddType application/x-httpd-php .php
ScriptAlias /php/ "/usr/local/php-shell/"
Action application/x-httpd-php /bin/php
path to binary is /usr/local/php-shell/bin/php
This is in error_log:
script not found or unable to stat: /usr/local/php-shell/test.php
But the script DOES work with the #!/path/to/binary at the top. I need to get it to work withOUT it, for sessions/cookies.
Help much appreciated
Thanks