• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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