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


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Apache Related Information

CageFS with awstats: Can't open perl script "/usr/local/awstats/tools/awstats_buildstaticpages.pl": No such file or directoryLast Modified: Oct 15, 2019, 12:55 pm
If your awstats are not working with CageFS and you're getting an error like this when testing it manually:

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

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

/usr/share/cagefs-skeleton/usr/local/

To get around that, edit:

/etc/cagefs/conf.d/directadmin.cfg

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 :)

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST