Apache downloading php files instead of executing them -
i trying install phpmyadmin in ubuntu server , when try access via browser it, php file downloads instead of displaying web page. placed phpinfo testfile in /var/www , working fine.
i have commented lines in php5.conf file:
<filesmatch ".+\.ph(p[345]?|t|tml)$"> sethandler application/x-httpd-php </filesmatch> <filesmatch ".+\.phps$"> sethandler application/x-httpd-php-source # deny access raw php sources default # re-enable it's recommended enable access files # in specific virtual host or directory order deny,allow deny </filesmatch> # deny access files without filename (e.g. '.php') <filesmatch "^\.ph(p[345]?|t|tml|ps)$"> order deny,allow deny </filesmatch> # running php scripts in user directories disabled default # # re-enable php in user directories comment following lines # (from <ifmodule ...> </ifmodule>.) not set on # prevents .htaccess files disabling #<ifmodule mod_userdir.c> # <directory /home/*/public_html> # php_admin_value engine off # </directory> #</ifmodule>
i using apache/2.4.6 , ubuntu server 13.10
if installed phpmyadmin application, try download source code official website , run manually (copy directory /var/www , add virtualhost settings in apache config ) it's easier try decide issue.
Comments
Post a Comment