I’m not very expert with WordPress, newbie question incoming! I have two basic questions:
1) How do I edit the .htaccess file for my WordPress site on Azure?
2) Is there a better way to migrate an existing WP site than the All-In-One plugin?
I have a WP blog but I’d like to move it to Azure since I get a monthly Visual Studio credit and will be able to run the site for “free”. But I cannot figure out how to edit the .htaccess file to do things like increase download size and script run time.
I am trying to use the All-In-One WP Migration plugin to import a 375 MB site into a WP site I’ve created on Azure. I tried to increase upload size by editing .htaccess but gave up and increased it with a plugin. That’s fine but now in the logs I see that the import is hitting a divide-by-zero exception. The script author answered this question a while back and said to set max\_execution\_time to zero.
I’m SSHed into the App Service. I think that the correct .htaccess file is at /home/site/wwwroot/.htaccess. I’ve added lines at the end of the file and then restarted the App Service. But still I get the same divide-by-zero exception, so I suspect I’m not making the correct changes to .htaccess or maybe I’m in the wrong file.
Screenshot of the end of my edited .htaccess file: [https://imgur.com/a/T2OinlA])
Can anyone tell me what I’m doing wrong?
Here’s what I see in Log traces during the import:
2022-12-21T17:08:30 No new trace in the past 1 min(s).
2022-12-21T17:09:30 No new trace in the past 2 min(s).
2022-12-21T17:10:30 No new trace in the past 3 min(s).
2022-12-21T17:11:30 No new trace in the past 4 min(s).
2022-12-21T17:11:31.385887748Z: \[ERROR\] 2022/12/21 17:11:31 \[error\] 162#162: \*3 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/site/wwwroot/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate.php:79
2022-12-21T17:11:31.386008849Z: \[ERROR\] Stack trace:
2022-12-21T17:11:31.386016749Z: \[ERROR\] #0 /home/site/wwwroot/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-import-controller.php(73): Ai1wm\_Import\_Validate::execute(Array)
2022-12-21T17:11:31.386021349Z: \[ERROR\] #1 /home/site/wwwroot/wp-includes/class-wp-hook.php(308): Ai1wm\_Import\_Controller::import(Array)
2022-12-21T17:11:31.386025749Z: \[ERROR\] #2 /home/site/wwwroot/wp-includes/class-wp-hook.php(332): WP\_Hook->apply\_filters(”, Array)
2022-12-21T17:11:31.386030649Z: \[ERROR\] #3 /home/site/wwwroot/wp-includes/plugin.php(517): WP\_Hook->do\_action(Array)
2022-12-21T17:11:31.386034949Z: \[ERROR\] #4 /home/site/wwwroot/wp-admin/admin-ajax.php(188): do\_action(‘wp\_ajax\_ai1wm\_i…’)
2022-12-21T17:11:31.386039249Z: \[ERROR\] #5 {main}
2022-12-21T17:11:31.386043449Z: \[ERROR\] thrown in /home/site/wwwroot/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate.php on line 79″ while reading response header from upstream, client: [169.254.129.1]), server: \_, request: “POST /wp-admin/admin-ajax.php?action=ai1wm\_import&ai1wm\_import=1 HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php-fpm.sock:”, host: “[wildjays.azurewebsites.net](https://wildjays.azurewebsites.net)”, referrer: “[https://wildjays.azurewebsites.net/wp-admin/admin.php?page=ai1wm\_import]”
2022-12-21T17:11:32.732803938Z: \[ERROR\] 2022/12/21 17:11:32 \[error\] 162#162: \*3 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/site/wwwroot/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate.php:79
[ad_2]