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

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved