logs.php error

Discussion in 'Installation/Configuration' started by timehost, Dec 27, 2005.

  1. timehost

    timehost New Member

    Hello,
    Since I have problem with webalizer not generating any reports at all, I found out there is a problem with the logs script running:

    /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

    Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125

    Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125


    I think I may have some inconsistency with my ISPConfig database and the web home directories, since I have created and deleted some. I checked in server settings that the location of /var/log/httpd/ispconfig_access_log file is correct. I would appreciate your help, Thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you deleted the websites and directories manually or in ISPConfig? Never delete web directories or database records manually or you will break ISPConfig!

    The readlink errors are not serious. Where the stats being generated?
     
  3. timehost

    timehost New Member

    have to wait until next month ?

    I always deleted sites from ISPConfig inside, but there were some folders left like web1 and web3, which I deleted manually thereafter.

    Currently there are no stats are generated at all, because I see nothing in /home/www/web2/log

    [root@zeus log]# pwd
    /home/www/web2/log
    [root@zeus log]# ls -al
    total 28
    drwxr-xr-x 2 p2pjournal.com-admin web2 4096 Dec 26 15:16 .
    drwxr-xr-x 10 p2pjournal.com-admin web2 4096 Dec 27 04:00 ..
    -rw-r--r-- 1 p2pjournal.com-admin web2 18940 Dec 27 10:34 error.log
    -r-------- 1 root root 0 Dec 26 15:16 .no_delete



    I have found another posting with the same error :
    http://www.howtoforge.com/forums/showthread.php?t=1504&highlight=readlink

    Does this mean the symbolic links are created only 1st of each month?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The directories where delted when you remove the websites from the recycle bin.

    No. The symlinks where created each night if they dont exits. You may have a look at the following script:

    /root/ispconfig/scripts/shell/logs.php
     
  5. falko

    falko Super Moderator ISPConfig Developer

Share This Page