cloudlflare zapisi - Migrating DNS records from Cloudflare to cPanel

Migrating DNS records from Cloudflare to cPanel

Both Cloudflare and cpanel store DNS zones in standard BIND files. When moving a DNS zone from cPanel to Cloudflare, Cloudflare checks and inserts DNS entries automatically. But, when transferring DNS from Cloudflare to cPanel we must...

postgre db backup script - Postgres DB backup script

Postgres DB backup script

To export a postgres database We use the pg_dump command: pg_dump -U postgres -v DATABASE -f FILENAME.sql And to import it back we use psql: psql -U postgres -W -d "FILENAME.sql" < FILENAME.sql Now that we know these commands We can easily create...

image 27 - List all cronjobs for all cPanel users

List all cronjobs for all cPanel users

To list all cronjobs for all users on a cPanel server use the following command for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done or: cat /var/spool/cron/* To list cronjobs for a single user, navigate to /var/spool and view the...

image 21 - How to block / quarantine extensions in Proxmox Mail Gateway

How to block / quarantine extensions in Proxmox Mail Gateway

To block incoming emails in Proxmox Mail Gateway that contain attachments with a specific extension, for example, .cab I recommend blocking both the extension (MIME type) and the filename (files that end with .cab). To do this first log in to...

fixpermsphp - Change Folder Permissions using PHP

Change Folder Permissions using PHP

Sometimes it’s useful to enable visitors to your site to upload content, for example, photos, which can then be displayed on the site. Folders on a website, for example, an images folder will typically have permissions of 755, which means that...

Wallpaper Linux Red Hat Ubuntu 2910x1637 wallup  - How to check and change runlevels in RHEL

How to check and change runlevels in RHEL

A runlevel is one of the modes that a Unix-based OS will run on. Each runlevel has a certain number of services stopped or started, giving the user control over the behavior of the machine. The following runlevels are defined by default under Red...

image 16 - Where are autoresponders and forwarders files on a cPanel server

Where are autoresponders and forwarders files on a cPanel server

On cPanel servers user forwarders and autoresponders are located in the  /etc/valiases/ directory and separate for each domain (Forwarders and autoresponders for all email addresses under domain example.net are located in the...