WebHost Free Problems

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
wiz4rd
-


Joined: 29 Nov 2003
Posts: 7

PostPosted: Sat Nov 29, 2003 2:29 pm    Post subject: WebHost Free Problems Reply with quote

ok, i run abyss webserver (duh!) with phpbb2 forums, this is on a windows xp pro machine i have mysql installed and working fine, php forums are working fine. i want to add a feature to my server that allows users to upload files and manage them and so on. so i find this WebHost Free which is EXACTLY what i want, i know its what i want becuase ive used it before (as a user, not from the server end). the problem is possibly with perl, but i have installed 2 different versions and installed it to all sorts of different places, still no change. i get a http 500 internal server error. which from what i gather means that perl isnt executing the file as it should. i have tried all different methods of telling it where the perl.exe file is, and it doesnt change a thing.

cgi logs say
Can't locate C:\Documents and Settings\wiz4rd\Desktop\cgi-bin\admin.cgi/cgi-lib.pl at admin.cgi line 26.

is it something to do with perl, or something with abyss? or something with the scripts.

sorry if this doesnt make sence, im tired and frustrated. any help is much apreciated. thanks in advance.

edit: im not very well educated in linux and something that i dont think is the cause of the problem but might help is the line #!/usr/bin/perl is the correct path/syntax for this just #!C:\program files\perl\bin\perl.exe ???

edit2: some experimentation has been done do help clarify the problem. its not perl, or the servers reference to it. i tried a couple of other perl example scripts and they worked fine. still the same problem with the one i want. if i havn't worked it out in the next day or so i will post in much more detail the problem and details of the script. this is becoming a big frustration. :evil:
Back to top View user's profile Send private message
wiz4rd
-


Joined: 29 Nov 2003
Posts: 7

PostPosted: Sun Nov 30, 2003 7:18 am    Post subject: Reply with quote

ok, an update.

the line
require "$path/cgi-lib.pl";
is the line in each of the three (admin, manager and signup) CGI files causing problems. to get the screen that is meant to show, to do just that i found if i change that around to different things i can get past the 500 error but the screen that is meant to come up to setup the script does not. something is not functioning properly in there. i think $path is leading to the path and filename and is only meant to lead to the path. i could be wrong here. as mantion i do not know much about linux. there is also some weird quirks noticed to do with the type or slash ( / and \ ) if someone could explain this to me it might help. once again frustrated and once again thanks in advance.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Nov 30, 2003 6:49 pm    Post subject: Reply with quote

wiz4rd,

The problem is with the script code since Perl can't find a file it is instructed to include. The best is to check the configuration of this script and to contact its authors for more help.

By the way, / and \ are the same on Windows. But if you write \ inside a Perl string, it must be escaped. For example,

Code:
$path="c:\myweb\data.txt";


is wrong. It should be:

Code:
$path="c:\\myweb\\data.txt";


which is equivalent to:

Code:
$path="c:/myweb/data.txt";

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
wiz4rd
-


Joined: 29 Nov 2003
Posts: 7

PostPosted: Mon Dec 01, 2003 1:14 am    Post subject: Reply with quote

thank you, that helps my understanding a bit, the problem remains though.

imho the problem is somewhere in the following code:

$ENV{'PATH_TRANSLATED'} =~ s/\\/\//g;
$ENV{'PATH_TRANSLATED'} =~ s/\/(\w)+\.(\w)+$//;
$ENV{'SCRIPT_FILENAME'} =~ s/\/(\w)+\.(\w)+$//;
if (length($ENV{'SCRIPT_FILENAME'}) >1) { $path = $ENV{'SCRIPT_FILENAME'}; } else {$path=$ENV{'PATH_TRANSLATED'};}

require "$path/cgi-lib.pl";
&ReadParse;

because is seams that $path is not only refering to the path but the files as well. so from admin.cgi it will try to open C:\*path*\admin.cgi/cgi-lib.pl

i do not understand perl well enough to know that the first 3-5 lines do exactly. which is why i can't do anything to fix it.

