Category: WordPress basics

  • What Is PHP and Why Does It Matter for Your WordPress Website?

    What Is PHP and Why Does It Matter for Your WordPress Website?

    Home  /  Blog  /  WordPress basics

    What Is PHP and Why Does It Matter for Your WordPress Website?

    PHP is the programming language that WordPress is written in and that your web server uses to build each page. The PHP version your website runs on affects its security, speed and compatibility with plugins and themes, which is why it is one of the first things to check when something goes wrong.

    5 min readWordPress basicsWritten by WP Mate, Warrnambool VIC
    WP Mate koala mascot beside a laptop, representing Australian WordPress support
    01

    PHP in plain English

    When someone visits your WordPress website, the server does not simply hand over a saved page. It runs PHP code that asks the database for your content, assembles it using your theme and plugins and sends the finished page to the visitor. PHP is the engine that performs that work. Like any engine, it comes in versions, and newer versions are generally faster, safer and better supported than older ones.

    Most owners never think about PHP until an error mentions it or a host sends a notice. Understanding the basics helps you make better decisions and ask better questions.

    02

    What a PHP version is and why it changes

    The PHP project releases new versions regularly, and each version receives security fixes for a limited time before it reaches end of life. After that, it no longer gets patches, so running it becomes riskier. Hosting companies therefore retire old versions and encourage customers to upgrade. When a host raises the minimum version, older plugins and themes that were written for earlier versions can stop working.

    Not sure what is going on with your website?

    Tell us what you are seeing and we will outline the next step before any chargeable work.

    03

    Why PHP matters to a business website

    AreaHow PHP affects it
    SecurityUnsupported versions stop receiving security patches
    SpeedNewer versions generally process pages faster
    CompatibilityPlugins and themes declare which versions they support
    StabilityMismatched versions are a common cause of critical errors
    HostingHosts retire old versions, forcing upgrades
    04

    Signs a PHP problem may be behind your fault

    • An error message mentioning PHP, a function or a line number
    • A fatal error or white screen right after a hosting change
    • A plugin that suddenly stopped working after the host upgraded
    • A dashboard warning that your PHP version is out of date
    • A critical error message after updating WordPress core
    05

    How to find your current PHP version

    WordPress shows the PHP version in Tools, Site Health, under the Info tab and the Server section. Your hosting control panel also shows it and usually lets you change it. If you are unsure, write down the number you see before changing anything, because it is the version you can return to if an upgrade causes trouble.

    06

    Upgrading without breaking the website

    A safe upgrade starts with a backup, then testing on a staging copy at the new version, checking that every plugin and theme supports it, and only then switching the live site, ideally at a quiet time. After the change, test forms, login, search and checkout. If something fails, you can switch back while you replace or update the incompatible component. Our guide to updating PHP safely walks through the process.

    07

    PHP versions and plugin developers

    Plugin and theme developers choose which PHP versions to support, and they typically drop old versions over time to use newer features and to stay secure. When your host upgrades PHP, a plugin that has not been updated in years may fail, because it was written for a version that no longer exists. That is why abandoned plugins become a hidden liability. Checking the last update date of each plugin, and its declared PHP compatibility, is a quick way to spot future problems before a host forces the issue. Replacing a neglected plugin on your terms is far less stressful than doing it during an outage.

    08

    Questions to ask your host about PHP

    • Which PHP versions do you support right now?
    • Can I change the version for each site and how quickly?
    • When will older versions be retired?
    • Will you warn me before forcing an upgrade?
    • Can I test a newer version on a copy of my site first?

    Good answers to these questions mean fewer surprises. If your host cannot answer them clearly, treat it as a sign that planning for PHP upgrades will fall on you, and make sure someone is responsible for it.

    09

    Where WP Mate can help

    We check PHP compatibility as part of maintenance, plan version upgrades with testing and can include WordPress-optimised hosting where PHP is configured for WordPress. If a PHP change has already broken your website, see WordPress repair or contact us.

    Want this looked after for you?

    WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.

    Thinking about moving? Let’s plan it properly.

    How we can help

    Services related to this guide

    Hosting and migration

    Plan a safe move or review your hosting.Discuss My Hosting →

    WordPress maintenance plans

    Updates, daily backups, scanning and 24/7 uptime monitoring.See Care Plans →

    Talk to WP Mate

    Not sure which service fits? Ask us and we will point you the right way.Contact us →

    Frequently asked questions

    Use a version that is currently supported by the PHP project and by your plugins and theme. Your host and a compatibility check will tell you which is suitable.

    Often a little, because newer versions process requests more efficiently, but results depend on the site.

    Hosting panels usually let you change it, but doing so without testing risks breaking the site. A backup and a staging test make it safe.

    Ready to get your website sorted?

    Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.

    Get WordPress help

    Tell your mate what’s going wrong.

    Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.

    • Australian support in plain English
    • Clear scope and next steps before chargeable work
    • Backup and recovery plan before live changes

    Please don’t include passwords, payment card numbers or private customer data. If we need access, we’ll arrange a secure way to share it.

  • What Is a WordPress Staging Site and Why Should You Use One?

    What Is a WordPress Staging Site and Why Should You Use One?

    Home  /  Blog  /  WordPress basics

    What Is a WordPress Staging Site and Why Should You Use One?

    A WordPress staging site is a private copy of your live website where you can test updates, changes and fixes without affecting visitors. Used properly, it turns risky changes into safe experiments, and it is one of the most effective ways to avoid breaking a live website.

    4 min readWordPress basicsWritten by WP Mate, Warrnambool VIC
    WP Mate koala mascot beside a laptop, representing Australian WordPress support
    01

    The idea behind staging

    Imagine rehearsing a play on a spare stage before opening night. A staging site is that spare stage. It has the same theme, plugins, pages and settings as your live website, but it sits at a separate private address, so nothing you do there is seen by customers. If an update breaks the staging copy, you learn that safely and fix it before touching the real site.

    02

    When staging is worth using

    • Before major WordPress, theme or plugin updates
    • Before changing the PHP version
    • When testing a new plugin or a design change
    • When diagnosing a conflict or an error that is hard to reproduce
    • Before a migration to a new host
    • For online stores, before any update that touches checkout or payments

    Not sure what is going on with your website?

    Tell us what you are seeing and we will outline the next step before any chargeable work.

    03

    How staging works step by step

    StepWhat happens
    1A copy of the files and database is created at a private address
    2Search engines and outsiders are blocked from seeing it
    3Changes are made and tested on the copy
    4When it works, the same changes are applied to the live site
    5The live site is tested again to confirm
    04

    The limits of staging

    A staging copy is a snapshot. If your live site continues to receive orders, form entries or comments while you test, the copy does not include them, so you cannot simply copy staging over live without losing that data. Staging also cannot reproduce everything about the live environment, such as live payment gateways or traffic load. Treat it as a way to prove changes, then apply them carefully to the live site.

    05

    Staging and online stores

    For WooCommerce, staging is especially valuable, but it needs care. Disable live payment gateways and emails on the copy, otherwise test orders can trigger real emails or charges. Use test keys and safe test methods. After testing, apply changes to the live store at a quiet time and re-test the order journey. See updating WooCommerce safely.

    06

    Staging and SEO

    A staging site should never be visible to search engines, because duplicate content can confuse them. Good setups password protect the copy and block indexing. If a staging site has been indexed by accident, it needs to be removed from search results and secured.

    07

    A worked example: testing a plugin update

    Suppose a form plugin has a major update. On the staging copy you apply the update, submit every form on the site, check the notification emails arrive, review the browser console for errors and compare the layout with the live version. You find that one form loses a field. You fix the setting on staging, retest and note the change. Only then do you update the live site at a quiet time, repeat the form tests and keep the notes. The customer never sees the broken version. That small discipline is what separates a smooth update from an unpleasant surprise.

    08

    Choosing a staging approach

    ApproachGood forWatch out for
    Host-provided stagingQuick copies with one clickLimits on plans and what is copied
    Plugin-based stagingHosts without built-in stagingLarge sites and database size
    Separate test environmentComplex or high-risk sitesKeeping it in sync with live

    Whichever you choose, make sure the copy is private, blocked from search engines and has live payments and emails disabled.

    09

    How WP Mate uses staging

    We test higher-risk updates and conflict diagnoses on a copy where appropriate, so that your customers never see the experiment. Learn about our approach in WordPress plugin error help and our maintenance plans, or ask us about testing a change safely.

    Want this looked after for you?

    WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.

    Want us to recommend the right plan for your website?

    How we can help

    Services related to this guide

    WordPress maintenance plans

    Updates, daily backups, scanning and 24/7 uptime monitoring.See Care Plans →

    Plugin error help

    Plugin update broke something? We investigate safely.Get Plugin Error Help →

    Talk to WP Mate

    Not sure which service fits? Ask us and we will point you the right way.Contact us →

    Frequently asked questions

    Not every small brochure site, but any site that earns money or collects enquiries benefits from one.

    Many managed WordPress hosts do. Check your plan or ask your host.

    Some tools can, but on active sites it can overwrite new data. A careful, selective approach is safer.

    Ready to get your website sorted?

    Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.

    Get WordPress help

    Tell your mate what’s going wrong.

    Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.

    • Australian support in plain English
    • Clear scope and next steps before chargeable work
    • Backup and recovery plan before live changes

    Please don’t include passwords, payment card numbers or private customer data. If we need access, we’ll arrange a secure way to share it.

  • What Is DNS and Why Does It Matter for Your Website and Email?

    What Is DNS and Why Does It Matter for Your Website and Email?

    Home  /  Blog  /  WordPress basics

    What Is DNS and Why Does It Matter for Your Website and Email?

    DNS, the Domain Name System, is the internet’s address book. It tells browsers and email systems where your website and mail live. A wrong or missing DNS record can take a website or email offline, which is why DNS changes should be planned and checked carefully.

    4 min readWordPress basicsWritten by WP Mate, Warrnambool VIC
    WP Mate koala mascot beside a laptop, representing Australian WordPress support
    01

    DNS in plain English

    People type a name such as yourbusiness.com.au. Computers need numeric addresses. DNS translates one into the other. It also tells the world where to send your email and which services are allowed to send mail for your domain. Your domain name is like your business name. DNS records are like the directory that lists your street address and phone line.

    02

    The records you are likely to meet

    RecordWhat it does
    APoints your domain to your server’s IPv4 address
    AAAAPoints your domain to an IPv6 address
    CNAMEPoints one name to another name, such as www to the main domain
    MXTells the world which servers receive your email
    TXTHolds verification and email authentication records such as SPF and DKIM
    NSSays which servers hold the authoritative DNS records

    Not sure what is going on with your website?

    Tell us what you are seeing and we will outline the next step before any chargeable work.

    03

    Where DNS is managed

    DNS records live at whoever is set as the nameserver for your domain. That could be your domain registrar, your hosting company or a service such as Cloudflare. If you are not sure, a lookup of your domain’s nameservers shows where to log in. Making changes in the wrong place has no effect, which is a common source of confusion during migrations.

    04

    Why DNS changes cause outages

    • A record points to the wrong address after a host change
    • MX records are overwritten and email stops arriving
    • Email authentication records are removed, so mail goes to spam
    • The domain expires and the records disappear
    • Changes take time to spread because of caching, so results look inconsistent
    05

    DNS propagation and time-to-live

    Each record has a time-to-live that tells other systems how long they may remember it. Short values spread changes quickly, long values slowly. Before a planned change, lowering the time-to-live in advance makes the switch smoother, then raising it again afterwards. This is why careful migrations plan DNS days ahead.

    06

    DNS and security

    Protect access to your registrar and DNS accounts with strong passwords and two-factor authentication, because whoever controls DNS controls where your website and email go. Keep a record of your current DNS settings, so that you can restore them if something is changed in error.

    07

    A DNS change gone wrong

    A small business moved its website to a new host and updated the main address record, but the person making the change also removed the existing mail records by mistake. The website loaded fine, yet incoming email stopped. It took a day to realise customers were not getting replies, because nobody noticed missing messages. Restoring the records fixed it, but the business lost enquiries in between. The lesson is to record every existing record before changing anything, change only what is necessary and test email as well as the website afterwards.

    08

    A DNS checklist before any change

    • Export or screenshot all current DNS records
    • Confirm where DNS is actually managed
    • Identify what depends on each record: website, email, verification, third-party services
    • Lower the time-to-live ahead of a planned change
    • Make one change at a time and test after each
    • Keep the old records until the new setup is confirmed

    Following a checklist like this makes DNS changes calm and reversible, and it prevents the most common causes of lost website and email.

    09

    How we help

    Mate Plus and Mate Pro maintenance plans include Cloudflare DNS management, and our hosting and migration service plans DNS changes carefully. If your website or email has vanished after a change, see urgent support or contact us.

    Want this looked after for you?

    WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.

    Thinking about moving? Let’s plan it properly.

    How we can help

    Services related to this guide

    Hosting and migration

    Plan a safe move or review your hosting.Discuss My Hosting →

    Urgent WordPress support

    Website down or checkout failing? Tell us what happened.Request Urgent Help →

    Talk to WP Mate

    Not sure which service fits? Ask us and we will point you the right way.Contact us →

    Frequently asked questions

    Yes. MX and authentication records decide where mail goes and whether it is trusted, so mistakes can stop delivery or send mail to spam.

    Often minutes to hours, sometimes up to a day or more depending on time-to-live values and caching.

    Someone careful who knows what depends on it. Many businesses leave it with their web provider.

    Ready to get your website sorted?

    Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.

    Get WordPress help

    Tell your mate what’s going wrong.

    Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.

    • Australian support in plain English
    • Clear scope and next steps before chargeable work
    • Backup and recovery plan before live changes

    Please don’t include passwords, payment card numbers or private customer data. If we need access, we’ll arrange a secure way to share it.

  • “Not Secure” Warning on Your WordPress Website: SSL and HTTPS Explained

    “Not Secure” Warning on Your WordPress Website: SSL and HTTPS Explained

    Home  /  Blog  /  WordPress basics

    "Not Secure" Warning on Your WordPress Website: SSL and HTTPS Explained

    A “Not secure” warning appears when a website is served over plain HTTP, when its SSL certificate has expired or is invalid, or when a secure page loads some items insecurely. The fix is to install or renew a valid certificate and make sure everything on the site loads over HTTPS.

    4 min readWordPress basicsWritten by WP Mate, Warrnambool VIC
    WP Mate koala mascot beside a laptop, representing Australian WordPress support
    01

    What SSL and HTTPS mean

    HTTPS is the secure version of the web protocol. It encrypts the connection between a visitor’s browser and your server, and it uses an SSL or TLS certificate to prove the site is genuine. Browsers show a padlock for secure sites and a warning for insecure ones. Visitors are right to be wary of a warning, especially on a page with a form or checkout.

    02

    Why the warning appears

    CauseWhat you see
    No certificate installedPage served on HTTP with “Not secure”
    Expired certificateA full-page warning before the site loads
    Certificate for the wrong nameWarning about a name mismatch
    Mixed contentPadlock missing or warning though HTTPS is on
    Redirect misconfigurationSome pages secure, others not

    Not sure what is going on with your website?

    Tell us what you are seeing and we will outline the next step before any chargeable work.

    03

    Mixed content in plain terms

    Mixed content happens when a secure page loads images, scripts or styles from insecure addresses. It often follows a move to HTTPS where old content still points at http links. Browsers may block those items or show warnings. The fix is to update the old addresses in the database and settings, which should be done carefully with a backup.

    04

    Fixing it safely

    • Confirm the certificate is valid and covers the exact domain
    • Renew it if it is close to expiry and enable automatic renewal if available
    • Make sure WordPress and Site addresses use https
    • Redirect all HTTP traffic to HTTPS
    • Update insecure links in content and theme settings
    • Test forms, checkout and all key pages
    05

    Certificate renewals and who owns them

    Many hosts provide free certificates that renew automatically, but renewals can fail silently, for example if DNS changed. Make sure someone owns the task of checking expiry dates, and consider monitoring that alerts you before a certificate lapses. A lapsed certificate can put a full warning page in front of every visitor.

    06

    Why it matters for trust and forms

    A site that warns visitors is a site people leave. For forms and checkout it also matters technically: browsers may block form submissions or payment fields on insecure pages. Keeping the site fully secure protects visitors, preserves trust and avoids avoidable lost enquiries.

    07

    What visitors think when they see a warning

    Most visitors do not know what an SSL certificate is. They simply see a warning that says the site is not secure or may be dangerous, and many leave immediately. For a business that depends on enquiries or sales, that is a direct loss. It also undermines trust beyond the single visit: someone who sees a warning once may remember your brand as unsafe. That is why keeping certificates valid and the site fully secure is not just technical hygiene, it is part of presenting a trustworthy business.

    08

    Automatic renewal and what can go wrong

    Most certificates renew automatically, but renewals depend on conditions staying the same. If DNS changes, a verification file is removed, a security rule blocks the validation request or a hosting plan changes, the renewal can fail quietly and the certificate lapses weeks later. Setting up monitoring that alerts you before expiry, and checking after any hosting or DNS change, avoids unpleasant surprises. It is a small habit that prevents a very public failure.

    09

    Getting help

    WP Mate checks certificates, redirects and mixed content as part of WordPress repair and monitors your site with every maintenance plan. If visitors are seeing warnings now, see urgent support.

    Want this looked after for you?

    WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.

    Not sure what’s wrong? Tell us and we’ll outline the next step.

    How we can help

    Services related to this guide

    WordPress repair

    Broken website? We investigate the cause and fix it safely.Get a Repair Quote →

    Urgent WordPress support

    Website down or checkout failing? Tell us what happened.Request Urgent Help →

    Talk to WP Mate

    Not sure which service fits? Ask us and we will point you the right way.Contact us →

    Frequently asked questions

    It is a lightweight ranking signal, but more importantly it protects visitors and avoids browser warnings.

    Many hosts provide free certificates. Paid options exist for specific needs.

    Usually mixed content: a page loading insecure items inside a secure page.

    Ready to get your website sorted?

    Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.

    Get WordPress help

    Tell your mate what’s going wrong.

    Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.

    • Australian support in plain English
    • Clear scope and next steps before chargeable work
    • Backup and recovery plan before live changes

    Please don’t include passwords, payment card numbers or private customer data. If we need access, we’ll arrange a secure way to share it.

  • What Is a CDN and Do You Need One for Your WordPress Website?

    What Is a CDN and Do You Need One for Your WordPress Website?

    Home  /  Blog  /  WordPress basics

    What Is a CDN and Do You Need One for Your WordPress Website?

    A CDN, or content delivery network, stores copies of your website’s files on servers in many locations and delivers them from the one nearest each visitor. It can speed up pages, reduce load on your own server and add protection, and it is most useful for sites with images, many visitors or an audience far from the server.

    4 min readWordPress basicsWritten by WP Mate, Warrnambool VIC
    WP Mate koala mascot beside a laptop, representing Australian WordPress support
    01

    How a CDN works

    Without a CDN, every visitor fetches every file from your one server, wherever they are. With a CDN, the static parts of your site, such as images, styles and scripts, are copied to servers around the world. A visitor receives them from a nearby location, which shortens the journey and eases the burden on your hosting.

    02

    What a CDN can improve

    • Loading speed for visitors far from your server
    • Server load during traffic spikes
    • Resilience if your server is briefly busy
    • Security features such as filtering of malicious traffic
    • Bandwidth use on your hosting plan

    Not sure what is going on with your website?

    Tell us what you are seeing and we will outline the next step before any chargeable work.

    03

    What a CDN does not fix

    A CDN does not make a bloated page light, rewrite slow database queries or fix an overloaded server that generates each page. It accelerates delivery of files that are already built. If your website is slow because of heavy plugins or poor hosting, a CDN helps only partly, and the root causes still need attention.

    04

    Do you need one?

    SituationCDN value
    Local business with mostly local visitors and light pagesModest
    Image-heavy site or portfolioHigh
    Audience in several regions or countriesHigh
    Online store with peaks in trafficHigh
    Small brochure site on quick hostingLow to modest
    05

    Cloudflare and similar services

    Cloudflare is a widely used service that combines a CDN with DNS and security features. It can be set up in front of WordPress so that traffic flows through its network. Configuration matters: wrong caching rules can break logins, carts and checkout. Mate Plus and Mate Pro maintenance plans include Cloudflare DNS management.

    06

    Risks and setup care

    Adding a CDN changes how requests reach your site, which can interfere with caching plugins, login pages, forms and dynamic content. A careful setup excludes pages that must stay dynamic and tests the key journeys. After enabling a CDN, check for mixed content, broken images and checkout problems.

    07

    CDN and caching rules for WordPress

    A CDN is only as good as its rules. Static files such as images, fonts, scripts and styles are safe to cache widely. Pages that depend on who you are, such as carts, checkout and account areas, must never be cached publicly, or customers may see each other’s data or stale content. A careful setup defines exactly what is cached, for how long and what bypasses the cache. After any rule change, test logging in, adding to cart and checking out in a private window. Good caching feels invisible, bad caching creates strange, hard-to-reproduce faults.

    08

    Measuring whether a CDN helped

    Test key pages from several locations before and after enabling a CDN, and look at both the time to the first byte and the time the main content appears. For visitors near your server there may be little change. For distant visitors or image-heavy pages, the improvement can be large. If measurements show little benefit and the CDN adds complexity, it may not be worth keeping. Evidence, not assumption, should decide whether a CDN earns its place on your site.

    09

    Where to go next

    If you want to know whether a CDN would help, start with a speed review, and read our guide on whether hosting affects WordPress speed. Or ask us.

    Want this looked after for you?

    WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.

    Curious how fast your website really is? Ask for a speed review.

    How we can help

    Services related to this guide

    Speed optimisation

    Find what is slowing your website and fix it safely.Request a Speed Review →

    Hosting and migration

    Plan a safe move or review your hosting.Discuss My Hosting →

    Talk to WP Mate

    Not sure which service fits? Ask us and we will point you the right way.Contact us →

    Frequently asked questions

    No. Hosting holds your website. A CDN distributes copies of its files for faster delivery.

    It can help page speed, which supports user experience, but it is not a ranking shortcut.

    Poor configuration can. Testing logins, forms and checkout after setup prevents surprises.

    Ready to get your website sorted?

    Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.

    Get WordPress help

    Tell your mate what’s going wrong.

    Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.

    • Australian support in plain English
    • Clear scope and next steps before chargeable work
    • Backup and recovery plan before live changes

    Please don’t include passwords, payment card numbers or private customer data. If we need access, we’ll arrange a secure way to share it.

  • What Is wp-config.php and Why You Should Never Share It

    What Is wp-config.php and Why You Should Never Share It

    Home  /  Blog  /  WordPress basics

    What Is wp-config.php and Why You Should Never Share It

    wp-config.php is the WordPress configuration file that holds your database login details, security keys and important settings. Because it contains the keys to your database, it should be protected, edited carefully and never shared in emails, support forums or screenshots.

    4 min readWordPress basicsWritten by WP Mate, Warrnambool VIC
    WP Mate koala mascot beside a laptop, representing Australian WordPress support
    01

    What the file does

    When WordPress starts, it reads wp-config.php to learn how to connect to its database and how to behave. It sits in the root folder of your website and is one of the few files that is not part of WordPress core, because it is unique to your site. If it is missing or wrong, WordPress cannot start properly, and you may see the database connection error.

    02

    What it typically contains

    ItemPurpose
    Database name, user, password, hostLets WordPress reach the database
    Authentication keys and saltsSecure login cookies and sessions
    Table prefixPrefix on your database tables
    Debug settingsControls error display and logging
    Memory and other constantsAdjust limits and behaviour

    Not sure what is going on with your website?

    Tell us what you are seeing and we will outline the next step before any chargeable work.

    03

    Why it is sensitive

    Anyone who reads the database password and host can potentially access your data if the database is reachable. Posting the file in a forum when asking for help, or emailing it to a stranger, exposes those keys. If you must share a snippet, remove the passwords and keys first, and rotate credentials afterwards if you think they were exposed.

    04

    Common problems linked to the file

    • Wrong database details after a migration or host change
    • Debug mode left on, revealing errors to visitors
    • A syntax mistake after a manual edit, causing a white screen
    • Memory limit settings that do not match the host
    • Unauthorised edits as part of a compromise
    05

    Editing it safely

    Always take a backup first, use a plain text editor and make one change at a time. A single missing quote or bracket can stop the site. After the change, test the site and, if something breaks, restore the previous version. Do not leave debug mode switched on for a live website.

    06

    Protecting the file

    • Use sensible file permissions so it is not writable by everyone
    • Keep it out of public backups or shared folders
    • Use strong, unique database passwords
    • Limit who has hosting file access
    • Monitor for unexpected changes
    07

    Debug settings and why they matter

    WordPress includes debug settings that control whether errors are displayed or logged. They are very useful while diagnosing a fault, but leaving error display on for a live website can reveal file paths and other details to visitors and attackers. The safe approach is to enable logging to a file, not to the screen, only while investigating, and to turn it off afterwards. If you ever see raw error messages on your public pages, that is a sign debug display has been left on and should be switched off promptly.

    08

    Salts, keys and rotating them

    The authentication keys and salts in the configuration file are used to protect login cookies. Changing them logs everyone out, which is useful after a suspected compromise because it invalidates stolen sessions. A recovery plan after a security incident often includes generating new keys, changing database and hosting passwords and reviewing user accounts. It is a quick step with a meaningful security benefit, and it is one reason the file deserves care and a current backup.

    09

    When to get help

    If you suspect the file was altered or your credentials were exposed, treat it as a security issue and read what to do when WordPress is hacked. For configuration faults, see WordPress repair or contact us.

    Want this looked after for you?

    WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.

    Think your website is hacked? Get a safe recovery plan.

    How we can help

    Services related to this guide

    Hacked website help

    Assess the damage and plan a safe recovery.Get Security Help →

    WordPress repair

    Broken website? We investigate the cause and fix it safely.Get a Repair Quote →

    Talk to WP Mate

    Not sure which service fits? Ask us and we will point you the right way.Contact us →

    Frequently asked questions

    Usually in the root folder of your WordPress installation, or one level above it.

    It can be moved one level above the root in many setups, but changes should be made carefully with a backup.

    Not unless you remove every password, key and salt first.

    Ready to get your website sorted?

    Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.

    Get WordPress help

    Tell your mate what’s going wrong.

    Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.

    • Australian support in plain English
    • Clear scope and next steps before chargeable work
    • Backup and recovery plan before live changes

    Please don’t include passwords, payment card numbers or private customer data. If we need access, we’ll arrange a secure way to share it.