Hello,
I have a fresh Install of Debian with a fresh install of NAV. (The machine briefly had the beta version, but I purged that package.) Installing went fine, but I had to run the database creation script manually for some reason. And I had to manually download and install a backport of python to meet the version requirements.
I get this error in my apache2 error log when I try to access AlertProfiles :
/var/www/nav/alertprofiles/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Everything else seems to be running fine. I can add locations, rooms, devices and the log suggests all the devices I add are checked by ping.
I have tried renaming the file, but that gives me a 403 instead. Commenting out the php_flag line in .htaccess gives what looks like the actual code instead of the page. Using php_value instead of php_flag gives the same message.
Contents in the file are as follows :
SetHandler none php_flag register_globals on
The machine is running on : Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 NAV version : 3.4.4
Anyone got any pointers on what could be wrong?
On Thu, 4 Dec 2008 14:20:01 +0100 "Lars Marius Schjaerin" lms-list@brednett.no wrote:
/var/www/nav/alertprofiles/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[snip]
The machine is running on : Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 NAV version : 3.4.4
Anyone got any pointers on what could be wrong?
Hi Lars,
It doesn't look like the PHP module is enabled in your server config. You're on Debian, so perhaps an "a2enmod php" (or php4/php5) followed by an Apache2 restart will work.