To install Symfony, do the following:
composer create-project symfony/framework-standard-edition /home/name_account/имя_site.com/www/ 2.7.3
In the command, substitute your data:
name_account
— hosting account namewhere you are installing.имя_site.com
- the name of your site directory.2.7.3
- the version of the installed framework.web
place also in the main directory.app.php
и app_dev.php
lines:$loader = require_once __DIR__.'/../app/bootstrap.php.cache'; require_once __DIR__ . '/../app/AppKernel.php';
On:
$loader = require_once __DIR__ . '/app/bootstrap.php.cache'; require_once __DIR__ . '/app/AppKernel.php';
app_dev.php
this block:if (isset($_SERVER['HTTP_CLIENT_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR']) || !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) ) { header('HTTP/1.0 403 Forbidden'); exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); }
http: // name_site.com / config.php
.