<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Hi,
<div><br /></div>
<div>(1) Is there any more specific error on Apache error logs?</div>
<div><br /></div>
<div>(2) I’d make sure first Apache starts properly as a service. Can you test something else (perhaps a simple html page)  to make the Apache service is configured properly?</div>
<div><br /></div>
<div>(3) If getting (1) and (2) did not help enough for you to figure it out, please submit exact steps on how yo configured Apache to start as a service and the Apache configuration for your Flask app</div>
<div><br /></div>
<div>Thanks,</div>
<div>Unai Rodriguez</div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">On 5 Aug 2018, 14:31 +0200, CCP Dragonedge <ccp@drsb.com.my>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div dir="ltr">
<div>Hi,</div>
<div><br /></div>
<div>I am deploying my Flask application on Apache24 using mod_wsgi 4.5.4 running on a Windows 7 machine. I have encountered something strange - when I start and stop Apache manually (i.e. by typing httpd.exe from the command line to start, and just hitting ctrl-C to stop), everything works fine.</div>
<div><br /></div>
<div>When I, however, install Apache as a Windows service (by doing a "httpd -k install"; so it starts up when the machine is booted), I get a "500 internal server error" when I try to access my Flask application.</div>
<div><br /></div>
<div>According to the error logs, Flask can't see my modules. I know it's something to do with Apache because when I just run the Flask server ("python myapp.py"), I have no problems.</div>
<div><br /></div>
<div>Anyone experience this? If so, how did you overcome this? And I hope this isn't off-topic - if it is, sorry and please point me to the right place.</div>
<div><br /></div>
<div>Thanks,</div>
<div>p<br /></div>
</div>
_______________________________________________<br />
Flask mailing list<br />
Flask@python.org<br />
https://mail.python.org/mailman/listinfo/flask<br /></blockquote>
<div></div>
</div>
</body>
</html>