i have asked for support from where the code came, but there pollicy is that they dont give support for it, but i'll see how i go.

thank you once again.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Dec 02, 2003 3:57 am    Post subject: Reply with quote

wiz4rd,

A quick hack:

just after the $path stuff and before
Code:
require "$path/cgi-lib.pl";
&ReadParse;

insert the following line:
Code:
$path="C:/Documents and Settings/wiz4rd/Desktop/cgi-bin";


Does it work now?[/code]
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
wiz4rd
-


Joined: 29 Nov 2003
Posts: 7

PostPosted: Tue Dec 02, 2003 4:28 am    Post subject: Reply with quote

wtf...yes it does, i could have sworn i triend that, or something similar at least....oh well, works now thank you very much.

i still after these minor set backs rocoment this code to anyone with a webserver...its really handy and just down right cool.

thank you once again for the help. keep up the good work.
Back to top View user's profile Send private message
wiz4rd
-


Joined: 29 Nov 2003
Posts: 7

PostPosted: Wed Dec 03, 2003 12:18 am    Post subject: Reply with quote

two out of three working anyway...signup and admin scripts work but the manager one still has issues :( the following is the cgi logs from a single attept at running the manager file:


String found where operator expected at manager.cgi line 38, near "<body bgcolor=""
(Might be a runaway multi-line "" string starting on line 27)
(Missing semicolon on previous line?)
Bareword found where operator expected at manager.cgi line 39, near "/font></strong"
(Missing operator before trong?)
Bareword found where operator expected at manager.cgi line 39, near "/big></p"
(Missing operator before p?)
Bareword found where operator expected at manager.cgi line 41, near ""0" cellpadding"
(Missing operator before cellpadding?)
Bareword found where operator expected at manager.cgi line 41, near ""0" cellspacing"
(Missing operator before cellspacing?)
Bareword found where operator expected at manager.cgi line 41, near ""0" bgcolor"
(Missing operator before bgcolor?)
Bareword found where operator expected at manager.cgi line 45, near "/strong></font"
(Missing operator before font?)
Bareword found where operator expected at manager.cgi line 50, near "<td width="150"><div align="right"><p><font face="Arial">Username</font"
(Might be a runaway multi-line // string starting on line 46)
(Missing operator before font?)
Bareword found where operator expected at manager.cgi line 51, near "<td> <input type="text" name="username" size="20"></td"
(Might be a runaway multi-line // string starting on line 50)
(Missing operator before td?)
Bareword found where operator expected at manager.cgi line 56, near "<td width="150"><div align="right"><p><font face="Arial">Password</font"
(Might be a runaway multi-line // string starting on line 53)
(Missing operator before font?)
Bareword found where operator expected at manager.cgi line 57, near "<td> <input type="password" name="password" size="20"></td"
(Might be a runaway multi-line // string starting on line 56)
(Missing operator before td?)
Bareword found where operator expected at manager.cgi line 60, near "<p><input type="submit" value="Login"></td"
(Might be a runaway multi-line // string starting on line 59)
(Missing operator before td?)
Bareword found where operator expected at manager.cgi line 63, near "</td"
(Might be a runaway multi-line // string starting on line 62)
(Missing operator before td?)
Bareword found where operator expected at manager.cgi line 66, near "</center"
(Might be a runaway multi-line // string starting on line 65)
(Missing operator before enter?)
String found where operator expected at manager.cgi line 83, near "<body bgcolor=""
(Might be a runaway multi-line "" string starting on line 70)
(Missing semicolon on previous line?)
Bareword found where operator expected at manager.cgi line 84, near "/font></strong"
(Missing operator before trong?)
Bareword found where operator expected at manager.cgi line 84, near "/big></p"
(Missing operator before p?)
syntax error at manager.cgi line 38, near "<body bgcolor=""
Execution of manager.cgi aborted due to compilation errors.



as you can see its got some issues. for those interested in getting it, or telling my how to get it working is is avialiable here.

if it would help i could paste and post bits of the code that look to be causing problems...
Back to top View user's profile Send private message
rockslammer_
-


Joined: 19 Sep 2003
Posts: 6
Location: Michigan

PostPosted: Tue Dec 23, 2003 2:38 am    Post subject: HTML tag errors? Reply with quote

Check the < and the > are they all there?

I did a pasting error today got the same thing-

</SCRIPT ( > was missing )
makes the runaway string


as will a forgotten ;

print "bla bla bla" ( ; <---missing?)
usually in the line above

open a command prompt

>perl -de 1
perl does this
Loading DB routines from perl5db.pl version 1.07
Editor support available.

Enter h or `h h' for help, or `perldoc perldebug' for more help.

main:: (-e:1): 1
DB<1>


paste the code in the console

This is perl's debugger. Sometimes it will give you better or different info then the cgi error log will.

>perl -de 0

does the wild thing and doesn't stop the debug on errors so u can get through it all





http://www.perlvision.com/pce/expired/

this is a link for a perl editor
it has a nice line function that will get you to all the right lines
Back to top View user's profile Send private message Visit poster's website
WolfRamiO
-


Joined: 30 May 2004
Posts: 121
Location: Viña del Mar, Chile

PostPosted: Thu Jul 01, 2004 11:34 am    Post subject: Reply with quote

i cant get the script work on abyss 2 beta :(, i installed step by step but dont work....

any way if the the CGI-BIN folder have a alias Abyss send Not Found Page, and if not have a alias, abys just open the code of script (text format)...

Any help?

Note: PHP are working like 3 Months ago but i install perl like 3 days just for run this script
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Jul 01, 2004 1:10 pm    Post subject: Reply with quote

If you create an Aliases , use /cgi-bin and not /cgi-bin/
their is a bug in the new Beta that keeps you from using
the /alias_name/ , Aprelium is working on it !

Edit: Bug Fixed! Upgrade to Abyss/2.0.0.8 Beta 1


Last edited by TRUSTAbyss on Tue Jul 20, 2004 10:04 pm; edited 2 times in total
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jul 01, 2004 2:19 pm    Post subject: Reply with quote

WolfRamiO,

You can create a cgi-bin sub-directory inside the htdocs/ directory and put your script there. By doing this you don't need to declare any aliases at all.

If you're still getting the code of the script instead of having it being executed, please check your Perl installation in Abyss. If the problem persists, send your abyss.conf file to beta@aprelium.com .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
WolfRamiO
-


Joined: 30 May 2004
Posts: 121
Location: Viña del Mar, Chile

PostPosted: Sat Jul 03, 2004 1:58 am    Post subject: Reply with quote

its not the alias system, i think i got a problem with the Perl compiler, but what can be, i got the lasted ver and perl ver and this on Interpreters

Interpreter:c:\appserv\perl\bin\perl.exe
Arguments:
Type: Standard
X Use the associated extensions to automatically update the Script Paths

Associated Extensions: Extension
pl cgi
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jul 03, 2004 2:10 pm    Post subject: Reply with quote

WolfRamiO,

Please send us your script and your abyss.conf file to beta@aprelium.com and explain us in detail what's the error or what's not working as expected. Since this problem is related to the Beta of version 2.0, it is better to continue the discussion in the 2.0 Beta section (many other users can be confused by Beta related messages here.)
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
WolfRamiO
-


Joined: 30 May 2004
Posts: 121
Location: Viña del Mar, Chile

PostPosted: Sat Jul 03, 2004 8:55 pm    Post subject: Reply with quote

oks i gonna send you the both of parts, jejejeje, anyway yesterday i try with the 1.2 ver and was the same...
Back to top View user's profile Send private message Visit poster's website
goose
-


Joined: 17 Sep 2002
Posts: 608
Location: The Land Of OZ! come here toto!

PostPosted: Tue Jul 20, 2004 8:53 am    Post subject: Reply with quote

hmmm interesting info ....shall checkout!
_________________
living in an armish paradise.....no gates here!

mawuahahaha :)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group