Apache shows PHP code instead of executing it

前端 未结 26 1860
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 02:23

I have recently been trying to install PHP and Apache on my computer. After many hours, they\'re installed. I have modified the httpd.conf and php.ini files like everyone sa

26条回答
  •  耶瑟儿~
    2020-11-22 03:04

    open the file

    /etc/apache2/httpd.conf

    and change

    #LoadModule php5_module libexec/apache2/libphp5.so
    

    into

    LoadModule php5_module libexec/apache2/libphp5.so
    

    So just uncoment the PHP module load in httpd.conf

提交回复
热议问题