Please help, this isn't a virus, I just want my asp thing to work.
I get a 500 Internal Server Error when I try to run a ASP file.
I'm using Windows NT Server. And the webserver I'm using is Apache V1.3.12
with Mod_perl
Perl: c:\usr\perl\bin
ASP.PM: c:\usr\perl\site\lib\apache\asp.pm
Other: c:\usr\perl\lib
I'm using Virtual Hosts in Apache too.
I have no clue what's the problem right now.
this was the asp script I was trying to run, count.asp
-= START =-
<%IF IsEmpty(Session("TotalCount")) THEN
Call MakeCount
End IF
Sub MakeCount()
Dim FSO ' FileSystemObject
Dim TS ' TextStreamObject
Dim CountFileName ' Count File Name
Dim OldCount, NewCount ' Counting Variables
Dim I
Dim Create
Create = True
MyCountFile = Server.MapPath("Counter.txt")
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set TS = FSO.OpenTextFile(MyCountFile, 1, Create)
IF Not TS.AtEndOfStream Then
OldCount = TS.ReadAll
Else
OldCount = 0
End If
TS.Close
NewCount = OldCount + 1
Session("TotalCount")= NewCount
Set TS = FSO.CreateTextFile(MyCountFile, Create)
TS.Write NewCount
TS.Close
Set FSO = Nothing
Set TS = Nothing
End Sub
%>
-= END =-
my HTTPD.CONF is as follows:
-= START =-
ServerType standalone
ServerRoot "C:/Program Files/Apache"
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxRequestsPerChild 0
ThreadsPerChild 50
Port 80
ServerAdmin [EMAIL PROTECTED]
DirectoryIndex index.html index.shtml index.htm index.shtm
AccessFileName .htaccess
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
UseCanonicalName On
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access.log common
ServerSignature On
Alias /icons/ "/Apache/icons/"
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/small/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/small/text.gif) text/*
AddIconByType (IMG,/icons/small/image2.gif) image/*
AddIconByType (SND,/icons/small/sound2.gif) audio/*
AddIconByType (VID,/icons/small/movie.gif) video/*
AddIcon /icons/small/binary.gif .bin .exe
AddIcon /icons/small/binhex.gif .hqx
AddIcon /icons/small/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/small/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/small/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/small/uu.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/small/text.gif .tex
AddIcon /icons/small/burst.gif core
AddIcon /icons/small/back.gif ..
AddIcon /icons/small/text.gif README
AddIcon /icons/small/dir.gif ^^DIRECTORY^^
AddIcon /icons/small/blank.gif ^^BLANKICON^^
DefaultIcon /icons/small/unknown.gif
AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
AddDescription "ZIP archive" .zip
AddDescription "CAB archive" .cab
AddDescription "Win32 Executable" .exe
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz
AddLanguage en .en
AddLanguage de .de
AddLanguage fr .fr
LanguagePriority en de fr
ScriptAlias /phpexecutable/ "/usr/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/phpexecutable/php.exe"
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddType text/html .shtml
AddType text/html .shtm
AddHandler server-parsed .shtml
AddHandler server-parsed .shtm
AddHandler server-parsed .html
AddHandler server-parsed .htm
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
LoadModule perl_module modules/ApacheModulePerl
ScriptAlias /advertisments/ "C:/Program Files/Apache/cgi-bin/"
<FilesMatch ".*\.asp$">
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /temp
</FilesMatch>
-= END =-