worldtouch
09-07-2001, 10:00 PM
after I create cgi-bin, error 500 internal error
I have "forbidden: , no permission.
normal I deny other people from entering my portal , they will have such message.
that cgi-bin owned by jennifer and group -"other".
ScriptAlias /cgi-bin/ "/var/apache/cgi-bin/"
<Directory "/var/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
my cgi-bin is /var/apache/htdocs/www/dir-a/cgi-bin.
does *.cgi must have "x"(execute) ?
The factory cgi-bin /var/apache/cgi-bin.
in apache setting:
<Virtualhost 192.168.1.11>
DocumentRoot /var/apache/htdocs/www/forums
Serverpath /forums
ServerName forums.myserver.com
ErrorLog logs/forums.log
Customlog logs/forums-access.log common
ScriptAlias /cgi-bin /var/apache/htdocs/www/forums/cgi-bin/dir-a
</Virtualhost>
in /var/apache/htdocs/www/forums
drwxr-xr-x 4 jennifer other 512 Sep 8 07:00 forums
inside
$ pwd
/var/apache/htdocs/www/forums
drwxr-xr-x 4 jennifer other 512 Sep 8 07:00 .
drwxr-xr-x 26 jennifer other 8704 Sep 7 22:56 ..
drwxr-xr-x 3 jennifer other 512 Sep 7 22:11 cgi-bin
-rwxr-xr-x 1 jennifer other 20851 Sep 8 07:00 forums.cgi
drwxr-xr-x 5 jennifer other 512 Sep 7 21:59 dir-a
-rwxr-xr-x 1 jennifer other 34866 Sep 8 06:02 install.cgi
when I edit install.cgi in /in /var/apache/htdocs/www/forums
vi install.cgi
#!/usr/bin/perl
################################################## ###########
#
# >>>>>> SET UP ASSISTANT
#
when I edit forums.cgi in /in /var/apache/htdocs/www/forums
vi forums.cgi
################################################## ###########
use CGI::Carp "fatalsToBrowser"; # Output errors to browse
use CGI qw(:standard); # Saves loads of work
$CGI::POST_MAX=1024 * 150; # limit post data
$CGI:ISABLE_UPLOADS = 1; # Disable uploads
eval {
($0 =~ m,(.*)/[^/]+,) and unshift (@INC, "$1");
($0 =~ m,(.*)\\[^\\]+,) and unshift (@INC, "$1");
"forums.cgi" 461 lines, 20851 characters
======
$ pwd
/var/apache/htdocs/www/forums/cgi-bin/dir-a
-rwxr-xr-x 1 jennifer other 18082 Sep 7 22:12 misc.cgi
-rwxr-xr-x 1 jennifer other 10831 Sep 7 22:12 newposts.cgi
-rwxr-xr-x 1 jennifer other 45142 Sep 7 22:12 post.cgi
-rw-r--r-- 1 jennifer other 45138 Sep 7 22:12 post.cgi.bak
-rwxr-xr-x 1 jennifer other 56985 Sep 7 22:12 postings.cgi
-rwxr-xr-x 1 jennifer other 5490 Sep 7 22:12 printpage.cgi
-rwxr-xr-x 1 jennifer other 3379 Sep 7 22:12 privacy.cgi
-rwxr-xr-x 1 jennifer other 29407 Sep 7 22:12 profile.cgi
-rwxr-xr-x 1 jennifer other 20905 Sep 7 22:12 register.cgi
-rwxr-xr-x 1 jennifer other 25866 Sep 7 22:12 search.cgi
-rwxr-xr-x 1 jennifer other 6928 Sep 7 22:12 setbadwords.cgi
-rwxr-xr-x 1 jennifer other 53092 Sep 7 22:12 setforums.cgi
-rwxr-xr-x 1 jennifer other 23285 Sep 7 22:12 setmembers.cgi
-rwxr-xr-x 1 jennifer other 12474 Sep 7 22:12 setmembertitles.cgi
-rwxr-xr-x 1 jennifer other 20785 Sep 7 22:12 setstyles.cgi
-rwxr-xr-x 1 jennifer other 7673 Sep 7 22:12 settemplate.cgi
-rwxr-xr-x 1 jennifer other 22324 Sep 7 22:12 setvariables.cgi
-rwxr-xr-x 1 jennifer other 21956 Sep 7 22:12 topic.cgi
-rwxr-xr-x 1 jennifer other 10158 Sep 7 22:12 viewip.cgi
-rwxr-xr-x 1 jennifer other 4632 Sep 7 22:12 whosonline.cgi
q1. both install.cgi and forums.cgi look ok from vi , ( it is in dos format), forum.cgi & install.cgi ( chmod +x),
in IE, forum.cgi display just it is while install.cgi is rather messy. I do not understand why????
q2. my virtualhost document root point /var/apache/htdocs/www/forums, I cannot enter "cgi-bin" with internal error 500.
q3. perl execution is ok in /var/apache/htdocs/www/forums
$ perl -v
This is perl, version 5.005_03 built for i86pc-solaris
Copyright 1987-1999, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
folks, why is that ???????????
I am not sure my cron is running, it has a log and script to rsync have no error when execute!!! cron runs!!!
jennifer
[ 07 September 2001: Message edited by: worldtouch ]
[ 09 September 2001: Message edited by: worldtouch ]
I have "forbidden: , no permission.
normal I deny other people from entering my portal , they will have such message.
that cgi-bin owned by jennifer and group -"other".
ScriptAlias /cgi-bin/ "/var/apache/cgi-bin/"
<Directory "/var/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
my cgi-bin is /var/apache/htdocs/www/dir-a/cgi-bin.
does *.cgi must have "x"(execute) ?
The factory cgi-bin /var/apache/cgi-bin.
in apache setting:
<Virtualhost 192.168.1.11>
DocumentRoot /var/apache/htdocs/www/forums
Serverpath /forums
ServerName forums.myserver.com
ErrorLog logs/forums.log
Customlog logs/forums-access.log common
ScriptAlias /cgi-bin /var/apache/htdocs/www/forums/cgi-bin/dir-a
</Virtualhost>
in /var/apache/htdocs/www/forums
drwxr-xr-x 4 jennifer other 512 Sep 8 07:00 forums
inside
$ pwd
/var/apache/htdocs/www/forums
drwxr-xr-x 4 jennifer other 512 Sep 8 07:00 .
drwxr-xr-x 26 jennifer other 8704 Sep 7 22:56 ..
drwxr-xr-x 3 jennifer other 512 Sep 7 22:11 cgi-bin
-rwxr-xr-x 1 jennifer other 20851 Sep 8 07:00 forums.cgi
drwxr-xr-x 5 jennifer other 512 Sep 7 21:59 dir-a
-rwxr-xr-x 1 jennifer other 34866 Sep 8 06:02 install.cgi
when I edit install.cgi in /in /var/apache/htdocs/www/forums
vi install.cgi
#!/usr/bin/perl
################################################## ###########
#
# >>>>>> SET UP ASSISTANT
#
when I edit forums.cgi in /in /var/apache/htdocs/www/forums
vi forums.cgi
################################################## ###########
use CGI::Carp "fatalsToBrowser"; # Output errors to browse
use CGI qw(:standard); # Saves loads of work
$CGI::POST_MAX=1024 * 150; # limit post data
$CGI:ISABLE_UPLOADS = 1; # Disable uploads
eval {
($0 =~ m,(.*)/[^/]+,) and unshift (@INC, "$1");
($0 =~ m,(.*)\\[^\\]+,) and unshift (@INC, "$1");
"forums.cgi" 461 lines, 20851 characters
======
$ pwd
/var/apache/htdocs/www/forums/cgi-bin/dir-a
-rwxr-xr-x 1 jennifer other 18082 Sep 7 22:12 misc.cgi
-rwxr-xr-x 1 jennifer other 10831 Sep 7 22:12 newposts.cgi
-rwxr-xr-x 1 jennifer other 45142 Sep 7 22:12 post.cgi
-rw-r--r-- 1 jennifer other 45138 Sep 7 22:12 post.cgi.bak
-rwxr-xr-x 1 jennifer other 56985 Sep 7 22:12 postings.cgi
-rwxr-xr-x 1 jennifer other 5490 Sep 7 22:12 printpage.cgi
-rwxr-xr-x 1 jennifer other 3379 Sep 7 22:12 privacy.cgi
-rwxr-xr-x 1 jennifer other 29407 Sep 7 22:12 profile.cgi
-rwxr-xr-x 1 jennifer other 20905 Sep 7 22:12 register.cgi
-rwxr-xr-x 1 jennifer other 25866 Sep 7 22:12 search.cgi
-rwxr-xr-x 1 jennifer other 6928 Sep 7 22:12 setbadwords.cgi
-rwxr-xr-x 1 jennifer other 53092 Sep 7 22:12 setforums.cgi
-rwxr-xr-x 1 jennifer other 23285 Sep 7 22:12 setmembers.cgi
-rwxr-xr-x 1 jennifer other 12474 Sep 7 22:12 setmembertitles.cgi
-rwxr-xr-x 1 jennifer other 20785 Sep 7 22:12 setstyles.cgi
-rwxr-xr-x 1 jennifer other 7673 Sep 7 22:12 settemplate.cgi
-rwxr-xr-x 1 jennifer other 22324 Sep 7 22:12 setvariables.cgi
-rwxr-xr-x 1 jennifer other 21956 Sep 7 22:12 topic.cgi
-rwxr-xr-x 1 jennifer other 10158 Sep 7 22:12 viewip.cgi
-rwxr-xr-x 1 jennifer other 4632 Sep 7 22:12 whosonline.cgi
q1. both install.cgi and forums.cgi look ok from vi , ( it is in dos format), forum.cgi & install.cgi ( chmod +x),
in IE, forum.cgi display just it is while install.cgi is rather messy. I do not understand why????
q2. my virtualhost document root point /var/apache/htdocs/www/forums, I cannot enter "cgi-bin" with internal error 500.
q3. perl execution is ok in /var/apache/htdocs/www/forums
$ perl -v
This is perl, version 5.005_03 built for i86pc-solaris
Copyright 1987-1999, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
folks, why is that ???????????
I am not sure my cron is running, it has a log and script to rsync have no error when execute!!! cron runs!!!
jennifer
[ 07 September 2001: Message edited by: worldtouch ]
[ 09 September 2001: Message edited by: worldtouch ]