A
A
Andrey Zanovsky2013-11-14 09:57:37
symfony
Andrey Zanovsky, 2013-11-14 09:57:37

How to deploy symfony 2 application to hosting?

Hello. There is a small symfony application on local hosting, it needs to be deployed to shared hosting. Unfortunately, I am unable to do this.
What I did:
Exported the database from the local server and imported it to the hosting server
Changed the database connection data in the /app/config/parameters.yml file
Renamed the web folder to public_html
Cleared the /app/cache/ folder
After all this, the server gives a 500 error.
Please tell me what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Zanovsky, 2013-11-14
@andrei_z

Many thanks to everyone who tried to help. The problem turned out to be so elementary. The hosting version was php 5.2. Changed to 5.4 and everything worked.

S
Sergey, 2013-11-14
@pacahon

500th error is a sure sign to first look at the server logs.

J
JekaRu, 2013-11-14
@JekaRu

http://symfony.com/doc/current/cookbook/configuration/override_dir_structure.html#override-the-web-directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question