Comments (9)
Sorry @triplingual, I missed a character when typing the cgi bit in the wiki (it's now fixed).
When moving the flask server, the command should have been: sudo cp ~/BookwormDB/bookwormDB/bin/dbbindings.py /usr/lib/cgi-bin/
. It was confusingly sudo cp ~/BookwormDB/bookwormDB/bin/dbbindings.py /usr/lib/cgi-bin
before, so you may want to cat /usr/lib/cgi-bin
to see if it's indeed a Python file! If it's a directory, can you check that dbbindings.py is in that directory?
from lab-workshops.
ubuntu@ip-172-31-14-46:~$ ls -la /usr/lib/cgi-bin/
total 12
drwxr-xr-x 2 root root 4096 Aug 23 20:51 .
drwxr-xr-x 66 root root 4096 Aug 23 18:28 ..
-rwxrwxr-x 1 root root 2167 Aug 23 20:51 dbbindings.py
Definitely a file in a directory.
from lab-workshops.
Just to check, what happens if you run the following?
sudo a2enmod cgi
sudo service apache2 restart
from lab-workshops.
ubuntu@ip-172-31-14-46:~$ sudo a2enmod cgi
Module cgi already enabled
Starting the webserver succeeds, but same issue, same error. I believe I've got my EC2 rules configured correctly. Inbound:
Outbound is all/all/all/0.0.0.0/0
There's no alias from cgi-bin to /usr/lib/cgi-bin, FWIW. That doesn't look like the issue to me, but I'm shallow on this, remember.
from lab-workshops.
Never mind on the alias. Just learned about and found /conf-enabled/serve-cgi-bin.conf
.
from lab-workshops.
Hmm, if you're following the tutorial you shouldn't need to configure /etc/apache2/conf-enabled/serve-cgi-bin.conf
(you also would only need two security groups--one for HTTP on port 80 and the other for SSH on port 22); were you wanting to do something different than the tutorial? If so, does this thread help you?
from lab-workshops.
Turns out I may have built from inside an earlier directory, which would explain the fact that my GUI indicated it was for The Simpsons rather than the Federalist Papers.
Seems to be a success! http://54.152.238.88/federalist/
Now where's that how-to on making my own corpus? ;-)
from lab-workshops.
Haha, excellent! Peter and I started talking about expanding the guide to cover building on a CentOS/Amazon-flavored instance, and about also covering building a bookworm on a flat text file collection. Right now we're full steam ahead on end of summer projects (including the DH-Rees site, which is moving quickly)!
Is it safe to close this issue?
from lab-workshops.
Def. In fact . . .
from lab-workshops.
Related Issues (15)
- Suggested Workshop: Web Scraping Workshop HOT 2
- Using Github HOT 3
- Suggested workshop: find overrepresented terms
- Gathering a Building: Prototype
- Pull request tutorial HOT 2
- Palladio, per favore
- Building a Bookworm HOT 1
- Bookworm on Ubuntu - /etc/mysql/my.cnf HOT 4
- Bookworm on Ubuntu - consider @locahost for MySQL permissions HOT 1
- D3 workshop HOT 1
- Would like command line github workshop HOT 1
- Interactive Plots Workshop HOT 2
- word-vectors workshop: To be done HOT 3
- Word of thanks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lab-workshops.