• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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