Why are my php tags converted to html comments?

前端 未结 12 1779
[愿得一人]
[愿得一人] 2020-12-31 19:44

A friend\'s lamp host seems to be misconfigured. I try to execute php, but it doesn\'t seem to be working.

In Chrome\'s inspect element:



        
12条回答
  •  臣服心动
    2020-12-31 20:28

    If you are placing your code outside the standard directories (development scenario, in my case) you should check in your /etc/apache2/mod-enabled or /etc/apache2/mod-available in the php5.conf (for ubuntu) and comment the lines that the comment indicates:

    # To re-enable PHP in user directories comment the following lines
    # (from  to .) Do NOT set it to On as it
    # prevents .htaccess files from disabling it.
    
        
            php_admin_value engine Off
        
    
    

提交回复
热议问题