Ubuntu 16.04 nginx - phpinfo file problem

Discussion in 'Installation/Configuration' started by Jedrzej82, Sep 3, 2017.

  1. Jedrzej82

    Jedrzej82 New Member

    When I make and upload file info.php with code

    <? phpinfo(); ?>

    to my VPS. I have problem after running this file from my web browser
    because I get this code as plain text output
    " <? phpinfo(); ?> "

    How too repair it?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Either use the long php tag (as short tags should not be used anymore and are disabled by default on all current Linux distributions):

    <?php phpinfo(); ?>

    or enable php short tags in the php.ini file.
     
    Jedrzej82 likes this.

Share This Page