can't get #flastmod to work, and question about webalizer
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can't get #flastmod to work, and question about webalizer
Hello all,
I recently went from fedora core to Mandrake. In Fedora, the following worked just fine. However, Ican't seem to get it to work now in Mandrake. I know it likely has nothing to do with the Distro, and rather has to do with something I do or do not have installed or running. Can somebody point me in the right direction please? Here's what it is...
Running Apache, and in my links.html page I have the following lines:
<!--#config timefmt="%A %B %d, %Y" -->
This page last modified <!--#flastmod file="links.html" -->
THis used to then print on the page the time the page was last saved. Now, it shows nothing but the "This page last modified"
I have set the permissions on both the /var/www/html directory AND the page itself to 775, and even tried 777 just to see. Neither worked.
What am I missing?
Also, where did webalizer go? It was installed and running by default in Fedora, but doesn't even seem to be installed in Mandrake. Do I need to download and install this? I still have the directory and files that were created in Fedora, but they have not gotten updated by webalizer since the distro switch. WIll there be anything special I'll need to know to get it working once it's installed? I ask because I didn't havev to do ANYTHING to it in fedora. Heck, I didn'nt even know it was there until I happened across the directory once and saw all the usage stats and everything were already there and being updated regularily.
Okay, lack of responses forced me to help myself. The leasat I can do is answer my own question to help those who may find this post when searching...
To get the #flastmod to work, SSI (Server Side Includes) had to be enabled (THANKS to David Ross in an old post). In Mandrake, this was done by adding +Includes to the Options section of /etc/httpd/conf/commonhttpd.conf. Here is a snippet of the area this was added...
#This should be changed to whatever you set DocumentRoot to.
<Directory /var/www/html>
Options -Indexes FollowSymLinks MultiViews +Includes
Now, perhaps that was redundant, and I only needed the top portion, but I'm not sure. All I know is it didn't work until I added the +Includes to the 3rd line from above code. Then, restarted http and it worked fine on all pages. Woohoo!
For the latter part of my post, the Webalizer install went smoothly (was lacking one lib package, got it just fine and continued on) and the configuration wasn't too terrible. I managed to trash all of my old files though, so the usage stats from my previous server got overwritten. Bummer, but oh well.
Hope this manages to help somebody in the future...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.