Tag Info

New answers tagged

2

As mentioned in a comment, logrotate does this for you already. Just install (if it's not already installed) and enable it. Trying to do this with a custom cron job as @Dave mentions, while perhaps functional, is really not a good idea for your long-term sanity.


1

You can just set it to localhost. Edit /etc/apache2/conf.d/httpd.conf: ServerName localhost The ServerName directive can be use in two contexts: server config or virtual host. In server config context, ServerName directive is used when creating redirection URLs. In virtual host context, ServerName directive is used to uniquely identify a virtual host. ...


0

There are two general approaches to solve script timeouts, you can either make the script faster, or bypass or extend the timeout. Everyone agrees that if you make the script faster it is better, but sometimes you can't or don't know how to. On public production scripts I would make every effort to make things fast enough not to timeout or goto a background ...


0

In ZFS, encryption is at the file system level - not at the level of zpools - so instead of encrypting the whole rpool, you could pick and choose which filesystems to encrypt individually. As an example, # zpool create halfcrypt mirror file1 file2 # zfs create -o mountpoint=/public halfcrypt/public # zfs create -o encryption=on -o mountpoint=/whatever ...


0

I think your best bet is to make the apache document root a local directory on the same server that apache is running on. Then, if you must get content over a mount, use symlinks from within the doc root. The only way I have actually used this kind of setup is pulling static content from over the mount. If you are trying to reach across the mount, execute ...


0

They have access to files via Samba Share and SFTP. Set facl is best choice or we have another solutions better than facl on linux? I think switching to a more modern set of tools will serve you better in the long run. There was a time in the rickety past when version control tools were so primitive that using samba shares instead made practical ...



Top 50 recent answers are included