Are you still running your website on PHP 7.x or 8.0?

If your website is still running on PHP 7.x or 8.0, it’s time to take action. These versions are no longer supported and no longer receive security updates, which means your site could be vulnerable to attacks and compatibility issues.

The minimum safe version today is PHP 8.1, but for the best performance and long-term security, you should be using PHP 8.2 or 8.3.

Benefits of upgrading:

• Improved speed and performance
• Enhanced security features
• Full compatibility with modern software and frameworks

Not sure which version your website is using, or how to upgrade? Feel free to get in touch or leave a comment.

Essential PHP Modules included with all Hosting Plans

Screen Shot 2015-05-16 at 16.44.12Which PHP Modules are included in our Shared Hosting Plans?

It is essential to have the right PHP modules installed in order to get the most out of the most recent web applications such as WordPress, Magento, Drupal and many others.

As standard, the following PHP modules are installed for all accounts:

  • php-mbstring
  • php-gd
  • php-5.4
  • php-pdo
  • php-bcmath
  • php-imap
  • php-devel
  • php-cli
  • php-soap
  • php-xml
  • php-mysql
  • php-common
  • php-mcrypt

If you require a module that is not listed here, simply submit a ticket to the helpdesk and we can usually arrange for it to be installed for you – at no additional cost as always.

Categories PHP

How to parse PHP in HTML

To parse PHP code inside a .html file you will need to a create a .htaccess file in your document root directory /httpdocs and insert the following code:

AddHandler php-script .html .htm

How to setup a PHP Cron job or scheduled task in Plesk

Re: Set up a cron job in Plesk, Plesk crontab, Create a PHP cron job in Plesk

Setting up a cron task or scheduled job within Plesk is a piece of cake – once you know how.

First, find your way in to the Plesk Control Panel and hit the “Scheduled Tasks” button, then “Schedule New Task”. The example below will show a working task executing a PHP file named cronjob.php located in /httpdocs (your document root) at 01:00 every morning of every day:

The form looks pretty straight forward however there are some points to note.

  • If you want to run every hour, put an asterisk “*” in the Hour field
  • If you want to run every day, put an asterisk “*” in the Day of Month field
  • If you want to run every month, put an asterisk “*” in the Month field
  • If you want to run everyday, put an asterisk “*” in the Day of Week field

If you have problems, check your asterisks are in the right places and that you cron PHP file is in the right location. Compare the schedule task dialogue boxes carefully and you won’t have any problems.

How do I fix “ap_pass_brigade failed in handle_request function” errors in my error_log

Re: [Fri Nov 25 11:30:28 2011] [warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function

The “software caused connection abort” errors can be quite safely ignored.

These messages come up when a user does not wait for a page to complete before either closing their browser window or simply clicking on another link before the page has finished loading or the bot moved to another page.

Categories PHP