How to fix wordpress issue in Azure

Saurabh Vanve 0 Reputation points
2023-09-22T11:47:13.5166667+00:00

I am totally new be to the Azure so consider any mistakes happened in below text: >

Today I create a wordpress site on Azure by selecting the wordpress in the marketplace. After following all the process I get a subdomain from azure as pikmahiti.azurewebsites.net when I get my subdomain I login to its wordpress by pikmahiti.azurewebsites.net/wp-admin.

Now I have an existing website from which I take a backup using all in one WP migration plugin. Uploaded the backup to pikmahiti.azurewebsites.net after successfully uploading the backup files I come back to Azure dashboard and click on custom domain to add my existing domain to Azure. I added A record and txt file provided. Till now there was not any issue but after that issue begins.

Come to problem

Let's imagine I add mysite.com custom domain in the pikmahiti.azurewebsites.net now when I click on mysite.com/wp-admin then I am unable to delete the plugins so in order to delete the plugins I have to login to wordpress of pikmahiti.azurewebsites.net and after that I have to delete the plugins. Same issue is happened to my side kit plugin that my main website mysite.com please unable to authenticate.

How to solve the above issue so that I can add and delete the plugins through mysite.com/wp-admin not by each time login to wordpress of pikmahiti.azurewebsites.net

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,960 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,741 Reputation points Microsoft Employee Moderator
    2023-09-25T03:20:39.6433333+00:00

    @Saurabh Vanve It seems like you are having trouble accessing your WordPress site through your custom domain after migrating it to Azure.

    Firstly, it's important to note that when you add a custom domain to your Azure website, it can take up to 24 hours for the DNS changes to propagate. During this time, you may experience issues with accessing your site or certain functionalities.

    Regarding your issue with deleting plugins, it's possible that the permissions for your custom domain are not set up correctly. To resolve this, you can try the following steps:

    1. Log in to your Azure portal and navigate to your WordPress site.
    2. Click on "Configuration" and scroll down to the "Domain names" section.
    3. Make sure that your custom domain is listed and set as the primary domain.
    4. Click on "Authentication / Authorization" and make sure that the "App Service Authentication" toggle is turned off.
    5. Save your changes and wait for the DNS changes to propagate.

    After completing these steps, try accessing your WordPress site through your custom domain again and see if you are able to delete plugins. If the issue persists, you may need to check the file permissions for your WordPress installation and make sure that they are set up correctly.

    (I also want to add that we state the best practice is to use a CNAME record when possible. In rare scenarios, the inbound IP address of your App Service could change, which would break your A record. For this reason, we always recommend CNAME records as they will avoid these scenarios.)

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.