Giter Club home page Giter Club logo

Comments (9)

duhaime avatar duhaime commented on August 20, 2024

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.

triplingual avatar triplingual commented on August 20, 2024
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.

duhaime avatar duhaime commented on August 20, 2024

Just to check, what happens if you run the following?

sudo a2enmod cgi
sudo service apache2 restart

from lab-workshops.

triplingual avatar triplingual commented on August 20, 2024
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:
screenshot 2016-08-24 08 03 27

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.

triplingual avatar triplingual commented on August 20, 2024

Never mind on the alias. Just learned about and found /conf-enabled/serve-cgi-bin.conf.

from lab-workshops.

duhaime avatar duhaime commented on August 20, 2024

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.

triplingual avatar triplingual commented on August 20, 2024

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.

duhaime avatar duhaime commented on August 20, 2024

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.

triplingual avatar triplingual commented on August 20, 2024

Def. In fact . . .

from lab-workshops.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.