Red Hat / Fedora :: Configure Webalizer On A CentOS 5.5 System?
Sep 14, 2010
I have been trying to configure webalizer on a centOS 5.5 system.I did the yum install and I found this helpful link...[URL]..However when I try to change the dir it puts the info into, it keeps giving me an error cannot cd to the directory. I changed the /etc/webalizer.conf file as described in the above article and try to run it manually same results.
/etc/cron.daily/00webalizer Error: Can't change directory to /home/webalizer/ When I put the original dir back in the path it writes to /var/www not /var/www/output like it should. I even tried a local /var/wwww/output dir. Then I tried a link to /home/webalizer/output (a dir I created) and same results.(with orginal .cfg in place) I go to my www page remote or on the local network I get page not found errors. http://mysite.com/webalize or 192.168.1.80/webalizer page not found.
In summary.
1. Why wont the /etc/webalizer.cf file allow me to change the location of the files?
2. How do I display the www page to view the data?
3. How can I secure the www page so only I can view the data.
just saw this in my email too :
header info deleted...
/etc/cron.daily/00webalizer:
Error: Can't change directory to /home/webalizer
/etc/cron.daily/logrotate:
Current logging target is:
`- SYSLOG
edit: i should also mention SeLinux is in permissive mode not enforcing while i am testing this.
I have tried to install and configure Hudson in centos distro version 5.Installed hudson with tomcat by deploying .war files.after configuration was completed, builded a project.It displayed build was completed successfully.but I was not able to download output of build.
So I rechecked configuration,found that i havent set artifact file pattern to archive. how to set artifact file pattern and how to get build output. how to manage hudson by using configure system and configure options.what is the correct way to configure public hudson?.
I have a dedicated server with fc-9. I have several domains. They are located in /home/domainname/html Under each /home/domainname I have added a webalizer.conf file. Recently I moved video files into a subdomain so I could track usage and generate reports on the use of these video files. Hence the main domain html files call the sub-domain to present flash files for viewing and .avi, .ogm, mp4, etc files for downloading.
So I have for directories: /home/domain/html /home/domain_files/html
I set up the domain_files as I have the main domain with access_log and error_log. I set up webalizer to analyze every day at midnight. What I get for webalizer results is links back to Sept, even though the logfile's first enter is in January. I also see many files in the report that are from a totally different domain. I have checked carefully and in webalizer.conf I have: LogFile /home/domain_files/access_log I'm lost. I haven't a clue what's wrong. If webalizer can't do this is there another simple logfile analyzer that can give me video usage?
I am trying to configure a system to boot Windows XP, CentOS 4 and RHEL5. I have one hard drive that contains both Windows XP and CentOS 4, and a separate drive that contains RHEL5. Until recently, I only had one SATA cable, so I could only connect one drive at a time. Under this configuration, everything works fine. When the RHEL5 drive is connected, I can boot into it. When the Windows/CentOS drive is connected, I can dual-boot into either OS. (GRUB was configured on this drive automatically when I installed CentOS into a new partition.)
Opening the box and moving the SATA cable is a lot of trouble, so I finally got a second SATA cable and enabled both SATA0 and SATA1 in the BIOS. I currently have the Windows/Centos drive as the primary, and I can still boot into both Windows/Centos. Now, I want to add RHEL5 to menu, but I can't find the file GRUB is using to present its menu at startup.
I have configured GRUB before on other systems, but I just know the very basics, such as where the grub.conf file should be. So, I spent a whole day reading advice online and asking friends who might have experience with these issues. Here are the steps I have taken so far:
I confirmed there is no /boot/grub directory, and /etc/grub.conf is a broken soft-link to /boot/grub/grub.conf. I did a find for grub.conf, which found nothing. I did a find for menu.lst, which found one item -- an example GRUB config file in /usr/share/doc/grub-0.95. I noticed that when CentOS boots, I see the GRUB commands printed to the screen, the first of which is:
root (hd0,2)
So, I did a grep -R "(hd0" * at the / directory, which also found only one item -- the example menu.lst file in /usr/share/doc/grub-0.95. I discovered that I can go to the command line grub from the grub menu and do:
cat (hd0,2)/grub/grub.conf
The cat command returns a printout of the grub configuration the system is obviously using. I didn't create this file, but the titles are identical to what I see in the GRUB menu, the default boot is Windows, and the timeout is very short. This must be the file. It looks like:
default=2 timeout=5 splashimage=(hd0,2)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.9-89.ELsmp)
[Code].....
I've also tried making the RHEL5 drive the primary drive. In that case, I can modify the existing /boot/grub/grub.conf file and see my changes at the GRUB boot menu. However, I can't get Windows to boot in this configuration. I've done a lot of google searching on the topic and added map commands to make Windows think it is on the primary drive. But, I'm still unsuccessful on this front as well. I think I'm closer to solving the problem with Windows/CentOS as the primary. However, if you think I will have more success with RHEL5 as the primary drive, I can provide more details as to my current grub.conf on that drive in a later post.
I could not able to configure the default gateway ip address onto the system. i use the route command (" route add default gw 192.xxx.xxx.xxx eth0 ") to add a default gateway onto the routing table but it is "disappear" in the routing table when i had restart the service network.
I have loaded Fedora 10 in my PC and have configured the network (wired and wireless [Netgear Wifi Adapter] both). But I am able to make the hostname resolution work. configure the system?. I have unsuccessfully tried a lot of things.
I used to configure and run PHP script in Redhat Linux System for a long time ago. Now I forgot almost everything in Linux. I downloaded and install Fedora 11 Live CD. Start httpd service(Appache). It does work with html but not PHP script. And I can't remember how to configure the system to interpret PHP script.
The problem is that he did not specify exactly where in /etc/profile. I am trying to make a custom spin of F12 but I cannot do it behind the proxy as it is now.
I have a question for you guys. How do I monitor a URL (link) in my server ? I want to see how many times a page has been accessed. In webalizer, there is such thing but there's a TOP 30 URL access, and I want to monitor (count) a specific URL. Is that possible ? If yes, how and what do I need to do.
They say:
Securing and Optimizing Linux: RedHat Edition -A Hands on Guide PrevChapter 30. Optional component to install with ApacheNext 30.3. Configure the /etc/webalizer.conf file
The /etc/webalizer.conf is the default configuration file for Webalizer. With it, you can specify which directories or pages in your web site to analyze, which URLs to hide, and so on. By default, the Webalizer program will install a sample configuration file named webalizer.conf.sample under the /etc/ directory of Linux. You can use this file to configure your choices and then rename it webalizer.conf, and the Webalizer program will be able to find and use it. A lot of options exist and it's important to read the documentation that comes with Webalizer for more information on all of the different setting and parameters. Also, it's important to note that we comment in this Webalizer configuration file only the most common and used parameters.
[Code]...
But I don't get it, what should I type in order for the webalizer to monitor a specific URL.
I'm trying to get webalizer to analyse some log files. The server uses virtual hosts and has log rotations on and also uses turbopanel (now known as simple control panel). Because of this, the documentation is limited and webalizer works in a weird way. I found this perl script under turbopanel called webalizerrun.pl the code is as follows:
Code: #!/usr/bin/perl $WEBALIZER = "/usr/bin/webalizer"; chomp($var = shift); $wdir = "$var/conf/webalizer"; opendir(DIR, $wdir) or die "Unable to read $wdir: $!";
[Code]...
Here's what I want to do, and I believe I can do this using this code with slight modifications. As of now, the log files for each site is in the folder specified above with the file named as "domain-name_access_log" and then the log rotation just adds a number to the end of that. I want use this perl script to run webalizer for a particular site and have its output be placed in directory.
1.) Line 4: chomp($var = shift): I know chomp is used to remove trailing characters, but what character in this case? How may I find that out? Also what does $var = shift do inside chomp?
2.) Line 8: What exactly does the readdir function do? What does it return to $domain?
The rest seems similar to csh, checks if it's dir or file and then changes to the directory and runs webalizer on that directory.
I have been trying to configure webalizer on a centOS 5.5 system. I did the yum install and I found this helpful link...However when I try to change the dir it puts the info into, it keeps giveing me an error cannot cd to the directory. I changed the /etc/webalizer.conf file as described in the above article and try to run it manually same results. /etc/cron.daily/00webalizer Error: Can't change directory to /home/webalizer/When I put the original dir back in the path it writes to /var/www not /var/www/output like it should. I even tried a local /var/wwww/output dir. Then I tried a link to /home/webalizer/output (a dir I created) and same results.(with orginal .cfg in place)I go to my www page remote or on the local network I get page not found errors.In summary.1. Why wont the /etc/webalizer.cf file allow me to change the location of the files?2. How do I display the www page to view the data?3. How can I secure the www page so only I can view the data.
Recently i am install webalizer in my application server .i am using centos4.1 .i installed successfully.but when i run the command i am getting like this.
root@tuxserver# /usr/bin/webalizer Warning: Truncating oversized referrer field Warning: Truncating oversized referrer field
I'm using Webmin, and Webalizer plugin. Days ago, webalizer works fine. But starting from yesterday, Webalizer no longer generate reports. And when I try to generate report manually using webmin, I get this message: Code: Running Webalizer to generate report from [URL]..
.. Webalizer failed! See the output above for details. Because I didn't get any details on that message, I run webalizer manually using command:
Code: # webalizer -n mydomain.com And as result, I got this message:
Code: # webalizer -n mydomain.com Error: Unable to restore run data (10) I have few domains in this machine, and for all domains I got the same result. Anyone has any idea(s) about what happened and how to cure it? Few days ago I think I tried to install Perl-Small-XML using CPAN and failed. And I installed awstats too. Don't know whether it's related or not.
How do I know what sound system my Centos 5.5 install is using and how would I configure which soundcard output to use? I want to use the digital coax output from my M-Audio PCI soundcard, which appears to be detected and loaded. When I launch MPD, it autodetects an alsa sound system, but programs like alsamixer don't exist and I can't hear any sound out of the digital coax output. I haven't checked the 3.5mm stereo out yet.A little confused as to which documentation to be looking at at this point.
I wanna switch to Fedora on my office laptop. I have figured most my app's alternatives. But I just can find a app or a way to configure my exchange based email system "natively".
I am brand new to this forum! I have spent some time on other Linux forums but based on my usage of CentOS I figured that it would be best to come straight to the pros. I've been using CentOS for a while now, mostly as a web server. Actually I use it as the base and installed Parallels Plesk Control Panel.
Anyway I want to setup a VPN and so far I haven't found any real solid documentation on how to do that! Yes I could install DAG/RPM Forge but what I really want to know how to do it from scratch. What I mean by scratch is that I want to download the tar.gz package from openvpn.net and then build it as required. I don't know much about building or compiling a package so that is why I have come here for help! I am guessing that I need to compile openVPN with openSSL and probably a few other packages... I could use openSWAN but I don't want to.
Attach a Fedora/RHEL/CentOS system to an Active Directory DomainBelow is a step by step outline of how to configure a Linux Samba fileserver to use an Active Directory domain for authentication and authorization in place of flat files. Note that this configuration has been replicated using Fedora 10, RHEL 5.3 and CentOS 5 since they all more or less share the same code base.me of the example server in this document is erver1.domain.forest.org, substitute correctly where appropriate. At the very least following packages must also be installed:
sambasamba-commonsamba-clientkrb5-workstationopenldap-clientsIt would be prudent to understand the underlying concepts of how Kerberos and Samba work prior to deploying this type of server. I find that SE-Linux will interfere with Samba services, particularly with winbind. I usually set SE-Linux to be in a permissive mode. It is possible to update the SE-Linux policies but that is outside the scope of this document, i.e you're on your own. In some cases I turned SE-Linux off since it was causing winbind to stop responding.
1. Set NTP to use the correct server for your Active Directory domain:shell> system-config-timeSet the primary NTP server to be your domain/forest NTP server2. Make backups of and edit the following system configuration files:a. shell> cp /etc/resolv.conf /etc/resolv.conf.bakb. shell> vi /etc/resolv.conf
I was just looking today,and it appears that suse 11.2 no longer uses the xorg.conf file to configure certain hardware...(the only thing written to the file is my ATI info) so where would I find what I'm looking for? (I'm specifically looking to configure my synaptics touchpad mouse)
Is it possible to configure RHN in centos 5.1, use to manage the virtual machines through RHN. If possbile kindly specify which rpms are used for that.
I've been trying to configure Coriander on my 32-bit system (Ubuntu v10.04), but I've run into an issue that I've only found discussion boards for in French, a language I'm nowhere near fluent enough in to translate on a tech forum. When I run the ./configure command in the coriander folder, things run fine. Everything configures normally, and I move on. But then, when I run 'make', it runs a few lines making folders, and then this error message pops up:
In file included from coriander.h:92, from main.c:24: conversions.h:26: error: expected declaration specifiers or ... before SDL_Overlay make[2]: *** [main.o] Error 1
I need to use MFix a open source program Therefore, because i don't have Linux on my computer i use Cygwin_NT-5.1 the latest version. From the help desk they told me that i need to configure a file to fit with my system. I just changed operation system to CYGWIN_NT-6.0 (instead of the command uname -s ; set opsys=$1. this was the only way i had an idea to do it, so i tell the programm that my sytem is a 6.0 but it isn't
then i wanted to install mfix and it gives me the error
../../model/make_mfix: line 119: syntax error near unexpected token '(' ../../model/make_mfix: line 119: 'echo -n "Do you need debug version? (y/n) [no] "'
by looking in he make_mfix file it looks like this echo -n "Do you need debug version? (y/n) [no] "
I wanna configure openssh with key DSA, after configured in server, i can`t use PC (Window) and teraterm ssh in server how can configure key DSA for client ?