PHP: Difference between revisions

m Add note about proc_open(), exec(), popen(), etc., being disabled on Morty, Tommy, and Johnny servers
m Add links for phpinfo() pages for all servers & PHP versions
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


== PHP Versions Supported ==
== PHP Versions Supported ==
The PHP versions supported on each server are listed below. To see the PHP packages installed for each version, click on the 'phpinfo()' link. To check if a specific package is installed, press <code>Ctrl + F</code> and type in the package name to search the page.


== Morty server ==
== Morty server ==


* PHP 5.6
{| class="wikitable" style="margin:auto"
* PHP 7.0
|+ style="caption-side:top; |'''Morty server'''
* PHP 7.4
|-
* PHP 8.0
! PHP Version !! Packages Installed
* PHP 8.1
|-
* PHP 8.2
| PHP 5.6 || [https://php56.krydos3.heliohost.org phpinfo()]
* PHP 8.3
|-
* PHP 8.4
| PHP 7.0 || [https://php70.krydos3.heliohost.org phpinfo()]
|-
| PHP 7.4 || [https://php74.krydos3.heliohost.org phpinfo()]
|-
| PHP 8.0 || [https://php80.krydos3.heliohost.org phpinfo()]
|-
| PHP 8.1 || [https://php81.krydos3.heliohost.org phpinfo()]
|-
| PHP 8.2 || [https://php82.krydos3.heliohost.org phpinfo()]
|-
| PHP 8.3 || [https://php83.krydos3.heliohost.org phpinfo()]
|-
| PHP 8.4 || [https://php84.krydos3.heliohost.org phpinfo()]
|}


== Tommy server ==
== Tommy server ==


* PHP 5.6
{| class="wikitable" style="margin:auto"
* PHP 7.0
|+ style="caption-side:top; |'''Tommy server'''
* PHP 7.4
|-
* PHP 8.0
! PHP Version !! Packages Installed
* PHP 8.1
|-
* PHP 8.2
| PHP 5.6 || [https://php56.krydos1.heliohost.org phpinfo()]
* PHP 8.3
|-
| PHP 7.0 || [https://php70.krydos1.heliohost.org phpinfo()]
|-
| PHP 7.4 || [https://php74.krydos1.heliohost.org phpinfo()]
|-
| PHP 8.0 || [https://php80.krydos1.heliohost.org phpinfo()]
|-
| PHP 8.1 || [https://php81.krydos1.heliohost.org phpinfo()]
|-
| PHP 8.2 || [https://php82.krydos1.heliohost.org phpinfo()]
|-
| PHP 8.3 || [https://php83.krydos1.heliohost.org phpinfo()]
|}


== Johnny server ==
== Johnny server ==


* PHP 5.6
{| class="wikitable" style="margin:auto"
* PHP 7.0
|+ style="caption-side:top; |'''Johnny server'''
* PHP 7.4
|-
* PHP 8.0
! PHP Version !! Packages Installed
* PHP 8.1
|-
* PHP 8.2
| PHP 5.6 || [https://php56.krydos2.heliohost.org phpinfo()]
* PHP 8.3
|-
| PHP 7.0 || [https://php70.krydos2.heliohost.org phpinfo()]
|-
| PHP 7.4 || [https://php74.krydos2.heliohost.org phpinfo()]
|-
| PHP 8.0 || [https://php80.krydos2.heliohost.org phpinfo()]
|-
| PHP 8.1 || [https://php81.krydos2.heliohost.org phpinfo()]
|-
| PHP 8.2 || [https://php82.krydos2.heliohost.org phpinfo()]
|-
| PHP 8.3 || [https://php83.krydos2.heliohost.org phpinfo()]
|}


== Lily server ==
== Lily server ==
Line 48: Line 87:
* PHP 8.2  
* PHP 8.2  
All versions of PHP supported on [[:Lily|Lily]] have 'exec()' enabled.
All versions of PHP supported on [[:Lily|Lily]] have 'exec()' enabled.
== PHP Packages Installed ==
=== Inside Plesk ===
Follow the navigation steps below to view which PHP packages are installed:
'''Login > Plesk > Websites & Domains > [domain] > Dashboard tab > Dev Tools > PHP button > click on the ' View the phpinfo() page' link'''
To check if a specific package is installed, press <code>Ctrl + F</code> and type in the package name to search the page.
[[File:View-phpinfo.png]]
=== View phpinfo() page ===
If you don't have a HelioHost account to access information within Plesk, you can view the installed PHP packages for the available PHP versions on our servers by checking [[#PHP_Versions_Supported|the relevant phpinfo() page links here]].


== Using proc_open(), exec(), popen(), etc. ==
== Using proc_open(), exec(), popen(), etc. ==
Line 71: Line 126:
Follow the navigation steps below to change your PHP version inside Plesk:
Follow the navigation steps below to change your PHP version inside Plesk:


'''Login > Plesk > [domain] > Dashboard tab > Dev Tools > PHP button > select PHP version from the dropdown menu'''
'''Login > Plesk > Websites & Domains > [domain] > Dashboard tab > Dev Tools > PHP button > select PHP version from the dropdown menu'''


[[File:plesk-change-php-version.png]]
[[File:plesk-change-php-version.png]]

Latest revision as of 04:39, 29 March 2025

PHP

PHP is the most popular scripting language on the Internet for a reason. It's easy to learn and easy to implement, yet is powerful enough to suit almost every task. Unlike some other languages, PHP is not explicitly linked with any programming paradigms, allowing for more flexible development. HelioHost offers the latest versions of PHP on all its hosting accounts. We are unique in that we offer PHP without safe mode, which is the more secure but less functional alternative that you'll find on most free hosts.

PHP Versions Supported

The PHP versions supported on each server are listed below. To see the PHP packages installed for each version, click on the 'phpinfo()' link. To check if a specific package is installed, press Ctrl + F and type in the package name to search the page.

Morty server

Morty server
PHP Version Packages Installed
PHP 5.6 phpinfo()
PHP 7.0 phpinfo()
PHP 7.4 phpinfo()
PHP 8.0 phpinfo()
PHP 8.1 phpinfo()
PHP 8.2 phpinfo()
PHP 8.3 phpinfo()
PHP 8.4 phpinfo()

Tommy server

Tommy server
PHP Version Packages Installed
PHP 5.6 phpinfo()
PHP 7.0 phpinfo()
PHP 7.4 phpinfo()
PHP 8.0 phpinfo()
PHP 8.1 phpinfo()
PHP 8.2 phpinfo()
PHP 8.3 phpinfo()

Johnny server

Johnny server
PHP Version Packages Installed
PHP 5.6 phpinfo()
PHP 7.0 phpinfo()
PHP 7.4 phpinfo()
PHP 8.0 phpinfo()
PHP 8.1 phpinfo()
PHP 8.2 phpinfo()
PHP 8.3 phpinfo()

Lily server

  • PHP 5.3
  • PHP 5.4
  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • PHP 7.1
  • PHP 7.2
  • PHP 7.3
  • PHP 7.4
  • PHP 8.2

All versions of PHP supported on Lily have 'exec()' enabled.

PHP Packages Installed

Inside Plesk

Follow the navigation steps below to view which PHP packages are installed:

Login > Plesk > Websites & Domains > [domain] > Dashboard tab > Dev Tools > PHP button > click on the ' View the phpinfo() page' link

To check if a specific package is installed, press Ctrl + F and type in the package name to search the page.

View phpinfo() page

If you don't have a HelioHost account to access information within Plesk, you can view the installed PHP packages for the available PHP versions on our servers by checking the relevant phpinfo() page links here.

Using proc_open(), exec(), popen(), etc.

These functions are disabled on our shared hosting servers (Morty, Tommy, and Johnny) for security reasons. If you need to run proc_open(), exec(), popen(), etc., you will need a VPS. We offer a range of VPS plans, and a 10% discount when you pay for 6 months upfront.

Learning PHP

'<?php' is the opening braces and '?>' is the closing braces for PHP.

Here is a sample hello world file.

<?php
  echo "Hello World!";
?>

A good tutorial can be found here: https://blog.udemy.com/php-tutorial.

Change PHP Version

Follow the navigation steps below to change your PHP version inside Plesk:

Login > Plesk > Websites & Domains > [domain] > Dashboard tab > Dev Tools > PHP button > select PHP version from the dropdown menu

After the PHP version is changed, you will see a confirmation message that contains the timeframe for the change to take effect:

PHP Version Changes Take Up To 2 Hours

PHP version changes take up to 2 hours to go into effect as they require an Apache restart.


This page was last edited on 29 March 2025, at 04:39.