• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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