I sent the following message to my host (1&1), which vB staff told me uses PHP compiled as CGI and requires a shebang line. The example shebang line given on the member downloads page is a little confusing because I've never seen one with /php on the end before:
Their responce was this, which doesn't help me and is exactly as I expected - a typically generic reply without any certainty:
Yes.. yes I know all that, but the vB example of the path has a /php on the end and that's not listed. Can somebody give me a little clarity, the vB team have only offered generic and unspecific replies.. I need something I can use.
I've just learnt that the reason for the 500 server error I had running certain aspects of vBulletin 3 is because PHP under 1&1 runs as CGI (compiled as a CGI Module). Now in order to get the proper revision of vB3 for this I need the CGI shebang line, the example given by the vB team (e.g: #!/usr/bin/php) is different to the usual PERL path at the top of .CGI scripts (e.g: #!/usr/bin/perl).
I can only assume that PHP compiled as CGI needs a special /php aspect, but could somebody confirm the exact path to use?
I can only assume that PHP compiled as CGI needs a special /php aspect, but could somebody confirm the exact path to use?
Both our Business and Professional packages have the rights to run cgi and perl files.
These files have to have an extension of either .pl or .cgi and then have there permissions set to execute (chmod 755 filename.pl).
You can run scripts from a directory called cgi-bin if you make this directory in your root folder. If you do this then .html files stored in or below the cgi-bin directory will not be accessable.
It is best to just create a folder not called cgi-bin in which you store your scripts or to just have the scripts in any folder.
Some common configuration options are :
Document Root (the absolute path to your web) ->
$ENV{'DOCUMENT_ROOT'} (Perl) or $DOCUMENT_ROOT (PHP)
File extension for Perl scripts : .pl
File extension for PHP scripts : .php3 / .php4
Perl location : /usr/bin/perl
Sendmail location : /usr/sbin/sendmail
Python location : /usr/bin/python
MySQL location : /usr/bin/mysql
Perl is version 5.00502
MySQL Version 3.23.51
PHP Version 4.2.3
Apache 1.3.3
Python version 2.2
And the following for more information on the php installation :
http://rtb.me.uk/check.php
These files have to have an extension of either .pl or .cgi and then have there permissions set to execute (chmod 755 filename.pl).
You can run scripts from a directory called cgi-bin if you make this directory in your root folder. If you do this then .html files stored in or below the cgi-bin directory will not be accessable.
It is best to just create a folder not called cgi-bin in which you store your scripts or to just have the scripts in any folder.
Some common configuration options are :
Document Root (the absolute path to your web) ->
$ENV{'DOCUMENT_ROOT'} (Perl) or $DOCUMENT_ROOT (PHP)
File extension for Perl scripts : .pl
File extension for PHP scripts : .php3 / .php4
Perl location : /usr/bin/perl
Sendmail location : /usr/sbin/sendmail
Python location : /usr/bin/python
MySQL location : /usr/bin/mysql
Perl is version 5.00502
MySQL Version 3.23.51
PHP Version 4.2.3
Apache 1.3.3
Python version 2.2
And the following for more information on the php installation :
http://rtb.me.uk/check.php
Comment