sahar21
sahar21

Reputation: 186

yii2 show blank page in ubuntu

I used yii2 before in windows.but now I move a project to ubuntu but I get a blank page.I add to index.php this code ini_set('display_errors', 1); but my page is blank too.What reasons can be have?ofcourse I use .htaccess for pretty url

Upvotes: 1

Views: 1184

Answers (2)

Parthasarathi
Parthasarathi

Reputation: 1

1) Please check vendor folder in root is available or not. 2) Debug and find if any file is not getting included / getting fatal error in index.php file in below folder for frontend. http://localhost/foldername/frontend/web/index.php 3) If till not success go for vendor folder removal

Upvotes: 0

sahar21
sahar21

Reputation: 186

I check my requirements and add intl extension by

sudo apt-get install php7.0-intl

and activate mod_rewrite.

sudo a2enmod rewrite 

and in /etc/apache2/sites-available/default

<Directory /var/www/html>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
</Directory>

change AllowOverride None to AllowOverride All

and then restart apache by

sudo service apache2 restart

Upvotes: 2

Related Questions