Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Logs

Logs

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Metsuro   USA  (389 posts)  Bio
Date Mon 24 Jul 2006 11:12 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Tue 25 Jul 2006 05:02 PM (UTC)
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
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #2 on Tue 25 Jul 2006 07:15 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Tue 25 Jul 2006 07:23 PM (UTC)
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
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #4 on Tue 25 Jul 2006 08:10 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #5 on Tue 25 Jul 2006 08:14 PM (UTC)
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
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #6 on Tue 25 Jul 2006 08:20 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #7 on Tue 25 Jul 2006 08:23 PM (UTC)
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
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #8 on Tue 25 Jul 2006 08:32 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #9 on Tue 25 Jul 2006 08:42 PM (UTC)
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
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #10 on Tue 25 Jul 2006 08:59 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #11 on Tue 25 Jul 2006 09:03 PM (UTC)
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
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #12 on Tue 25 Jul 2006 09:13 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #13 on Tue 25 Jul 2006 09:19 PM (UTC)
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
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.


33,932 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.