[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Logs

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Logs
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 25 Jul 2006 09:19 PM (UTC)  quote  ]
Message
OK. That means that permissions aren't set up right.

You need to talk to the sysadmin and ask what user the web server runs under, and ask how to give that user permission to your MUD's log directory.

You might have to make your log directory world-readable, which would give access to everybody on the server.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Tue 25 Jul 2006 09:13 PM (UTC)  quote  ]
Message
the link is in the webspace dir, i get an error message...

 You don't have permission to access /logdir/1001.log on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Everything turns around in the end
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 25 Jul 2006 09:03 PM (UTC)  quote  ]
Message
You need to be more precise... Where is the link to which dir? Did you make a symlink to your log dir, and is the symlink in your webspace dir? Why is it not visible? Not visible how? Do you get an error message? Etc...

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Tue 25 Jul 2006 08:59 PM (UTC)  quote  ]
Message
alright, theres a link to the dir, but of course its not viewable, so next step would be to...? A, ask the sysadmin, or B, create a way for a page to view the files?

Everything turns around in the end
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 25 Jul 2006 08:42 PM (UTC)  quote  ]
Message
OK, it's a Linux system. (Fedora is a Linux distribution.) That means that the 'short cut' is a symbolic link (symlink for short).

You can create symlinks like this: ln -s DEST_DIR LINK_NAME. For example, ln -s /my/mud/directory/log logdir. You could do something like that from your web dir, logged in from the shell.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Tue 25 Jul 2006 08:32 PM (UTC)  quote  ]
Message
Its not windows, the place I get shell from is gensismuds.com, and its like fedora core 4 or something like that... So i'm not exactly sure?

Everything turns around in the end
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 25 Jul 2006 08:23 PM (UTC)  quote  ]
Message
Quote:
Is this on a Windows system? Or is it a symlink on a Unix system?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Tue 25 Jul 2006 08:20 PM (UTC)  quote  ]
Message
well when you cd the directory, it brings you right back to the directory... using winscp when you look at the properties it shows that its a shortcut to the directory, where my webstuff is stored.

Everything turns around in the end
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 25 Jul 2006 08:14 PM (UTC)  quote  ]
Message
What do you mean by "short cut"? Is this on a Windows system? Or is it a symlink on a Unix system?

Try putting in a link to /YourMudDirectory/log in the web space and see what happens.

You should also try talking to your sysadmin.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Tue 25 Jul 2006 08:10 PM (UTC)  quote  ]
Message
well i know i have 20mb for a webspace for the mud, and it has a short cut in it... which i find weird cause its a short cut in the directory... to the directory...

Everything turns around in the end
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 25 Jul 2006 07:23 PM (UTC)  quote  ]
Message
Well, first and foremost, you have to figure out if your MUD host also gives you webspace. Then you need to figure out if the process the webserver runs under has permission to read you MUD's log directory. Get the basics working first, then worry about passwords etc.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Tue 25 Jul 2006 07:15 PM (UTC)  quote  ]
Message
Seeing as I dont really know how to do either or, I'll have to look into those and do some research then.

Everything turns around in the end
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 25 Jul 2006 05:02 PM (UTC)  quote  ]
Message
You will need to give your webserver permission to read files in the log/ directory. Then you should be able to just build an index of files with links to each file. If you want a password you could do it with .htaccess (assuming you're running Apache). You can google for .htaccess, or if you're not using Apache, search your webserver's docs for HTTP authentication.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Mon 24 Jul 2006 11:12 PM (UTC)  quote  ]
Message
Alright this doesn't really pretain to coding smaug exactly... but I'm looking for a way to display logs on the web, or able to read the from the web, with a password and such. I'm not exactly the best with making things like this, But it could be a very useful feature, for atleast me anyway.

Everything turns around in the end
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


3,171 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]