• PHP

    From Mortifis@1:103/705 to All on Sun Feb 17 23:10:33 2019
    Something recently php-cgi messed up on me and I can't figure out whaty is amiss.
    Instead of a *.php script displaying it pops up a download dialogue, I haven't made any changes to any .ini files.

    sbbs.ini:
    [Web] Web (HTTP) Server
    AutoStart=true
    Interface=0.0.0.0,::
    Port=81
    TLSInterface=0.0.0.0,::
    TLSPort=443
    MaxClients=150
    RootDirectory=../web/root
    ErrorDirectory=error
    IndexFileNames=index.php,index.html,index.ssjs,index.xjs
    CGIDirectory=../web/root/cgi
    CGIExtensions=.cgi, php, pl, py
    DefaultCGIContent=text/plain
    Authentication=Basic,Digest,TLS-PSK
    JavaScriptExtension=.ssjs
    EmbJavaScriptExtension=.bbs
    MaxInactivity=120
    MaxCgiInactivity=120
    OutbufDrainTimeout=10

    HttpLogFile=
    Options=HTTP_LOGGING | ALLOW_TLS
    AnswerSound=
    HangupSound=
    HackAttemptSound=

    VIRTUAL_HOSTS || ALLOW_TLS || DEBUG_RX || DEBUG_TX || HTTP_LOGGING
    2 wrongs don't make a right, but 3 left turns will get you back on the freeway!

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Mortifis on Sun Feb 17 23:19:18 2019
    Re: PHP
    By: Mortifis to All on Sun Feb 17 2019 23:10:33

    Instead of a *.php script displaying it pops up a download dialogue, I haven't made any changes to any .ini files.

    I'm not sure what's up with the missing periods here or if they're a problem:

    CGIExtensions=.cgi, php, pl, py

    Maybe run through these instructions and make sure your setup aligns with them:

    http://wiki.synchro.net/howto:php

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ephram@1:103/705 to echicken on Mon Feb 18 00:38:42 2019
    Re: PHP
    By: Mortifis to All on Sun Feb 17 2019 23:10:33

    Instead of a *.php script displaying it pops up a download dialogue, I haven't made any changes to any .ini files.

    I'm not sure what's up with the missing periods here or if they're a problem:

    CGIExtensions=.cgi, php, pl, py

    Maybe run through these instructions and make sure your setup aligns with them:

    http://wiki.synchro.net/howto:php

    It was working no problems for a long time, I haven't made any changes but it stopped working today, maybe something when I did the sbbs-dev win32 upgrade the other day? :/

    I'll look at it again in the morning. Thanks EC

    ---
    þ Synchronet þ Realm of Dispair - rodbbs.synchro.net:83
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mortifis on Sun Feb 17 22:44:31 2019
    Re: PHP
    By: Mortifis to All on Sun Feb 17 2019 11:10 pm

    Something recently php-cgi messed up on me and I can't figure out whaty is amiss.
    Instead of a *.php script displaying it pops up a download dialogue, I haven't made any changes to any .ini files.

    sbbs.ini:
    [Web] Web (HTTP) Server
    AutoStart=true
    Interface=0.0.0.0,::
    Port=81
    TLSInterface=0.0.0.0,::
    TLSPort=443
    MaxClients=150
    RootDirectory=../web/root
    ErrorDirectory=error
    IndexFileNames=index.php,index.html,index.ssjs,index.xjs
    CGIDirectory=../web/root/cgi
    CGIExtensions=.cgi, php, pl, py

    Those CGIExtensions must include the '.' (.php,.pl,.py).



    digital man

    This Is Spinal Tap quote #2:
    Nigel Tufnel: Well, this piece is called "Lick My Love Pump".
    Norco, CA WX: 45.4øF, 77.0% humidity, 8 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mortifis@1:103/705 to Digital Man on Mon Feb 18 03:15:26 2019
    Re: PHP
    By: Mortifis to All on Sun Feb 17 2019 11:10 pm

    Something recently php-cgi messed up on me and I can't figure out whaty is amiss.
    Instead of a *.php script displaying it pops up a download dialogue, I haven't made any changes to any .ini files.

    sbbs.ini:
    [Web] Web (HTTP) Server
    AutoStart=true
    Interface=0.0.0.0,::
    Port=81
    TLSInterface=0.0.0.0,::
    TLSPort=443
    MaxClients=150
    RootDirectory=../web/root
    ErrorDirectory=error
    IndexFileNames=index.php,index.html,index.ssjs,index.xjs
    CGIDirectory=../web/root/cgi
    CGIExtensions=.cgi, php, pl, py

    Those CGIExtensions must include the '.' (.php,.pl,.py).

    In reality they do, I copied that from another system that does not have php installed on it and I hand typed them in after I pasted it to the message. I figured out what the problem was ...

    Thanks

    2 wrongs don't make a right, but 3 left turns will get you back on the freeway!

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mortifis on Mon Feb 18 03:35:27 2019
    Re: Re: PHP
    By: Mortifis to Digital Man on Mon Feb 18 2019 03:15 am

    Those CGIExtensions must include the '.' (.php,.pl,.py).

    In reality they do, I copied that from another system that does not have
    php
    installed on it and I hand typed them in after I pasted it to the message.
    I figured out what the problem was ...

    ... and what was it?

    digital man

    This Is Spinal Tap quote #40:
    Morty the Mime: Come on, don't talk back, mime is money, come on, move it. Norco, CA WX: 39.2øF, 80.0% humidity, 0 mph SW wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mortifis@1:103/705 to Digital Man on Mon Feb 18 08:20:21 2019
    Re: Re: PHP
    By: Mortifis to Digital Man on Mon Feb 18 2019 03:15 am

    Those CGIExtensions must include the '.' (.php,.pl,.py).

    In reality they do, I copied that from another system that does not have php installed on it and I hand typed them in after I pasted it to the message.
    I figured out what the problem was ...

    ... and what was it?

    Embarrassingly, it turned out to be past my bed time and I was sitting in front
    of the wrong terminal :-/ I realized that after I said "I copied it from another system that didn't have php installed ... ", duh! lol




    2 wrongs don't make a right, but 3 left turns will get you back on the freeway!

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From mark lewis@1:3634/12.73 to Mortifis on Mon Feb 18 12:36:28 2019

    On 2019 Feb 18 03:15:26, you wrote to Digital Man:

    CGIExtensions=.cgi, php, pl, py

    Those CGIExtensions must include the '.' (.php,.pl,.py).

    In reality they do, I copied that from another system that does not have php installed on it and I hand typed them in after I pasted it to the message. I figured out what the problem was ...

    what was it? asking for others who may run into the same or similar problem...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Ho! Haha! Guard! Turn! Parry! Dodge! Spin! Ha! Thrust! WHACK!
    ---
    * Origin: (1:3634/12.73)