ujcis Posted April 3 Posted April 3 Hi! I'd like an additional domain (if I can get one) with the url wegocarryfirst.helioho.st. I intend to run a flask app on it, and I'll be needing wsgi control as well. My username is ujcis. Thank you!
wolstech Posted April 3 Posted April 3 Domain added. It can take up to 2 hours to work. We can't add the WSGI access at the moment because the app doesn't exist yet. The WSGI file must exist before that can be requested. Let us know when the app has been installed and we can set that up for you.
ujcis Posted April 3 Author Posted April 3 Thanks! I've decided to use PHP, however I ran into an issue. I'm not sure where to place my htaccess file. I placed it in the new wegocarryfirst.helioho.st folder's root and it's content is: # .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] I'm trying to route everything to index.php but I'm getting 502 Bad Gateway (nginx) or "Not Found". I'll appreciate any help. Thanks again.
wolstech Posted April 3 Posted April 3 We're looking into this. It looks like Johnny's PHP may have something wrong with it. You're not the only one seeing Gateway Timeout unexpectedly when Apache isn't restarting. I put a basic phpinfo on your account and renamed the .htaccess to disable that...even that won't run: http://wegocarryfirst.helioho.st/phpinfo.php gives a 504 for me.
ujcis Posted April 4 Author Posted April 4 (edited) Thanks for your help. For now, I'll temporarily go with flask (I'll try PHP again when everything's normal). Can you kindly enable wsgi control for me? I followed the python set up instruction and have /cgi-bin/test.py running successfully, however, my flask app located in the main directory (wegocarryfirst.helioho.st) is showing "Internal Server Error". I once had a python app here with error logs. I'm not sure if I enabled the error logs myself or by the help of a moderator. The app runs without issues on my localhost. In summary, I need wsgi control and error_logs. Thanks again! Edited April 4 by ujcis
Krydos Posted April 4 Posted April 4 WSGI control access has been enabled on the domain wegocarryfirst.helioho.st. To restart your Flask app and load new code changes in simply edit /home/ujcis.helioho.st/wegocarryfirst.helioho.st/flask.wsgi. Adding a blank line, removing a blank line, adding a space, or removing a space are examples of editing the file. As long as the last modified timestamp changes it will clear the server cache. Let us know if you run into any issues. The logs should show up in Plesk. If they don't let us know and we can see if there are any additional global logs that aren't being filtered into your domain logs.
Recommended Posts