Hi I am trying to upload the Yii2 advanced template application on the web server. The cpanel is not the just like normal server, there is not any method of error tracing.
but my I am getting blank on browser when I access the application. I had double checked the database connection.
I also want to track the error and log in files.
I don’t how to fix this issue. Is there any specific way to install yii2 on webserver
You can upload from local as well. Just ensure, you have a production configuration exactly similarly done (e.g. db config, path aliases etc.) on the local before uploading - so you do not need to change the config files.
You just need to then drop in your entire app folder on the server. The only thing is you will need to do all future updates to packages via composer on your local and the push/sync time to time.
Alternatively, you can do a fresh app install via composer on your server, and then copy your app specific folders (e.g. frontend/backend/common). In future then, you could directly use composer to update your packages from server.
You need to have shell (SSH) access enabled to access your host. Check if your hosting provider has given this access. Generally many good shared hosts do provide this but it needs to be enabled through some config in your CPanel. Once you have SSH access, you can connect with some ssh telnet client like PUTTY (from windows) to your server console and then you may need to install composer and run install commands.
Hi had download the zip file from the yiiframework.com and uploaded to my web server, but it does not work. How to initialize it in my server so that I can run just like access in my local server.
I am sorry but I am stuck with some nonsense issue.
I could appreciate any from other developer who had successfully install yii2 on webserver.
The best way is what Kartik told you before. If you are “Production Ready” just zip all your project and upload it to you web server. That way you don’t need to install composer on it and all the dependencies will be ready.