php - move symfony from root directory to public_html

854

I have a symfony2 project that somehow was running fine while it was outside the public_html directory, but now it's not working (the path is not allowed anymore, apparently).

Now I need to move the symfony2 directory into public_html, but when I do, the website is still not working (the page is blank).

I modified app.php so the include path is the correct one, and I also modified the projectConfiguration class so it has the right WebDir. What am I missing?

alternatively, how can I make it work outside the public_html directory?

for the record, I'm completely new to symfony.

296

Answer

Solution:

The cache was the culprit. I cleaned symfony's cache (removed all the contents residing in the cache folder) and the website came back to normal.

thanks to fos.alex for the comment/answer.

People are also looking for solutions to the problem: codeigniter - PHP Exception Handling

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.