Minichan

Topic: pyIB problem, help please?

grey !C.MxxuCiTo started this discussion 15 years ago #8,593

Image went missingTrying to install pyIB. When you navigate to the script it opens like a normal text file would. What did I do incorrectly?

(Edited 2 minutes later.)

r04r joined in and replied with this 15 years ago, 2 minutes later[^] [v] #150,795

cgi-bin

vocalon !!jdS+H4VgV joined in and replied with this 15 years ago, 2 minutes later, 5 minutes after the original post[^] [v] #150,796

> pyIB
There's your problem.
Tinyboard > Wakaba > Kusaba X > Shiichan > pyIB

Anonymous D joined in and replied with this 15 years ago, 47 seconds later, 5 minutes after the original post[^] [v] #150,797

The government is screwing with your computer.

grey !C.MxxuCiTo (OP) replied with this 15 years ago, 54 seconds later, 6 minutes after the original post[^] [v] #150,798

@150,795 (r04r)
Obscurity is not helpful when discussing technical subjects. Especially when you know I don't have half the skill that you do.

r04r replied with this 15 years ago, 1 minute later, 7 minutes after the original post[^] [v] #150,799

@previous (grey !C.MxxuCiTo)
Never experienced much with it but check out if your webhost supports cgi, if so dump that shit in your cgi-bin folder and see what happens. If that works look in the control panel if you can enable cgi on the webroot or use htaccess to rewrite that mother.

I dunno the details of your host.

oh, you can also try adding:

Options +ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .py

to your .htaccess adn then see if it works

(Edited 46 seconds later.)

Anonymous D replied with this 15 years ago, 37 seconds later, 8 minutes after the original post[^] [v] #150,800

@150,798 (grey !C.MxxuCiTo)
It's the fucking government, bro. Their Orwellian tendencies are clearly at work here.

grey !C.MxxuCiTo (OP) replied with this 15 years ago, 8 minutes later, 16 minutes after the original post[^] [v] #150,802

@150,799 (r04r)
I'm using Heliohost for a certain project specifically because they are supposed to "support everything."
As for .htaccess, I can't even find it. :/

vocalon !!jdS+H4VgV replied with this 15 years ago, 51 minutes later, 1 hour after the original post[^] [v] #150,827

@previous (grey !C.MxxuCiTo)
CTRL+H.

grey !C.MxxuCiTo (OP) replied with this 15 years ago, 1 day later, 1 day after the original post[^] [v] #152,652

@previous (vocalon !!jdS+H4VgV)
@previous (vocalon !!jdS+H4VgV)

> CTRL+H.
> On a freehost websever

r04r replied with this 15 years ago, 3 minutes later, 1 day after the original post[^] [v] #152,664

@previous (grey !C.MxxuCiTo)
> freehost
> cgi

Doubt that'll work. Just pay $5/month (At most) for a real web host and hook up a bunch of subdomains for testing.

Nega !34Kas0OdzM joined in and replied with this 15 years ago, 13 seconds later, 1 day after the original post[^] [v] #152,666

@152,652 (grey !C.MxxuCiTo)
> 2011
> using freehosts
I hope none of you guys do this.

grey !C.MxxuCiTo (OP) replied with this 15 years ago, 2 minutes later, 1 day after the original post[^] [v] #152,669

@152,664 (r04r)
http://www.heliohost.org/home/features/languages

It's the whole point of this host.

r04r replied with this 15 years ago, 2 minutes later, 1 day after the original post[^] [v] #152,674

@previous (grey !C.MxxuCiTo)
http://www.heliohost.org/home/features/languages/python
> Python scripts are easy to configure and run. Just create a file in your cgi-bin directory under public_html, and place the Python "shebang" line (#!/usr/bin/python) on the first line of the file. Below this line you may write Python code. Make sure you make this file's CHMOD permissions 755, and output a Content-type header before anything else.

Anonymous F joined in and replied with this 15 years ago, 1 minute later, 1 day after the original post[^] [v] #152,677

@previous (r04r)
YEAH BOY! RTFM!

vocalon !!jdS+H4VgV replied with this 15 years ago, 47 seconds later, 1 day after the original post[^] [v] #152,681

@152,652 (grey !C.MxxuCiTo)
On your computer.

r04r replied with this 15 years ago, 50 seconds later, 1 day after the original post[^] [v] #152,682

@previous (vocalon !!jdS+H4VgV)
Only works on certain ftp clients.

vocalon !!jdS+H4VgV replied with this 15 years ago, 44 seconds later, 1 day after the original post[^] [v] #152,686

@152,674 (r04r)
I thought it was called a hashbang.

grey !C.MxxuCiTo (OP) replied with this 15 years ago, 51 seconds later, 1 day after the original post[^] [v] #152,689

Image went missing@152,674 (r04r)
*headdesk*
Thanks for dealing with my idiocy r04r...

r04r replied with this 15 years ago, 2 seconds later, 1 day after the original post[^] [v] #152,690

@152,686 (vocalon !!jdS+H4VgV)
http://en.wikipedia.org/wiki/Shebang_(Unix)
> In computing, a shebang (also called a hashbang) [...]

vocalon !!jdS+H4VgV replied with this 15 years ago, 3 minutes later, 1 day after the original post[^] [v] #152,695

@152,682 (r04r)
.htaccess files are hidden by default on Linux, though.

r04r replied with this 15 years ago, 1 minute later, 1 day after the original post[^] [v] #152,701

@previous (vocalon !!jdS+H4VgV)
Yes, they are. Anything starting with a dot is hidden in unix.

protip !!pMmAiEwOm joined in and replied with this 15 years ago, 17 minutes later, 1 day after the original post[^] [v] #152,730

@152,695 (vocalon !!jdS+H4VgV)
ls -a is prohibitively difficult

grey !C.MxxuCiTo (OP) replied with this 15 years ago, 2 hours later, 2 days after the original post[^] [v] #152,872

@150,799 (r04r)

> Options +ExecCGI
> AddHandler cgi-script .cgi
> AddHandler cgi-script .py

Where in the .htaccess should I add these lines?

r04r replied with this 15 years ago, 36 seconds later, 2 days after the original post[^] [v] #152,873

@previous (grey !C.MxxuCiTo)
top

grey !C.MxxuCiTo (OP) replied with this 15 years ago, 4 minutes later, 2 days after the original post[^] [v] #152,876

@previous (r04r)
Okay! Python scripts run now! But now pyIB is stuck on it's redirect page, the one you get sent to for a second after you post and before you get put back on the home page. I will show you in a PM I am about to send you.

r04r replied with this 15 years ago, 39 seconds later, 2 days after the original post[^] [v] #152,877

@previous (grey !C.MxxuCiTo)
Not a clue about that, check all the configs. Never used pyIB
:

Please familiarise yourself with the rules and markup syntax before posting.