i saw the problem is in the last row in index file ( web/index.php ).
<?php
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$config = require(__DIR__ . '/../config/web.php');
(new yii\web\Application($config))->run();
if i comment
(new yii\web\Application($config))->run();
and then im writing some text in the file, will be visible that text.
Could be a bunch of things. Run the requirements.php file or what ever it is called to make sure your server meets the min requirements.
Ensure ur running php 5.4 or higher.
I have had issues where I had set my php version to php5.5 in CPanel, and didn’t realise that it was making a change to my remote .htaccess file so whenever I uploaded my local .htaccess file it would override the php version.
So something like that. Also if you extracted the project from a zip in CPanel file manager, perhaps the permissions are not correct.