title: deploy symfony 4.2 project to shared hosting by filezilla
body: <p>i have a project that build on with Symfony 4.2. I want deploy this project to a shared hosting. But on symfony documentation, there is nothing about it clearly. </p>
  
  <p>I deployed all my project into hosting under public_html. </p>
  
  <p>But probably panel does not find the index.php. On cpanel, i can not change the document root.</p>
  
  <p>current document root: <code>public_html</code> </p>
  
  <p><a href="https://i.hizliresim.com/r5Z9dM.png" rel="nofollow noreferrer">project folder structure</a></p>
  
  <p>my index.php under public folder.</p>
  
  <pre><code>   &lt;?php
  
     use App\Kernel;
     use Symfony\Component\Debug\Debug;
     use Symfony\Component\HttpFoundation\Request;
  
     require dirname(__DIR__).'/config/bootstrap.php';
  
     if ($_SERVER['APP_DEBUG']) {
          umask(0000);
  
          Debug::enable();
     }
  
     if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? 
          $_ENV['TRUSTED_PROXIES'] ?? false) {
          Request::setTrustedProxies(explode(',', $trustedProxies), 
    Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
     }
  
     if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? 
         $_ENV['TRUSTED_HOSTS'] ?? false) {
              Request::setTrustedHosts([$trustedHosts]);
     }
  
     $kernel = new Kernel($_SERVER['APP_ENV'], (bool) 
     $_SERVER['APP_DEBUG']);
     $request = Request::createFromGlobals();
     $response = $kernel-&gt;handle($request);
     $response-&gt;send();
     $kernel-&gt;terminate($request, $response);
  </code></pre>
  
  <p>Can someone help me about this issue?</p>