Real-Gecko / virtualmin-nginx-fpm

Virtualmin plugin to create Nginx and PHP-FPM powered websites for domains
GNU General Public License v3.0
24 stars 9 forks source link

no log rotation #16

Open kintaro1981 opened 8 years ago

kintaro1981 commented 8 years ago

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 info@mail.com
```!
Real-Gecko commented 8 years ago

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.

kintaro1981 commented 8 years ago

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

Real-Gecko commented 8 years ago

Error log?

kintaro1981 commented 8 years ago

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
```!
Real-Gecko commented 8 years ago

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

kintaro1981 commented 8 years ago

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

Real-Gecko commented 8 years ago

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