Security, Performance & Troubleshooting

This article covers how to secure your website, speed it up, and fix common errors. Most of these tasks are done from your cPanel.

Generating Free SSL Certificates (AutoSSL / Let’s Encrypt)

We provide free SSL certificates for all domains hosted with us. To install or renew SSL:

  • In cPanel, go to SecuritySSL/TLS.
  • Click Run AutoSSL. Our system will automatically issue and install a free certificate for every eligible domain.
  • Alternatively, go to Let’s Encrypt SSL, select your domain, and click Issue.

If SSL installation fails:

  • Make sure your domain is pointed to our nameservers (ns1.wonderweb.host etc.).
  • Temporarily disable Cloudflare or any proxy service.
  • Wait up to 1 hour after changing DNS before trying again.
  • Contact us if the problem persists.

Blocking an IP Address

If you see malicious activity from a specific IP, you can block it:

  • Go to SecurityIP Blocker.
  • In Add an IP to Block, enter the IP address (e.g., 192.168.1.100) or a range.
  • Click Add. The IP will be denied access to your site.
  • To unblock, scroll down and click Delete next to the IP.

Password‑Protecting a Directory

You can lock a folder (e.g., /admin) so only users with a username and password can view it:

  • In File Manager, right‑click the folder you want to protect.
  • Select Password Protect.
  • Check Password protect this directory.
  • Give the directory a name (e.g., “Restricted Area”).
  • Click Save.
  • Then create at least one user by entering a username and password.

Using .htaccess to Block Visitors or Restrict Access

The .htaccess file is a powerful configuration file. To edit it, enable hidden files in File Manager (Settings → Show Hidden Files), then locate .htaccess in public_html.

Block all visitors except your own IP:

order deny,allow
deny from all
allow from YOUR_IP_ADDRESS

Block a single visitor by IP:

order deny,allow
deny from IP_ADDRESS

Block all PHP files in a folder: Inside that folder’s .htaccess, add:

RewriteRule ^.*\.php$ – [F,L]

After editing, save the file. Be careful – mistakes can break your website.

Changing PHP Version and php.ini Settings

To change your PHP version (e.g., from 7.4 to 8.3):

  • Go to SoftwareMultiPHP Manager (or Select PHP Version)
  • Select your domain, then choose the desired PHP version.
  • Click Apply.

To adjust PHP settings like max upload size, memory limit, or execution time:

  • Go to SoftwareSelect PHP Version.
  • Click the Options tab.
  • You will see many settings – change them as needed (e.g., upload_max_filesize to 64M). Changes save automatically.

You can also edit php.ini indirectly via MultiPHP INI Editor.

Speeding Up Your Website with LiteSpeed Cache

We use LiteSpeed web servers. You can enable caching to make your site faster:

  • In cPanel, go to AdvancedLiteSpeed Web Cache Manager.
  • Scroll down to WordPress Cache (if you use WordPress) and click Scan, then Enable.
  • For other sites, you can enable cache rules manually or use the Cache Settings tab.

Additionally, check that you have a supported PHP version and that output compression is enabled in MultiPHP INI Editor (zlib.output_compression).

Finding Error Logs and Fixing Common Errors

PHP error logs: Go to MetricsErrors. You will see the most recent errors on your website.

500 Internal Server Error: Often caused by a corrupted .htaccess file. Rename .htaccess to .htaccess_backup and test. If the site loads, you have a syntax error in the file.

Unexpected T_STRING error in PHP: This is usually due to missing semicolons, unclosed quotes, or mismatched brackets. Check the line number mentioned in the error (viewable in cPanel’s Error log) and fix the PHP code accordingly.

Slow loading website: Use the PHP X‑Ray tool in cPanel (under Software) to trace slow scripts. Run a trace, browse your site, then stop and view the results – it will show which functions take the most time.

Preventing Search Engines from Crawling Your Site (robots.txt)

If you want to temporarily block all search engines (e.g., during development), you can create a robots.txt file:

    • In File Manager, inside public_html, create a new file named robots.txt.
    • Add the following lines:
User-agent: *
Disallow: /
  • Save the file. It may take up to a week for search engines to respect the change.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Getting Started with cPanel Hosting

When you purchase a hosting plan from Wonderweb, you get access to cPanel – a powerful control...

Managing Email Accounts in cPanel

With your Wonderweb hosting, you can create professional email addresses like...

Files, FTP & Database Management

To upload your website files, manage backups, or work with databases, you will use cPanel’s...