Apache shows php code instead of executing -
i have been trying install php , apache on computer. after many hours, they're installed. have modified httpd.conf , php.ini files says. created simple php script:
<?php phpinfo(); ?>
but when seek run http://127.0.0.1/phpinfo.php
shows source code instead of executing. using apache2, php5 , windows vista. have been searching on net without success , banging head against wall. can save me concussion?
edited lines:
php.ini:
short_open_tag = on
httpd.conf
loadmodule php5_module "c:/php/php5apache2_2.dll" addtype application/x-httpd-php .php addtype application/x-httpd-php-source .phps phpinidir "c:/php"
you must enable php! check folder mods_enabled
in apache directory see if find file named php
. don't remember extension think it's .so
.
also check in var/log/apache2/error.log
see if have errors.
php apache
No comments:
Post a Comment