• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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