PDA

View Full Version : php_flag error after ./build apache



vriznyk
04-09-2009, 02:14 PM
I updated Apache using
./build apache in custombuild.

After apache shows me:

The server encountered an internal error or misconfiguration and was unable to complete your request.
...
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

And log:

.../public_html/boards/: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration



.htaccess:

...
php_flag display_errors off
RewriteEngine on
RewriteBase /boards/
...

I see RewriteRule-s do not work too...
Help me to solve the problem.

smtalk
04-09-2009, 02:30 PM
Try: ./build php n

vriznyk
04-09-2009, 02:49 PM
Sorry, nothing was changed.
The same problem.

smtalk
04-10-2009, 02:32 AM
Please post an output of: ./build options.

vriznyk
04-10-2009, 05:45 AM
# ./build options


Apache: 2.2.11
Dovecot: 1.1.13
AWstats: no
exim.conf update: yes
MySQL: 5.0.77
MySQL backup: yes
PHP: 5.2.9 as CGI with mail() header patch
phpMyAdmin: 3.1.3.1-all-languages
ProFTPD: no
Atmail webmail: no
RoundCube webmail: 0.2.1
Auto updates/notifications: no
Run "clean" every time: no
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: yes
Show texts in bold: yes
SquirrelMail: no
UebiMiau: 3.11
Zend Optimizer: no

There is a htscanner program. It was installed on server, but after rebuilding Apache and PHP, it seems dont works.
Maybe reinstall or reconfig it? If yes, please tell me how.

smtalk
04-10-2009, 06:20 AM
You have PHP installed as CGI (suPHP), so you cannot use php_flag in .htaccess.

vriznyk
04-13-2009, 04:42 AM
Using the htscanner we can use php_* directives in .htaccess file.
It was working till i reloaded apache.
Now, after installation htscanner - dont working.