Reputation: 21
I try to deploy my project on my distant web server. I think the sf2 installation is ok I have the app_dev.php and the config.php pages, the check.php doesn't return me any error and I set up the acl on the directories app/cache and app/logs.
but I cant have any of my pages from my controllers. If I try something like .../Symfony/web/app_dev.php/myurl I have a blank page. What can I do? thanks in advance
Upvotes: 2
Views: 3423
Reputation: 74
i opened my Linux terminal and execute :
php app/check.php
it showed me ERROR:
Set the "date.timezone" setting in php.ini*
i set server timezone and restart my server, my blank page gone, and symfony 2.7.3 version start working
Upvotes: 0
Reputation: 3
I resolved the blank pages simply executing this command on the project root:
app/console assets:install web
Upvotes: 0
Reputation: 1399
I am not sure if you have checked the obvious but app_dev contains the following:
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
Make sure to add your IP, remove the IP block altogether or come up with a login solution.
Upvotes: 0
Reputation: 91
You may also check whether mod_rewrite is enabled in your server.
Upvotes: 0
Reputation: 1046
Most likely there's a php error, you should check your web server/php error log files. The exact location of those depends on configuration, ask your hosting provider if you can't find them yourself.
As a wild guess, check the permission on the app/cache
folder - this is a common problem I believe. You should always run app/console cache:clear --no-debug --env=prod
with the webserver user.
Upvotes: 1