Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 12366

Migrate Yii Framework Application to Azure Web App

$
0
0

1. Create a PHP Empty Web App on Azure:

   

 

   

 

 

2. Copy the contents from Yii framework application root to wwwroot, e.g.

   

 

   Note: Your framework and application (assets, themes, index.php, etc.) should be all in wwwroot.

 

3. Turn on error log, so that you can watch for errors in php_errors.log during migration:

    If log_errors is default to "Off", create a .user.ini file in wwwroot, add this line in .user.ini:

    log_errors=On

 

4. Modify database connection criteria from main.php (in this demo, it is protected/config/main.php), link to correct database.

 

5. Check index.php, validate the paths for $yii and $config. Test your site <your-site-name>.azurewebsites.net, it should point to site home page, e.g.

   

 


Viewing all articles
Browse latest Browse all 12366

Trending Articles