Continuing on from here:
Symfony 2 Production Setup Error: "redirected you too many times."
I tried some more things. I realised if I created a symlink from public_html to the web folder and then created an index.html inside the web folder. The directory structure is as follows:
/
|
home
|
[website_name]
|
[website_bitbucket_repo], public_html(symlink to web)
|
web
|
app.php, app_dev.php, index.html(symlink to app.php)
I added an index.html inside the web folder and it would finally load that page (even index.php caused: "redirected you too many times.")
I then created a symlink from index.html to app.php but I get this on loading the website homepage:
loadClassCache(); //$kernel = new AppCache($kernel); // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter //Request::enableHttpMethodParameterOverride(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response); $_SERVER['HTTPS'] = 'on'; $_SERVER['SERVER_PORT'] = 443;
If I create the symlink from index.html to app_dev.php I get:
loadClassCache(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);
i.e. part of the contents of the file.
I feel like I am on the right track, as I am no longer getting redirect errors but I am not sure where to go form here as to actually loading the Symfony application?