yii2: How do I deploy my application to live server? - php

I just copied all my files which are working ok on localhost to my server here.
Here I receive a 403:
Forbidden - Access to this resource on the server is denied!
I believe this is due to the fact that I have deployed the application as local application. I cannot find information about changing main and main-local config files.
Both of these files are the same ones that come with the advanced application.
What is it I am doing wrong?

Related

Issue loading remote PHP app via Virtual Directories in IIS

I’m currently running a wordpress IIS server for site hosting (lets call it Web01), then running a separate IIS server for web application hosting. (Apps01)
I’m trying to utilize virtual directories on Web01 to dish out the content provided by Apps01 on my website.
So Apps01 hosts an IIS application called FileRun in an IIS site simply called “FTP”. going to http://localhost shows the application launches properly and I can login and use it just fine.
On Web01, I created a virtual directory under my main web IIS site called “ftp” as well as provided it with proper "connect as" account permissions, performed test to verify successful connections and I can expand and see the virtual directory contents etc.... When I attempt to go to http://www.example.com/ftp from Web01. It loads a page stating “ION Loader is required” however, I already have this ION Loader, loaded on Apps01 and it is functional. (as it is part of the FileRun, install). So at this point I used PHP Manager to redirect Web01 on FTP Virtual Directory to point to PHP content on Apps01 since that is where the program is located. Now I'm receiving an internal 500 error when trying to load http://www.example.com/ftp from Web01.
I check the remote PHP servers logs (Apps01) and see the following errors:
[11-Jan-2018 11:46:58 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '\apps01\PHP\v5.6\ext\php_sqlsrv.dll' - The specified module could not be found.
in Unknown on line 0
It appears to repeat this same error but with all php modules that are trying to be accessed from the remote Web01 server.
Any thoughts? Issues appear to be happening when running php based applications via virtual directories in IIS only. I tested by creating a test.php page with simple text. If I go to example.com/ftp/test.php, content loads fine. So it appears to be spefically an issue with PHP (either something about the UNC path in the VD settings or php.ini settings that need to be changed to allow this type of access etc...) I just can't find a clear answer for this issue with online searches.
P.S.
I searched on this site and found someone with a similar issue as me. However, their solution is not a real solution and will not work for me. He stated he simply copied the contents from the remote server onto the local Web server... I need the two servers separate so each can process its own roles independently (aka I need app server to process resources for app usage and web server to process web requests etc...)
How to enable the Virtual Directory Support php?

Error 500 when accessing deployed Symfony2 project

I was developing Symfony2 website on my local machine and after i finished, i uploaded it to our company's remote test server via FTP.
When I try to access it by typing either:
www.project_name.company_website.cz/
www.project_name.company_website.cz/web/
www.project_name.company_website.cz/web/app.php
I get error 500.
This app runs well on my local machine but I don't know what is wrong on remote server. My thought is that there is no index file in project's root or .htaccess but I am new to web development so I don't have enough information about this.

How to correctly publish CakePHP 3 to external server?

I'm writing application in Cakephp-3. I have got local server (Xampp) and external (Apache).
In my local server, all redirect works fine, but when I upload my Cakephp project into external server, I have got error while invoking links.
Error: The view for OnasController::index() was not found.
such a view, of course, exist there!!
I think that's the fault of an external server configuration: path, webroot etc.
I will be very grateful for any solution that help solve my problem.
This is my screen where is project localization.
Ok sorry !! Edited !!!

laravel 5.1 on windows azure web application

I want to deploy a laravel app on my azure web application
but that return this error
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
I know my web.config was setting error ..
I search some resource also can't resolve my question ...
http://blog.bobbyallen.me/2015/06/26/configuring-and-hosting-laravel-5-x-applications-on-windows-azure/
Actually, Azure Web site’s root directory is site\wwwroot, when we are deploying projects from Github to Azure Web Apps, Azure will automatically move the project to the root path site\wwwroot. So it is not necessary to change the root directory.
On my side, I cloned your project, deployed it on Azure by git, and browsed the URL <site_name>. azurewebsites.net/public to check project. I got the error message about the project couldn’t find the file vendor/autoload.php, so it looks like the project was lack of dependence.
I installed composer as the article you provided told in KUDU Console site. The URL should be https://<your_site_name>.scm.azurewebsites.net/ (first installed composer, we need to restart the console site).
Then click “Debug console”=>”CMD” at the header navigation of the console site to enter in command line tool, change directory to D:\home\site\wwwroot and run composer install, after finishing installation, we browse <site_name>.azurewebsites.net/public again, and it works well.
To set the URL rewrite to remove the “public”, we can simply modify “site\wwwroot” to “site\wwwroot\public” at virtual applications and directories section in Azure portal.
In addition you may want PHP project to show detailed errors during testing. By default, “display_errors” is off, we can simply create a file named “.user.ini” in the root directory and wirte “display_errors = on” in this file. Please read this article for more information.

Flex to remote server

I am trying to get a Flex/PHP application set up and am having problems connecting to my server. The database/PHP isn't going to be hosted on a local server, it will be hosted on a remote server along side the PHP. When I am trying to set up the project, I am asked for the web root but when I put in the ftp or URL to the remote server it throws the "The web server document root is not a valid directory". All information I have found seem to be pointing to having a locally hosted version of the server, but that isn't possible. Is there any other way?

Categories