Cannot run cgi, show plain text only (Ubuntu 13.10 Apache 2.4)

前端 未结 6 1263
盖世英雄少女心
盖世英雄少女心 2021-02-07 10:56

I just install Ubuntu 13.10 and I am trying to install Apache. But when I tried to run a perl file in cgi-bin, the browser showed only plain text.

My default.conf of Apa

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 11:48

    I encountered this problem when trying to setup bugzilla in Ubuntu 14.04 @Andrew's answer was helful and so was @Kevin's links.. so other than enabling cgi, ensure that perl's module for apache2 is installed. You can do this by:

    sudo apt-get install libapache2-mod-perl2
    

    This will automatically enable the module as well as restart apache server. If not do that manually.

    Don't have enough rep to upvote both of you, so thanks.

提交回复
热议问题