Download a site using SFTP

To download all content of a web site using SFTP, use

lftp

Cpanel Server Block Incoming SPF Failed Mails

One of the customer email account as getting too much incoming emails from [email protected]

First i tried to block the sender IP, but they are using too many IP.

To stop this incoming email, i edited

Find

Add below

Restart exim

Now watch the mail log with

Disable Signup Notification in vShare Youtube Clone

vShare youtube clone script allow you to start your own video sharing web site. You can get the script from

https://www.vshare.in

To disable Signup notification for admin, run following SQL.

Enable DKIM on Cpanel Server

DKIM (DomainKeys Identified Mail) is a way to digitally sign your out going emails. This help prevent spam.

On Cpanel server, you can install for a site, run

If you want to enable DKIM on all sites on a cpanel server, run following as user root.

This will also enable SPF.

Mirroring a site with wget

To mirror a web site for local viewing, you can use

–convert-links = After downloading, convert the links suitable for local viewing.

Atlassian JIRA Internal Server Error

On on Jira Server, when accessing the site get following error

JIRA — Internal Server Error
Error reference: b64e4876-0fc1-439a-a46d-4a3255a48230

Unable to render full error details at this time. Please consult the error logs for more information.

The problem was disk full.

[email protected] /var/atlassian/application-data/jira # du -h –max-depth=1
1.1M ./analytics-logs
4.0G ./plugins
293M ./log
72K ./structure
32M ./tmp
11M ./caches
632K ./logs
52K ./tempo
32G ./export
368M ./data
96K ./import
352K ./monitor
4.0K ./logos
8.5M ./bt-templates
37G .
[email protected] /var/atlassian/application-data/jira #

The folder /var/atlassian/application-data/jira/export used 32 GB disk space. This folder store daily backups.

I removed some of the older backups last last year, restarted the server, that fixed the problem.

To avoid this happening again, set a cronjob

Add

This will delete files older than 60 days.

Set it to run daily with crontab -e

Enable Error Logging in php-fpm

Edit your pool file

Add

if you only enable “log_errors”, then errors go to default nginx error log.

php-fpm

Apache Disable PHP for a web site

To disable PHP for a web site edit VirtualHost entry of the web site and add

Restart Apache

Apache

Google Cloud apt signatures couldn’t be verified

When i run apt update, i get error

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com cloud-sdk-jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com google-compute-engine-jessie-stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com google-cloud-packages-archive-keyring-jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB

W: Failed to fetch http://packages.cloud.google.com/apt/dists/cloud-sdk-jessie/InRelease

W: Failed to fetch http://packages.cloud.google.com/apt/dists/google-compute-engine-jessie-stable/InRelease

W: Failed to fetch http://packages.cloud.google.com/apt/dists/google-cloud-packages-archive-keyring-jessie/InRelease

W: Some index files failed to download. They have been ignored, or old ones used instead.

To fix this, run

apt gcloud