Hello,
I compiled php 5.1.1 as CGI ( I have 4.4.0 - it is working fine ) as:

/configure --enable-force-cgi-redirect --prefix=/usr/local/php5-cgi --with-curl --with-curl-dir=/usr/local/lib --with-gd --with-mysql --with-gd-dir=/usr/local/lib --with-gd-dir=/usr/local --with-gettext --with-jpeg-dir=/usr/local/lib --enable-xml --with-pear=/usr/share/pear --with-mcrypt --with-mhash --with-png-dir=/usr/local/lib --with-zlib --with-zlib-dir=/usr/local/lib --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --with-config-file-path=/usr/local/php5-cgi/ --with-config-file=/usr/local/php5-cgi/php.ini --enable-magic-quotes --enable-mbstring --enable-mbregex --enable-pcntl --enable-shared --with-ttf --with-freetype-dir --with-gettext --enable-gd-native-ttf


And I add to my httpd.conf file:

ScriptAlias /php5 /usr/local/php5-cgi/bin/

Options +ExecCGI +FollowSymLinks
AllowOverride None

Action php5-cgi /php5/php

And, as I am using DirectAdmin to /usr/local/directadmin/data/users/USER/httpd.conf

Options Includes Indexes FollowSymLinks MultiViews
AddHandler php5-cgi .php5

When I test it:
http://IP/info.php5
http://IP/info.php

Both of that are working fine.

it is wotking great, but when I try to allow to php5 from domain it isn't:

http://domain.com/info.php5 - it don't work
http://domain.com/info.php - is working fine

Do you have any idea how to fix it?

Thanks a lot. I have been working on it for 6hours. I don't have any idea how I can do it. Thanks a lot.

Regards,
Xeryph