I'm trying to set up a web app (which I didn't make) on a server which uses an .htaccess file written like this:
<Files *.php> SetHandler su-cgi-script SetEnv INTERPRETER_PATH /usr/bin/php-cgi </Files>
I've installed LAMPP with all the necessary libraries, but I forgot the php5-cgi package and now I'm trying to set it up.
I've installed it and enabled it with
a2enmod cgi. But it still doesn't work and I'm wondering if I need to somehow change the php configuration file loaded. The one displayed on the
phpinfo(); page shows that the one loaded is
/etc/php5/apache2/php.ini I thought it might work if I could change it to
/etc/php5/cgi/php.ini. Though I'm not familiar with this. Everything currently works fine if I get rid of the directives declared in the .htaccess file, but this is not a solution, just a proof that everything else works.