Deploy a Symfony2 app on cPanel

大憨熊 提交于 2019-12-08 04:13:45

问题


I'm new to cPanel and I want to deploy my Symfony2 app on it. I need some guidance on how to do it, I downloaded the Symfony2 framework with the Softaculous Apps Installer.

PS : My app is also on BitBucket.


回答1:


First off all: CPanel is just a web-shell arround your linux os that makes it easy to maintain your server from distance through a web interface.

Actualy you do not need softaculous because it just installs an empty new symfony project.

There are globally two ways to install your symfony project.

  1. Install git and Composer on your server, use git to pull the project from bitbucket and install the the vendors with 'composer install' or 'composer update'.

  2. Upload your complete project from your local computer to the server with FTP.

In both ways you still have to install your database and set your configuration.




回答2:


If you have a shared online server then just copy the entire symfony project through FTP, set up your database credentials in parameters.yml, and manually delete the prod directory inside var (symfony ≥ 2.8) or app (symfony ≤ 2.7).



来源:https://stackoverflow.com/questions/41451529/deploy-a-symfony2-app-on-cpanel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!