Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Session Text  (Read 506 times)
0 Members and 1 Guest are viewing this topic.
Biren Shukla
Guest
« on: October 12, 2003, 05:01:00 PM »

This is what the text looked like when I had calender script working in the past.
_id=679773281656
name=Administrator Account
_dir=c:\inetpub\wwwroot\/calendarscript/session/
_expires=180
calendar=default
username=Administrator

Now, the session script file looks like
_id=810155025800
_dir=C:/Inetpub/wwwroot/calendarscript/session/
_expires=180

I have the calendar.pl and calendar_admin.pl at C:/inetpub/scripts/ and
C:/inetpub/wwwroot/ and
C:/Program Files/calendarscript directories.

This is the path in the files
$BASE_DIR = "C:/Program Files/calendarscript/";
I have even tried C:/inetpub/scripts path in the files.
When I used the path C:/inetpub/scripts/calendarscript/ I still got could not open either the admin or the calender application. Debug.pl only tell me that javascript is not enabled. I have IE and I have made sure that it is enabled.

The way I test it is \\134.139.175.11\scripts\calendar.pl or calendar_admin.pl.

problem is I am unable to run the application. it run the scripts but does not open the application. I also see session entries. I have given everyone full control on all the important directories

What am I doing wrong? Is the path wrong in my file wrong? Please help. I changed the $Base_dir manually to the above mentioned paths

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: October 12, 2003, 08:03:00 PM »

** The way I test it is \\134.139.175.11\scripts\calendar.pl **

You should be using forward slashes. Eg.
http://134.139.175.11/scripts/calendar.pl

I have no idea if that has anything to do with it.

** _dir=c:\inetpub\wwwroot\/calendarscript/session/ **

That is definitely not right. The second one looks correct but as though the user hasn't logged in yet hence the lack of a name= and username= variables.

** This is the path in the files
$BASE_DIR = "C:/Program Files/calendarscript/"; *

Going by the session variables, that line should probably be more like

$BASE_DIR = "C:/Inetpub/wwwroot/calendarscript/";

** I have the calendar.pl and calendar_admin.pl at C:/inetpub/scripts/ and
C:/inetpub/wwwroot/ and
C:/Program Files/calendarscript directories. **

Why    

** it run the scripts but does not open the application. **

I don't know what that means.

Dan O.

[This message has been edited by DanO (edited October 12, 2003).]

Logged
Biren Shukla
Guest
« Reply #2 on: October 13, 2003, 10:40:00 AM »

Thanks Dan for your reply. I really appreciate it.
I was basically trying to put the calender.pl and calendar_admin.pl files in different locations and trying to figure out if it would work or not.

When i extracted the files, it installed at the usual C:/Program Files/Calendarscript location. I also changed the $Base variable to match where the files are installed. In other words, I am aware that what the Base variable does. Then I copied the entire calendearscript directory at the C:/Inetpub/Scripts/Calendarscript directory. I left the two calender files in the Scripts directory. I also made the appropriate change to the debug.pl file and ran it. It keep on giving me the JavaScript not being enabled error. I have shared the scripts folder. Does that make any difference?

When I try to test the files from a workstation, it gives me the list of programs to open with. So basically it is finding the files and running the scripts but I am not sure why is the application not running?

Know I know that the server has to be able to execute cgi scripts. Any suggestions about how I can enable cgi execution on a Win 2k server?

Thank you sir.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: October 13, 2003, 12:32:00 PM »

** Any suggestions about how I can enable cgi execution on a Win 2k server? **

Sorry, I don't do Windows. I would think you'll either need to have web server software running and accessing it via that or some later Windows operating systems have what I've heard to be called a "console" for running CGI scripts. I'm not at all familiar with the latter.

Good luck.

Dan O.

------------------

Logged
Scott
Guest
« Reply #4 on: October 16, 2003, 12:45:00 PM »

Are you actually running a web server on the server? If you're accessing it like \\ip\etc, then you're trying to run it via UNC, not through a web server. That will be the source of your problem.

You _must_ be running a web server, and you need to access the scripts via http://...

What you're doing is basically opening up the .pl file as if you double-clicked on it, so it runs in using your perl interpretter in a popup DOS window, then closes.

------------------
Scott
CalendarScript.com


Logged
BS
Guest
« Reply #5 on: October 16, 2003, 12:55:00 PM »

**The server is a Web Server and I am testing is as http://....I  also posted another more detailed message today. Do I need to install at C:/inetpub/cgi-bin location or it does not matter?
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: October 16, 2003, 08:08:00 PM »

** Do I need to install at C:/inetpub/cgi-bin location or it does not matter? **

That depends on the way the web server was set up. In come cases, yes. Check with the system administrator.

Dan O.

------------------

Logged
Rufus
New Member
*

Karma: 0
Offline Offline

Posts: 0

Childrens Entertainer, Web Geek


WWW
« Reply #7 on: October 17, 2003, 08:59:00 AM »

You'll have to make sure that the associations are configured in the web server. Whether that's IIS or Apache, both need to be told how to handle .pl and/or .cgi files.

Either check with the system admin to see if this has been done, or check with the appropriate docs on how to do it.

Regards!
-Toby

------------------
If I can count on my friends, why did God  give me fingers?

- W. T. Pooh


Logged

If I can count on my friends, why did God  give me fingers?

- W. T. Pooh


Biren
New Member
*

Karma: 0
Offline Offline

Posts: 0

Engineer


WWW
« Reply #8 on: October 17, 2003, 09:42:00 AM »

Thanks Dan for your continued help.
Toby, what do mean by check the associations are configured on the web server?

------------------

[This message has been edited by Biren (edited October 17, 2003).]

Logged
Biren
New Member
*

Karma: 0
Offline Offline

Posts: 0

Engineer


WWW
« Reply #9 on: October 22, 2003, 01:16:00 PM »

IT WORKED. UNDER INTERNET SERVICES MANAGER, I CHECKED THE IP ADDRESS OF MY SERVER, IT WAS INCORRECT, CHANGED IT AND IT WORKED. EVERYTHING WAS CONFIGURED CORRECTLY.

THANKS FOR ALL YOUR HELP.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: