Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: wezzy on August 12, 2006, 11:00:56 AM
-
Hi!
I'm trying to get awstats to work, but all the time I get this:
Error: Missing Dependency: awstats >= 6.5 is needed by package smeserver-awstats
I've tried with rpm package directly and with yum. I get the same thing. Does anyone have any ideas?
I'm real thankful for all the help I can get
-
Which awstats RPM are you trying to install?
Dave
-
Which awstats RPM are you trying to install?
Dave
awstats is in the DAG repository if I remember correctly. You can add that and other repositories like described in the 3rd Party Yum Repositories (http://no.longer.valid/phpwiki/index.php/3rdPartyYumRepositories).
Installing would than be (I guess as I have not tested it):
yum install smeserver-awstats --enablerepo=dag --enablerepo=base
-
Thank you cactus...
That seemed to work. And how do I reach awstats on my server now? it installed itself in "/var/www/awstats"
The whole point is obviously to see the statistics on a webpage
By the way, the RPM package I tried to install was smeserver-awstats-1.2-2.noarch.rpm
-
Thank you cactus...
That seemed to work. And how do I reach awstats on my server now? it installed itself in "/var/www/awstats"
The whole point is obviously to see the statistics on a webpage
By the way, the RPM package I tried to install was smeserver-awstats-1.2-2.noarch.rpm
It is in your server-manager under the Administration and is called Web statistics. I don't exactly know how to make (parts of) it available to the general public, probably you will need to modify your templates to do so. From the top of my head (so not tested and prone to errors :-) ):
<Directory /awstats /var/www/awstats>
DirectoryIndex awstats.pl
Options None
AllowOverride None
order deny,allow
deny from all
allow from all
</Directory>
Which might make it available as http://fqdn-of-your-server/awstats.
-
I don't exactly know how to make (parts of) it available to the general public...
awstats has a record of being widely exploited. Only expose it to the general public if you must, and be sure to use the latest version, and to watch for new updates and install them when they become available.
-
In my /etc/yum.conf following data is written:
[dag]
enabled=0
name=Dag - EL4
baseurl=http://apt.sw.be/redhat/el4/en/$basearch/dag
gpgcheck=1
enablegroups=0
exclude=freetype htop iptraf rsync syslinux
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
But when I then run the command
yum install smeserver-awstats --enablerepo=dag --enablerepo=base
it will still not install awstats, get an error message telling me that:
Setting up Install Process
Setting up repositories
dag 100% |=========================| 1.1 kB 00:00
smeaddons 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
smeos 100% |=========================| 951 B 00:00
smeupdates 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Excluding Packages from Dag - EL4
Finished
Parsing package install arguments
No Match for argument: smeserver-awstats
Nothing to do
================================================================
No new rpms were installed. No additional commands are required.
================================================================
I tried install awstats with yum install smeserver-awstats --enablerepo=dag --enablerepo=base
Hope someone has the knowledge to help with this. I would be grateful for all help.
-
I tried install awstats with yum install smeserver-awstats --enablerepo=dag --enablerepo=base
Hope someone has the knowledge to help with this. I would be grateful for all help.
As awstats is in the dungog repository you will probably need to enable that one also to find the smeserver-awstats package:
yum install smeserver-awstats --enablerepo=dag --enablerepo=base --enablerepo=dungog
-
Tried it and it came up with the following error message:
Setting up Install Process
Setting up repositories
http://mirror.contribs.org/smeserver/contribs/dungog/packages/smeserver/7.0/i386/dungog/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: dungog
failure: repodata/repomd.xml from dungog: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from dungog: [Errno 256] No more mirrors to try.
For dungog the yum.conf is:
[dungog]
enabled=0
name=SME Server 7 - dungog
baseurl=http://mirror.contribs.org/smeserver/contribs/dungog/packages/smeserver/7.0/i386/dungog/
gpgcheck=0
enablegroups=1
Is my settings in yum.conf wrong or is it just a server problem at this specific time?
-
For dungog the yum.conf is:
[dungog]
enabled=0
name=SME Server 7 - dungog
baseurl=http://mirror.contribs.org/smeserver/contribs/dungog/packages/smeserver/7.0/i386/dungog/
gpgcheck=0
enablegroups=1
Is my settings in yum.conf wrong or is it just a server problem at this specific time?
The setting is indeed incorrect (the correct settings are documented on http://dungog.net/sme/repo.php, to correct it:
/sbin/e-smith/db yum_repositories delete dungog
/sbin/e-smith/db yum_repositories set dungog repository \
BaseURL http://sme.dungog.net/packages/smeserver/7.0/i386/dungog/ \
EnableGroups yes \
GPGCheck no \
Name 'SME Server 7 - dungog' \
Visible yes \
status enabled
expand-template /etc/yum.conf
After that you should be able to access the dungog repository and download smeserver-awstats.
-
I only wanted to say thank you for your help cactus. And I'll stick to have awstats in my server-manager only and not presented to the public. Some more problems accured on the way and basically I don't need it.
-
Awstats was installed correctly. But when I should upgrade SME through the server-manager I ran through a problem... After accepting the update of package the server downloading everything... But then I got following message.
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /server-manager/cgi-bin/yum.
Reason: Error reading from remote server
Can mine changes in yum.conf caused this trouble? Or is it some servers that just refuses to give me the package I requested?
My yum.conf looks like following:
[main]
cachedir=/var/cache/yum
debuglevel=2
exactarch=1
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
logfile=/var/log/yum/yum.log
obsoletes=1
tolerant=1
[addons]
enabled=0
name=CentOS - addons
baseurl=http://mirror.centos.org/centos/4/addons/$basearch
gpgcheck=1
enablegroups=0
[atrpms]
enabled=0
name=atrpms - EL4
baseurl=http://dl.atrpms.net/el4-$basearch/atrpms/stable
gpgcheck=1
enablegroups=0
exclude=clamav spamassassin libselinux perl-HTML-Parser lm_sensors perl-IO-stringy perl-XML-Parser razor-agents libgcrypt rpm-python libxml2 zlib gnupg libxml2-python yum module-init-tools rpm gettext librpm4 glib2 perl-libwww-perl perl-Convert-ASN1 beecrypt fetchmail libacl libtool-ltdl popt libgpg-error freetype perl-MIME-tools mutt gd perl-TimeDate librpm4.4
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
[base]
enabled=0
name=CentOS - os
baseurl=http://mirror.centos.org/centos/4/os/$basearch
gpgcheck=1
enablegroups=0
[c4-testing]
enabled=0
name=CentOS-4 Testing
baseurl=http://dev.centos.org/centos/4/testing/i386/
gpgcheck=1
enablegroups=0
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
[centosplus]
enabled=0
name=CentOS - centosplus
baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch
gpgcheck=1
enablegroups=0
[chaapai]
enabled=0
name=SME Server - Chaapai contribs
baseurl=ftp://ftp.chaapai.homelinux.net/yum-smeserver/7.0pre1/smechaapai/i386/
gpgcheck=0
enablegroups=0
[contrib]
enabled=0
name=CentOS - contrib
baseurl=http://mirror.centos.org/centos/4/contrib/$basearch
gpgcheck=1
enablegroups=0
[dag]
enabled=0
name=Dag - EL4
baseurl=http://apt.sw.be/redhat/el4/en/$basearch/dag
gpgcheck=1
enablegroups=0
exclude=freetype htop iptraf rsync syslinux
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
[dries]
enabled=0
name=dries - EL4
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el4/en/i386/dries/RPMS
gpgcheck=1
enablegroups=0
exclude=iptraf iptstate perl-Convert-ASN1 perl-Digest-SHA1 perl-XML-NamespaceSupport perl-XML-SAX python-elementtree spamassassin perl-Authen-PAM perl-IO-stringy perl-MIME-tools perl-Net-Server perl-Quota
gpgkey=http://dries.studentenweb.org/rpm/RPM-GPG-KEY.dries.txt
[dungog]
enabled=1
name=SME Server 7 - dungog
baseurl=http://sme.dungog.net/packages/smeserver/7.0/i386/dungog/
gpgcheck=0
enablegroups=1
[extras]
enabled=0
name=CentOS - extras
baseurl=http://mirror.centos.org/centos/4/extras/$basearch
gpgcheck=1
enablegroups=0
[jpackage-1.6-generic-free]
enabled=0
name=jpackage-1.6-generic-free
baseurl=http://mirrors.dotsrc.org/jpackage/1.6/generic/free/
gpgcheck=1
enablegroups=0
gpgkey=http://jpackage.org/jpackage.asc
[jpackage-1.6-generic-non-free]
enabled=0
name=jpackage-1.6-generic-non-free
baseurl=http://mirrors.dotsrc.org/jpackage/1.6/generic/non-free/
gpgcheck=1
enablegroups=0
gpgkey=http://jpackage.org/jpackage.asc
[jpackage-1.6-rhel4-free]
enabled=0
name=jpackage-1.6-rhel4-free
baseurl=http://mirrors.dotsrc.org/jpackage/1.6/redhat-el-4.0/free/
gpgcheck=1
enablegroups=0
gpgkey=http://jpackage.org/jpackage.asc
[kbs-centos-extras]
enabled=0
name=CentOS.Karan.Org-EL4 Extras - Stable
baseurl=http://centos.karan.org/el4/extras/stable/$basearch/RPMS/
gpgcheck=1
enablegroups=0
exclude=oidentd perl-FreezeThaw perl-IO-stringy perl-Net-Server perl-Test-Inline perl-Text-Template ulogd
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
[kbs-centos-misc]
enabled=0
name=CentOS.Karan.Org-EL4 Misc - Stable
baseurl=http://centos.karan.org/el4/misc/stable/$basearch/RPMS/
gpgcheck=1
enablegroups=0
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
[paulomatos]
enabled=0
name=Paulo Matos - RT 3.4.x
baseurl=http://campus.fct.unl.pt/paulomatos/rt/repository/3.4.x/
gpgcheck=0
enablegroups=0
[razorsedge]
enabled=0
name=razorsedge - EL4
baseurl=http://rpm.razorsedge.org/centos-4/RE/i386/
gpgcheck=1
enablegroups=0
exclude=ucspi-tcp
gpgkey=http://rpm.razorsedge.org/RPM-GPG-KEY.RE.txt
[silfreed]
enabled=0
name=Silfreed - EL4
baseurl=http://www.silfreed.net/download/repo/rhel/4/i386/silfreednet/
gpgcheck=1
enablegroups=0
gpgkey=http://www.silfreed.net/download/pubkey.txt
[smeaddons]
enabled=1
name=SME Server - addons
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeaddons/$basearch
gpgcheck=1
enablegroups=1
[smedev]
enabled=0
name=SME Server - dev
baseurl=http://mirror.contribs.org/smeserver/releases/7/smedev/$basearch
gpgcheck=1
enablegroups=1
[smeos]
enabled=1
name=SME Server - os
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeos/$basearch
gpgcheck=1
enablegroups=1
[smetest]
enabled=0
name=SME Server - test
baseurl=http://mirror.contribs.org/smeserver/releases/7/smetest/$basearch
gpgcheck=1
enablegroups=1
[smeupdates]
enabled=1
name=SME Server - updates
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates/$basearch
gpgcheck=1
enablegroups=1
[smeupdates-testing]
enabled=0
name=SME Server - updates testing
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates-testing/$basearch
gpgcheck=1
enablegroups=1
[testing]
enabled=0
name=CentOS - testing
baseurl=http://mirror.centos.org/centos/4/testing/$basearch
gpgcheck=1
enablegroups=0
[updates]
enabled=0
name=CentOS - updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch
gpgcheck=1
enablegroups=0
-
From where did you get the awstats rpm's? Did you execute all the neccessary commands after installing the RPM's (e.g. signal-event post-update; signal-event reboot;)?
Did you wait for a few minutes to give awstats the time to analyze your log files as all info is gathered from there?
Oh, BTW please don't hi-jack someone other's thread, next time start a new one instead for your problem, clearly stating your problem and relevant information.
-
But when I should upgrade SME through the server-manager I ran through a problem... After accepting the update of package the server downloading everything... But then I got following message.
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /server-manager/cgi-bin/yum.
Reason: Error reading from remote server
You might want to refer to bug#1863.
This SME Update problem has nothing to do with awstats.
Suggest you perform a 'reconfigure' in the reboot-shutdown panel.
John