Extension PHP5 does not parse in XAMPP

前端 未结 4 2077
温柔的废话
温柔的废话 2020-12-06 08:35

I\'ve installed XAMPP Apache server and put my website into htdocs. I\'ve started Apache server. On my website I\'ve got files with extension PHP and with extension PHP5.The

4条回答
  •  隐瞒了意图╮
    2020-12-06 09:31

    1. Follow the path c:/xampp/apache/conf/extra/httpd-xammp

      Open httpd-xammp

    2. Find the area of the text that resembles this:

       
         SetHandler application/x-httpd-php   
      
      
          SetHandler application/x-httpd-php-source
      
      
    3. replace the top line of the code with the following:

       
      
    4. so the text resembles the following:

       
          SetHandler application/x-httpd-php  
      
      
          SetHandler application/x-httpd-php-source
      
      

    That worked for me.

    Good luck..

提交回复
热议问题