To check the PHP version of your website with Zuriey Web Service (ZWS), navigate to the Websites section and click on Manage next to the relevant website. Then, find PHP Info on the sidebar and click on it:
Checking the Current PHP Version of a Website
Your current PHP version will be displayed at the top. To change it, go to the PHP configuration settings ????
In the File Manager
You can apply a different PHP version to a specific folder or subdomain.
To verify the change:
-
Access the folder you want to test.
-
Create a new
.php
file (e.g.,phpinfo.php
). -
Add the following code to the file:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
The file will look like this:
Checking the Current PHP Version of a Folder
After this, access the file via the URL: type your domain name, then the folder name, and add the filename. For the file above, the path would be:
https://domain.tld/subdomain/phpinfo.php
The PHP version should be displayed at the top.
Important Note
Changing the PHP version using files is not recommended, as it doesn't include PHP extensions and options. This might affect the website's functionality ????