|Join Nairaland / LOGIN! / Trending / Recent / New|
Stats: 2,744,745 members, 6,511,840 topics. Date: Tuesday, 28 September 2021 at 03:02 PM
|Help!!! Please How Do I Host Symfony 3 Projects On Cpanel by Omzie(m): 12:00pm On Feb 23, 2017|
I'm in a situation where i desperately need help. I created an app on my localhost using symfony 3. Stuff works perfectly well on my local host. Now my main problem is moving it to my shared hosting (cpanel). Moved the files to the public_html folder, then i moved the app, bin, src, var, e.t.c folders to the parent folder (The folder containing the public_html folder) while leaving the 'web' folder in the public_html. I then moved everything from the 'web' folder (Which is inside the public_html folder) into the public_html folder. Making me have the following directory structure:
When i go to the domain name, i keep getting this annoying HTTP 500 error. Then on both localhost and on the server (at different times) i created a fresh new symfony project, dumped it in the server and got the "Welcome to Symfony 3" page quite alright. But, when i tried putting my controller files, and going to the routes defined in them (i use annotations in the Sensio bundle to define routes), i get that HTTP 500 error. Okay then in the default controller that works, i try defining a new action 'testAction'. When i go to the route for the test action, i still get the HTTP 500 error, but going to the '/' route, i see the symfony welcome page correctly.
Please pro web developers should help me out with this cuz i'm approaching my deadline. My clients have seen that the stuff works perfectly well on my localhost but now moving it to the server is the issue.
CC: seun, lalasticlala i know this is not a thread about snakes or tonto dike but please a front page appearance would be really appreciated. Thanks
|Re: Help!!! Please How Do I Host Symfony 3 Projects On Cpanel by oliverusselldev: 12:06pm On Sep 05, 2018|
I wouldn't recommend cpanel based hosting or shared hosting for hosting symfony or any other PHP based apps. I would recommend you to go with a cloud server, like DigitalOcean. If you don't know how to setup a DO server manually, you can use platform, like Cloudways, for hosting PHP MySQL site on managed servers. With this platform, you can host PHP on Digitalocean server in just one click. There is no need to manage server manually either.
|Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health |
religion celebs tv-movies music-radio literature webmasters programming techmarket
Nairaland - Copyright © 2005 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 42