virtualmin-nginx-fpm icon indicating copy to clipboard operation
virtualmin-nginx-fpm copied to clipboard

no log rotation

Open kintaro1981 opened this issue 8 years ago • 7 comments

I found another issue.

If I set up a virtual host with FPM feature from the "create virtual server" form log rotation don't get initialized.

Setting up log file rotation .. .. no logging directive found in web server configuration

In the server template log rotation is set to Automatic.

This is the complete output activating only the Enable Nginx PHP-FPM website feature

Creating administration group testlogrotation ..
.. done
Creating administration user testlogrotation ..
.. done

Creating aliases for administration user ..
.. done

Adding administration user to groups ..
.. done

Creating home directory ..
.. done

Creating mailbox for administration user ..
.. done

Creating SSL certificate and private key ..
.. done

Setting up Nginx PHP-FPM website ..
.. done

Adding webserver user www-data to server's group ..
.. done

Setting up log file rotation ..
.. no logging directive found in web server configuration

Saving server details ..
.. done

Sending email notification to domain owner ..
.. email sent to [email protected]
```!

kintaro1981 avatar May 03 '16 08:05 kintaro1981

Yep, I was not really care about this option :D There're some issues with loggin in my module. Will try to fix it shortly.

Real-Gecko avatar May 03 '16 08:05 Real-Gecko

another thing: without log rotation configured, virtualmin scheduled backups are logging errors

kintaro1981 avatar May 18 '16 14:05 kintaro1981

Error log?

Real-Gecko avatar May 18 '16 14:05 Real-Gecko

here's an example of the backup output:

Creating backup for virtual server domain.com ..
    Copying virtual server configuration ..
    .. done

    Backing up Cron jobs ..
    .. none defined.

    Copying records in DNS domain ..
    .. done

    Saving mail aliases ..
    .. done

    Saving mail and FTP users ..
    .. done

    Backing up mail and FTP user Cron jobs ..
    .. none to backup

    Copying Webalizer configuration files ..
    .. no logging directive found in web server configuration

    Copying Logrotate configuration ..
    **.. Error: no log rotation configuration found!**

    Dumping MySQL database shop_ping ..
    .. done

    Backing up Webmin ACL files ..
    .. done

    Copying Nginx PHP-FPM configuration files ..
    .. done

    Creating TAR file of home directory ..
    .. done

.. completed in 7 seconds
```!

kintaro1981 avatar May 19 '16 07:05 kintaro1981

Ah yeah, that's the known problem, it's because log rotation is not configured. Gotta deal with 'at.

Real-Gecko avatar May 19 '16 07:05 Real-Gecko

any news about this and the other issues? :-)

kintaro1981 avatar Aug 05 '16 00:08 kintaro1981

Yeah man, need to find time to do this, always forget.

Real-Gecko avatar Aug 07 '16 02:08 Real-Gecko