My flask app with python3, apache and mod_wsgi is running in python2Apache 2 on VM *sometimes* not finding mods-enabled directoryIssues with Deploying Flask app on Ubuntu 14.04 VPS (Digital Ocean)Getting Flask to use Python3 (Apache/mod_wsgi)Setup Virtual host in home directory - Ubuntu 15.10Creating Virtual Hosts on ubuntu mint apacheVirtualBox: How to access virtual host on VM from host?apache2 not showing flask app on local serverCannot solve mod_wsgi exception in Flask setupCan't access flask app from dedicated ip address from 80 port using apachedeploying flask app on apache2 with mod_wsgi: no results & no errors

Why Is Death Allowed In the Matrix?

Fencing style for blades that can attack from a distance

What is the offset in a seaplane's hull?

LaTeX closing $ signs makes cursor jump

Why do I get two different answers for this counting problem?

What is the word for reserving something for yourself before others do?

Why do falling prices hurt debtors?

Smoothness of finite-dimensional functional calculus

Windows 98 hangs after entering password on fresh install

Test whether all array elements are factors of a number

Can I ask the recruiters in my resume to put the reason why I am rejected?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

In Japanese, what’s the difference between “Tonari ni” (となりに) and “Tsugi” (つぎ)? When would you use one over the other?

Did Shadowfax go to Valinor?

How do I create uniquely male characters?

An academic/student plagiarism

Show that if two triangles built on parallel lines, with equal bases have the same perimeter only if they are congruent.

Is it possible to do 50 km distance without any previous training?

Expeditious Retreat

To string or not to string

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

How does strength of boric acid solution increase in presence of salicylic acid?



My flask app with python3, apache and mod_wsgi is running in python2


Apache 2 on VM *sometimes* not finding mods-enabled directoryIssues with Deploying Flask app on Ubuntu 14.04 VPS (Digital Ocean)Getting Flask to use Python3 (Apache/mod_wsgi)Setup Virtual host in home directory - Ubuntu 15.10Creating Virtual Hosts on ubuntu mint apacheVirtualBox: How to access virtual host on VM from host?apache2 not showing flask app on local serverCannot solve mod_wsgi exception in Flask setupCan't access flask app from dedicated ip address from 80 port using apachedeploying flask app on apache2 with mod_wsgi: no results & no errors






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I developed flask app with python3.6, apache2 and mod_wsgi on ubuntu server.
But apparently my app is running python2 so some error happened and it bothers me.
I reckon my python path is correct...



This is wsgi file(catalog.wsgi);



#!/usr/bin/python3
import sys
import logging
import os
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/ItemCatalogApp/")

from catalogApp import app as application


This is my apache configure file(/etc/apache2/sites-available/catalogApp.conf);



<VirtualHost *:80>
ServerName xx3.xxx.xxx.xx
ServerAlias example.com
WSGIScriptAlias / /var/www/ItemCatalogApp/catalog.wsgi
WSGIDaemonProcess ItemCatalog python-path=/var/www/ItemCatalogApp/venv/lib/python3.6/site-packages

<Directory /var/www/ItemCatalogApp>
WSGIProcessGroup ItemCatalogApp
WSGIApplicationGroup %GLOBAL
Order deny,allow
Allow from all
</Directory>
ErrorLog $APACHE_LOG_DIR/error.log
LogLevel warn
CustomLog $APACHE_LOG_DIR/access.log combined
</VirtualHost>









share|improve this question




























    0















    I developed flask app with python3.6, apache2 and mod_wsgi on ubuntu server.
    But apparently my app is running python2 so some error happened and it bothers me.
    I reckon my python path is correct...



    This is wsgi file(catalog.wsgi);



    #!/usr/bin/python3
    import sys
    import logging
    import os
    logging.basicConfig(stream=sys.stderr)
    sys.path.insert(0,"/var/www/ItemCatalogApp/")

    from catalogApp import app as application


    This is my apache configure file(/etc/apache2/sites-available/catalogApp.conf);



    <VirtualHost *:80>
    ServerName xx3.xxx.xxx.xx
    ServerAlias example.com
    WSGIScriptAlias / /var/www/ItemCatalogApp/catalog.wsgi
    WSGIDaemonProcess ItemCatalog python-path=/var/www/ItemCatalogApp/venv/lib/python3.6/site-packages

    <Directory /var/www/ItemCatalogApp>
    WSGIProcessGroup ItemCatalogApp
    WSGIApplicationGroup %GLOBAL
    Order deny,allow
    Allow from all
    </Directory>
    ErrorLog $APACHE_LOG_DIR/error.log
    LogLevel warn
    CustomLog $APACHE_LOG_DIR/access.log combined
    </VirtualHost>









    share|improve this question
























      0












      0








      0








      I developed flask app with python3.6, apache2 and mod_wsgi on ubuntu server.
      But apparently my app is running python2 so some error happened and it bothers me.
      I reckon my python path is correct...



      This is wsgi file(catalog.wsgi);



      #!/usr/bin/python3
      import sys
      import logging
      import os
      logging.basicConfig(stream=sys.stderr)
      sys.path.insert(0,"/var/www/ItemCatalogApp/")

      from catalogApp import app as application


      This is my apache configure file(/etc/apache2/sites-available/catalogApp.conf);



      <VirtualHost *:80>
      ServerName xx3.xxx.xxx.xx
      ServerAlias example.com
      WSGIScriptAlias / /var/www/ItemCatalogApp/catalog.wsgi
      WSGIDaemonProcess ItemCatalog python-path=/var/www/ItemCatalogApp/venv/lib/python3.6/site-packages

      <Directory /var/www/ItemCatalogApp>
      WSGIProcessGroup ItemCatalogApp
      WSGIApplicationGroup %GLOBAL
      Order deny,allow
      Allow from all
      </Directory>
      ErrorLog $APACHE_LOG_DIR/error.log
      LogLevel warn
      CustomLog $APACHE_LOG_DIR/access.log combined
      </VirtualHost>









      share|improve this question














      I developed flask app with python3.6, apache2 and mod_wsgi on ubuntu server.
      But apparently my app is running python2 so some error happened and it bothers me.
      I reckon my python path is correct...



      This is wsgi file(catalog.wsgi);



      #!/usr/bin/python3
      import sys
      import logging
      import os
      logging.basicConfig(stream=sys.stderr)
      sys.path.insert(0,"/var/www/ItemCatalogApp/")

      from catalogApp import app as application


      This is my apache configure file(/etc/apache2/sites-available/catalogApp.conf);



      <VirtualHost *:80>
      ServerName xx3.xxx.xxx.xx
      ServerAlias example.com
      WSGIScriptAlias / /var/www/ItemCatalogApp/catalog.wsgi
      WSGIDaemonProcess ItemCatalog python-path=/var/www/ItemCatalogApp/venv/lib/python3.6/site-packages

      <Directory /var/www/ItemCatalogApp>
      WSGIProcessGroup ItemCatalogApp
      WSGIApplicationGroup %GLOBAL
      Order deny,allow
      Allow from all
      </Directory>
      ErrorLog $APACHE_LOG_DIR/error.log
      LogLevel warn
      CustomLog $APACHE_LOG_DIR/access.log combined
      </VirtualHost>






      python-3.x ubuntu flask apache2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 3:52









      K.awiK.awi

      134




      134






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55056462%2fmy-flask-app-with-python3-apache-and-mod-wsgi-is-running-in-python2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55056462%2fmy-flask-app-with-python3-apache-and-mod-wsgi-is-running-in-python2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко