• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Issue PHP script not parsed - source code piped into web page

carini

Basic Pleskian
I have a strange problem: In my index.php

PHP:
<?
require_once('../conf-site.inc');
require_once("$codedir/incl/main.lib.inc");

Where $codedir is defined in ../conf-site.inc ... in result page the content of main.lib.inc is not parsed and source code is shown instead.

There is anyone with the same problem?
 
You are using the "short opener"
Code:
<?
but have not turned short openers on in your PHP configuration. For that reason, the code is not parsed. You need to either change the opener to
Code:
<?php
or turn short openers on in the PHP configuration. As far as I remember, since PHP 5.6 short openers were disabled by default. Maybe even an earlier 5.x version.
 
Back
Top