The server encountered an internal error or misconfiguration and was unable to complete your request

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I created and hosted my python flask script in apache, everything is fine.
when I go to my ip in the browser I get this error msg.



`Internal Server Error



The server encountered an internal error or misconfiguration and was unable to complete your request.`



and the apache error.log says,



 [Sun Feb 25 21:03:57.413129 2018] [wsgi:error] [pid 4536:tid 2972494656] [client 192.168.1.2:48610] 
ImportError: No module named flask


but flask is successfully installed in python3. I installed it using pip3 install flask and if I run my flask file also running successfully,



But apache/wsgi referring python2 to run my script. please help me to resolve this. Thanks in advance!










share|improve this question

























    up vote
    0
    down vote

    favorite












    I created and hosted my python flask script in apache, everything is fine.
    when I go to my ip in the browser I get this error msg.



    `Internal Server Error



    The server encountered an internal error or misconfiguration and was unable to complete your request.`



    and the apache error.log says,



     [Sun Feb 25 21:03:57.413129 2018] [wsgi:error] [pid 4536:tid 2972494656] [client 192.168.1.2:48610] 
    ImportError: No module named flask


    but flask is successfully installed in python3. I installed it using pip3 install flask and if I run my flask file also running successfully,



    But apache/wsgi referring python2 to run my script. please help me to resolve this. Thanks in advance!










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I created and hosted my python flask script in apache, everything is fine.
      when I go to my ip in the browser I get this error msg.



      `Internal Server Error



      The server encountered an internal error or misconfiguration and was unable to complete your request.`



      and the apache error.log says,



       [Sun Feb 25 21:03:57.413129 2018] [wsgi:error] [pid 4536:tid 2972494656] [client 192.168.1.2:48610] 
      ImportError: No module named flask


      but flask is successfully installed in python3. I installed it using pip3 install flask and if I run my flask file also running successfully,



      But apache/wsgi referring python2 to run my script. please help me to resolve this. Thanks in advance!










      share|improve this question













      I created and hosted my python flask script in apache, everything is fine.
      when I go to my ip in the browser I get this error msg.



      `Internal Server Error



      The server encountered an internal error or misconfiguration and was unable to complete your request.`



      and the apache error.log says,



       [Sun Feb 25 21:03:57.413129 2018] [wsgi:error] [pid 4536:tid 2972494656] [client 192.168.1.2:48610] 
      ImportError: No module named flask


      but flask is successfully installed in python3. I installed it using pip3 install flask and if I run my flask file also running successfully,



      But apache/wsgi referring python2 to run my script. please help me to resolve this. Thanks in advance!







      server apache2 python python3 flask






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 25 at 15:47









      pyd

      1012




      1012

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009650%2fthe-server-encountered-an-internal-error-or-misconfiguration-and-was-unable-to-c%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009650%2fthe-server-encountered-an-internal-error-or-misconfiguration-and-was-unable-to-c%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491