Custom php.ini (again&again)

i’m trying to do this, all according to wiki, but in browser
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
and in logs
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LogLevel debug’ to get a backtrace.
Options ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi

RewriteEngine On
Rewritebase /
RewriteCond …

_SERVER[“SCRIPT_FILENAME”] /dh/cgi-system/php.cgi
_SERVER[“SCRIPT_NAME”] /cgi-system/php.cgi

the error is in Action directive in .htaccess, i know it, but how to sort it out?
i’m using php4