• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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