apache - Can't load PHP but downloaded as .php fie -
i using .php file , have installed php module sudo apt-get install libapache2-mod-php5
, , sudo a2enmod php5
start service. assigned route index.php
file, when accessing route, browser downloaded index.php
file instead of open/execute it.
i googled issue says should add together handler php module can handle type of file , execute it. method open /etc/apache2/mods-enabled/php5.conf
, add together line
addhandler php5-script .php
and tried ,it still didn't work.
i wondering know other improve solutions situation?
php apache
No comments:
Post a Comment