How to install wfastcgi on server without internet? - python

I have to install python package wfastcgi.py to get my web app run on individual server. IIS and Flask are working properly I guess. I tried a lot of ways and I have no idea. I want to start all over again with concrete instructions. Pip also doesn't work, I am using python through Anaconda3.
What I need to do to make wfastcgi work? By "working" I mean command "wfastcgi-enable" gives positive answer in cmd. Every tip is priceless.
Thanks a lot!

Related

Deploying python application

I have created a python application containing rest apis which call machine learning code on PyCharm IDE. I want to deploy rest apis on IIS.
I copy and past complete PyCharm project in virtual directory. The issue I am facing is dependencies like tensorflow and keras are not being found due to which API is giving "Internal server error", however I am able to call rest services.
please guide.
As FishingCode suggested please share code snippet to understand the exact issue.
Please include and install requirements.txt file in virtual environment.
Also, you may try installing using docker tutorial

Is it possible to build a homepage with python on virtual server when the sudo command is disabled?

I've studied Python and Django, building a homepage.
And I've been using a virtual memory on Ubuntu server(apache2 2.4.18/ php-7.0/ MariaDB 10.0.28 with phpMyAdmin/ FTP) offered for developers.
The server hadn't allowed users to use python, but I asked the server administrator to give me a permission and I got it.
The problem was, however, that I was not allowed to use not only any sudo command line but also basic commands like apt-get and python.
The only administrator can do so, therefore it seems that I cannot install any neccessary things-virtualenv, django, and so on- by myself.
Just to check whether .py file works or not, I added <?php include_once"test.py" ?> on the header of index.php about the test.py where only print "python test"(meaning only python 2 is installed on this server) is written. It works. That is, I guess, all I can do is uploading .py file with Filezilla.
In this case, can I make a homepage with Python on this server efficiently? I was thinking about using Bottle Framework, but also not sure.
I am confused with wondering whether I should use PHP on this server and using Python on PythonAnywhere in the end.
I am a beginner. Any advice will be appreciated :)
Have you thought about asking the admin to start a virtualenv for you and give you permissions to work in that environment?

How to run Flask-SuperAdmin example at local host?

I'm learning flask web app.
I find a flask extension called Flask-SuperAdmin from github https://github.com/SyrusAkbary/Flask-SuperAdmin
I've already fork it, but I don't know how to run Flask-SuperAdmin example at local host.
Thanks!
You don't need to fork it to run it; you fork it if you want to make changes to it or to fix a bug in it.
To install it, use the standard Python installation tools:
pip install Flask-SuperAdmin
Then, read the quickstart section of the documentation to help you get started.

How to install twistedweb python library on a web server

I have a small application written in python using TwistedWeb. It is a chat server.
Everything is configured right now as for localhost.
All I want is to run this python script on a server(shared server provided by Fatcow.com).
I mean that the script will be working all the time and some clients will connect/disconnect to it. Fatcow gives me python 2.5 without any custom libraries. Is there a way and a tutorial how to make it work with TwistedWeb?
Thanks in advice.
the easy_install/pip modes of installation are very likely to fail because of broken dependencies. You will have to download the tar and build it yourself. See the attached link for more info on installing the same on CENTOS.
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#CanIinstallTwistedusingeasy_installorpip
I have contacted Fatcow.com support. They do not support SSH connections and do not support Python 2.7 with Twisted library, especially python socket application as server. So it is dead end.
Question resolved.

Installing django on dreamhost (help a newb out)

I'm trying to get django running on my dreahost account. I've been trying to sort of use two tutorials at once: the one on the dreamhost wiki and the one in the django book.
I installed django using the script on the wiki page, but I ran into trouble immediately while trying to work through the django book. It says:
To start the server, change into your project directory (cd mysite), if you haven’t already, and run this command:
python manage.py runserver
This launches the server locally, on port 8000, accessible only to connections from your own computer. Now that it’s running, visit 127.0.0.1:8000 with your Web browser. You’ll see a “Welcome to Django” page shaded in a pleasant pastel blue. It worked!
Those instructions seem to assume that you're developing locally, not on a shared server. Where the heck am I supposed to look for the "Welcome to Django" page after starting the server? In my webroot? No dice.
Anyway, I tried to blunder ahead through the django book to its hello world tutorial (chapter 3). But once I've edited the view file and the URLconf, I don't get a nice clean "hello world" text. Instead (as you can see) I get an "import error".
Any help would be greatly appreciated.
Don't try and learn Django via your server. Install it on your local computer, learn how it works, develop your project, and then install it on Dreamhost.
Your project assumes that 1) your app is called "mysite", and 2) mysite is a package, e.g. mysite/__init__.py exists. If either of those are false then correct your code and/or file structure.
This is an old post and am sure you have found the answer by now. I have solved this problem by using the command
python manage.py runserver mydomain.com:8080

Categories

Resources