• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

New server with Plesk 12.5, php does not work at all

SalvadorS

Regular Pleskian
Hello,

Today we install our first server with Plesk 12.5 (Debian 8.x). The versions of php we installed are 5.4.45, 5.5.30 and 5.6.15 (5.6.14 comes as vendor)

Then we add our first domain and php does not work. We test a php site and does not work.

We uploaded a simple php file:

<?echo "this is php"?>

But it does not work too.

We test the site changing the php version in hosting configuration and also how to execute php. We test all the options but it does not work php at all.

Anybody can tell me any clue? I don´t understand why php does not work under a domain...
 
Was the code

Code:
<?echo "this is php"?>

or

Code:
<?php
echo "this is php";
?>

Cause if it's the first one then that's why it's not working. By default Plesk will hide errors too why it seems like it's not working. Try updating your script to the second version and retest.
 
That is exactly the error. All my code in php start with "<?" instead of "<?php" so in this new server it does not work.

Now the question is. Why? I used <? since Plesk 9. Is there any possibility to change this? I don´t want to modify all the php files of all the domains I will migrate to this server.

Thanks for your help
 
Back
Top