I understand now! i installed Apache2.tcz, php5.tcz and apache2-mod-php5.tcz as ondemand.
with your tips, i don't load apache2-mod-php5, and just load apache2 and php5, and use the instruction info in php5.tcz, and try to activate php5 in apache2
but i can't!
when i try to request a sample php file in default htdocs ("/usr/local/apache2/htdocs/test.php") i received 500 Internal server error, and in log file i have:
(13)Permission denied: exec of '/usr/local/apache2/htdocs/test.php' faild
and when i try to change htdocs to some directory in my /home/tc, i still receive 500 internal server error but in log files i have:
(8)Exec format error: exec of '/home/tc/htdocs/test.php' faild
what is wrong with my apache and php?
===================================================
i found my problem, i should add this line in my every php file!:
#!/usr/local/bin/php-cgi
it worked, but it's not the good way!!!!, i should change permission of every file to 777!
is there any other solution to run php as apache_mod or somthing like that?
or should i download and configure and install fresh php source?