I'll uninstall and reinstall and try again just to verify. Well, as soon as http://www.fusion-ict.nl/da_plugin/awstats.tar.gz is available again.
Since the script uid keeps popping up as 101, i'll try a permissionchange from uid 0 to 101 for the script....Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /usr/local/directadmin/plugins/awstats/hooks/da.php owned by uid 0 in /usr/local/directadmin/plugins/awstats/user/index.html on line 8 Warning: main(/usr/local/directadmin/plugins/awstats/hooks/da.php): failed to open stream: Success in /usr/local/directadmin/plugins/awstats/user/index.html on line 8 Warning: main(): Failed opening '/usr/local/directadmin/plugins/awstats/hooks/da.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/directadmin/plugins/awstats/user/index.html on line 8 Fatal error: Cannot instantiate non-existent class: httpsocket in /usr/local/directadmin/plugins/awstats/user/index.html on line 10
Checking if there is already something installed..
Creating AwStats dir on domain
Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /home/testdomain/domains/testdomain.nl/public_html owned by uid 512 in /usr/local/directadmin/plugins/awstats/user/index.html on line 39 Checking if awstats files are available Warning: symlink(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /home/testdomain/domains/testdomain.nl/public_html owned by uid 512 in /usr/local/directadmin/plugins/awstats/user/index.html on line 45 + Warning: symlink(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /home/testdomain/domains/testdomain.nl/public_html owned by uid 512 in /usr/local/directadmin/plugins/awstats/user/index.html on line 47 + Warning: symlink(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /home/testdomain/domains/testdomain.nl/public_html owned by uid 512 in /usr/local/directadmin/plugins/awstats/user/index.html on line 49 +
Checking for AwStats itself
Warning: copy(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /home/testdomain/domains/testdomain.nl/public_html owned by uid 512 in /usr/local/directadmin/plugins/awstats/user/index.html on line 54 Warning: copy(/home/testdomain/domains/testdomain.nl/public_html/awstats/awstats.pl): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 54 Installed awstats.
(Re-)Activating CGI for dir
Warning: copy(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /home/testdomain/domains/testdomain.nl/public_html owned by uid 512 in /usr/local/directadmin/plugins/awstats/user/index.html on line 57 Warning: copy(/home/testdomain/domains/testdomain.nl/public_html/awstats/.htaccess): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 57 (Re-)Setting permissions
Warning: chmod(): Unable to access /home/testdomain/domains/testdomain.nl/public_html/awstats/awstats.pl in /usr/local/directadmin/plugins/awstats/user/index.html on line 59 Warning: chmod(): No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 59 Warning: chown(): Unable to access /home/testdomain/domains/testdomain.nl/public_html/awstats/awstats.pl in /usr/local/directadmin/plugins/awstats/user/index.html on line 60 Warning: chown(): No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 60 Now (re-)creating your configuration file.
Config file has been created and your statistics are now setup!
You can now view the statistics for your domain at: www.testdomain.nl/awstats/
fusionictnl said:Icheb With safe_mode restriction on it will not work, even awstats does use files outside the users dir.
The script(s) change a lot outside the permitted directory in safe_mode.
fusionictnl said:DA removes the plugin dir /etc/awstats and the user's public_html/awstats have to be deleted manualy.
If you have another awstats or something it would be deleted, nobody likes that or if something goes wrong with deleting the awstats dir and the users public_html is gone, they wouldn't be happy
If you just turn off safe_mode in the panel, as it is standard, it should work
By the way, HTTPS isn't working correctly, so if you're running https it probaly won't work. (working on it )
Have a nice vacationfusionictnl said:I will implement it. But for now I'm going on a vacation for a week.
if ($awuser && $awpass && $domain) {
if ($awuser && $awpass && isset($domain)) {
$Socket->connect('127.0.0.1',2222);
if (file_exists("/usr/local/directadmin/plugins/awstats/hooks/ssl.use"))
$Socket->connect('ssl://127.0.0.1',2222);
else
$Socket->connect('127.0.0.1',2222);