ujcis Posted yesterday at 10:33 AM Posted yesterday at 10:33 AM 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! Quote
wolstech Posted yesterday at 12:59 PM Posted yesterday at 12:59 PM 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. Quote
ujcis Posted yesterday at 09:17 PM Author Posted yesterday at 09:17 PM 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. Quote
wolstech Posted 23 hours ago Posted 23 hours ago 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. Quote
ujcis Posted 20 hours ago Author Posted 20 hours ago (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 20 hours ago by ujcis Quote
wolstech Posted 19 hours ago Posted 19 hours ago Krydos can help with the WSGI and troubleshooting. 1 Quote
Krydos Posted 4 hours ago Posted 4 hours ago 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.