Add to Favourites Add to Favourites    Print this Article Print this Article

CageFS with awstats: Can't open perl script "/usr/local/awstats/tools/": No such file or directory

If your awstats are not working with CageFS and you're getting an error like this when testing it manually:

[root@server scripts]# ./ user
Conversion not required. Continuing normally
Can't open perl script "/usr/local/awstats/tools/": No such file or directory

it likely means the data has not been copied over to the skeleton folder in


To get around that, edit:


and add 2 values, so beginning of the line looks like this, assuming :

paths=/usr/local/awstats/, /usr/local/awstats-7.7/, /usr/local/awstats, /usr/local/php....

where the bold bits are new.

Then run:

/usr/sbin/cagefsctl --force-update

which should copy everything over to the cagefs-skeleton/usr/local path.  Just confirm it:

[root@server scripts]# ll /usr/share/cagefs-skeleton/usr/local
total 40
lrwxrwxrwx 1 root   root     11 Jun 26 22:57 awstats -> awstats-7.7
drwxr-xr-x 5 root   root   4096 Mar  1  2016 awstats-7.7

We add
  1. the literal awstats-7.7 directory
  2. the literal path to the awtstats link (without trailing slash)
not sure if there was a change in CageFS, and older version of CafeFS, they've fixed a bug to prevent us from doing it the old way :)

Was this answer helpful?

Also Read