Skip to main content

Re-directing the 'mail.' sub-directory

This only seems to affect Joomla sites.

For some reason cPanel allows access to the public_html folder through 'mail.' - if you go to any of our sites you can get to the website by entering https://mail.domainname - go figure!

it creates thousands of re-direct issues that are eventually picked up by search console.

Fix is to create a mail. subdomain in cPanel and then redirect that to the main domain - as this example for medifinance

medifinance

 

  • Hits: 4

Website Hosted elsewhere - settings for Mail through Blackbarn

We are sometimes asked to run the DNS for a client and their emails while the website is hosted elsewhere.

This means we have to pay attention to some settings in Blackbarn to make the emails flow properly.

This example is from  thecrowninnfivehead.co.uk  in the mambonight cPanel account.

Set the mail A record

cPanel > Tools > Domains > Zone Editor > select domain > manage

Looking at the Zone Editor, the A record has been changed to 141.94.22.138 as that's where the website will be served from; however, that will also automatically change the 'mail.' A record as well, this will need to be changed to our server IP address of 185.53.59.235

arecords

 Set the destination with Strike

cPanel > Tools > Email > Professional Spam Filter > login to the appropriate domain > Incoming > Destinations

Add as a destination

destination strike

Add the website hosting address to the SPF record

cPanel > Tools > Domains > Zone Editor > select domain > manage

spf record

 

  • Hits: 9

PHP 8.2 required Extensions for Joomla

For php8.2 you need the following extensions to be enabled for Joomla websites, in addition to the standard automatically enabled ones.

bcmath, dom, fileinfo, gd, imap, intl, mbstring, mysqli, mysqlind, opcache, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, phar, posix, sockets, timezonedb, xmlreader, xmlwriter, xsl, zip

php82

 

 

  • Hits: 37

PHP 8.4 required Extensions for PrestaShop 9.0

For php8.4 you need the following extensions to be enabled for Prestashop 9.0 websites, in addition to the standard automatically enabled ones.

bcmath, curl, dom, fileinfo, gd, imap, intl, mbstring, mysqli, mysqlind, pdo, pdo_mysql, phar, posix, sockets, timezonedb, xmlreader, xmlwriter, xsl, zip

Set PHP Options

max_input_vars - 3000

memory_limit - 512M

post_max_size - 128M

upload_max_size - 512M

 

 

 

  • Hits: 9

Recovering a whole cPanel account

Where you may have deleted a cPanel account and need to recover it.

WHM > Jet Backups > Accounts > View Orphaned Accounts

jet backup5

total accounts

orphan accounts

orphan accounts list

Select the account that you want to recover - in this instance 'brewing', click the line and it will show you backups and downloads - click View Backups

view backups

and now you have the option to restore

restore

 

 

 

 

 

  • Hits: 9

Forcing the nameserver on a domain - helps sort out SSL problems

Sometimes the domains don't automatically acquire an SSL certificate because there is some sort of dumb DNS cache that goes back to when we used Krystal's nameservers instead of our own.

To fix this issue you need to edit the DNS record in the DNS Zone Manager.

From the root of WHM click on DNS Zone Manager

dns zone manager

Then filter by the domain that you want to edit and click Manage

dns manage

Then edit the first 3 records as necessary

dns record edit

 

  • Hits: 6

Deleting emails older than a certain date

Choose your target email account - cPanel > emails accounts > Manage

manage

Choose Free up Email Storage

free up

Click Manage

manage1

Choose Custom query

custom query

then enter you custom query - for example 

savedbefore 6years

That will then pemanently delete everything older than 6 years

6years

  • Hits: 6

Unblock or block an IP

login to Black Barn

Search 'Firewall' > Click on ConfigServer Security & Firewall

whm search

Find out if an IP is blocked, (and unblock) an IP...  Put the IP into Search for IP

allow or block ip

Block or Allow an IP by adding the address to the relevant boxes

find ip

 

  • Hits: 4