Is VB CGI also?!?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Susanweb1
    Member
    • Aug 2001
    • 60

    Is VB CGI also?!?

    I was told that Vbulletin is also CGI, but it is written in PHP...is this true?

    Thanks
    ~Susan
  • Oystein
    Member
    • Mar 2001
    • 95

    #2
    It's not CGI meaning that it's written in perl and has to be run as cgi-script.

    It's php, a server-side scripting-language.

    So, no, it's not CGI.
    Øystein Sanne
    NRK.no

    board: http://snakk.nrk.no/debatt/

    Comment

    • orca
      Senior Member
      • Mar 2001
      • 1151
      • 5.5.x

      #3
      May the person who told you it is using PHP not as module for Apache but as CGI (don't know the exact wording anymore). If he uses the CGI version of PHP he has to run PHP scripts like PERL with the starting line #!/usr/bin/php or similar.
      Ueli

      Comment

      • Zef Hemel
        Member
        • Jan 2001
        • 78

        #4
        It's possible to run vB through CGI, though you'd still need php though

        Comment

        • Oystein
          Member
          • Mar 2001
          • 95

          #5
          True, but when most people ask about CGI, they think of it as Perl-scripts that has to be run in a cgi-bin -directory.

          And in those terms, php is not like cgi-scripts
          Øystein Sanne
          NRK.no

          board: http://snakk.nrk.no/debatt/

          Comment

          • orca
            Senior Member
            • Mar 2001
            • 1151
            • 5.5.x

            #6
            Well, I just mentioned that because they may messed that up . And if your host allows it, you can execute Perl scripts anywhere on your site, like PHP. In fact, if PHP is set up as CGI and you're only allowed to run CGI's in cgi-bin you could only run PHP scripts in the cgi-bin, too.
            Ueli

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 73981

              #7
              vBulletin can be run in CGI mode under PHP. It is not available in PERL format.

              However most hosts who over PHP offer it as an Apache Module because it is more efficient with System Resources.

              If you must use vBulletin in CGI mode you must perform the following:
              • Put the path to your PHP executable in every file except global.php, admin/global.php, admin/adminfunctions.php, admin/config.php, admin/functions.php and mod/global.php

                This would look like: #!/usr/bin/php

                You would have to ask your host for the exact path though.
              • Upload all .php files in ASCII mode.
              • CHMOD all .php files to 755 or 644 depending on your hosts requirements.
              • For the image uploading features in the Admin Control Panel to work you will have to CHMOD the image directory to 777 and if it is outside the CGI path, then you will have to edit the existing smilies and icons to point to the correct location.
              • Finally, CHMOD the admin directory 777 so that you can perform database backups and export Style files. Since this is a big security risk you will need to protect this folder with .htaccess. I would also suggest not using telnet or FTP because both are insecure. You should use SSH and SFTP (FTP over SSH).


              p.s. CGI stands for Computer Gateway Interface and it is a simple protocol that allows the webserver to access resources anywhere on the computer. Often times this is confused with PERL because in the early days PERL was the only programming language used over CGI by most people. However you can use PERL, PASCAL, TCL/TK, C, C++, PHP, Python, Java or in fact any programming language that runs on your platform for CGI purposes.

              << fixing a typo --tube >>
              Last edited by tubedogg; Mon 20 Aug '01, 8:54am.
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...