Following the announcement found here https://azure.github.io/AppService/2022/08/08/Announcing-GA-WordPress-on-Azure-App-Service.html
I've decided to migrate my website from a Ubuntu Server VM on Azure to this App Service configuration.
First, I've created new resources using the "Wordpress" template/configuration which I found on Azure portal. So, the deployment process created an App Service (plan P1), a MySQL database and a CDN Endpoint.
Everything seems to working quite fine. Then I've moved my website files from the VM to the App Service and I've created a new database in MySQL server where I've imported my website database without problems.
I've kept the wp-admin and wp-includes folders which were deployed by Azure and the wp-config.php file.
As final step, I've changed the configurations in the App Service to connect to the right database.
Then I tried to visit my website, but it is super slow (about 10 seconds to load the home page and I was forced to disable some plugins which was causing a fatal error).
I've checked the Wordpress Health Status using the plugin in the admin center, and it reports some issues.
Two of them are reporting a message like this:
cURL error 28: Resolving timed out
I've seen another post on SO ("cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux) with a similar issue and it suggested to change resolv.conf DNS to 8.8.8.8 (previously was 127.0.0.11). The author of the post wrote that this change improved page load time to max 1-2 seconds.
I've made this change but then the website stopped working returning "Error establishing a database connection" (maybe because MySQL db and app service are on the VNET created by Azure Wordpress template and there are some restriction to connect to database).
I've also tried to disable the CDN, changing the CDN_ENABLED to false in the App Service configuration. Obviously I've created the correct custom domains in the App Service and changed the domain DNS which is managed outside Azure.
Also, and I don't know if it is all related to this issue, I've noticed that Google Page Speed is unable to reach the website reporting the error "Lighthouse encountered an error loading the requested page".
What can I do to resolve the reported cURL error 28 and maybe these performance issues?
Related
I migrated a SilverStripe website from one server to another. To do that I took the following steps:
Transferred a backup of the files from the old server and to the new server.
Dumped the old Database and imported it to the new server.
Updated _conn.php to connect to the new database.
Now when I hit the URL in a browser it is giving a 500 error. I didn't update the DNS for new server, instead I point to new server from my local system via hosts file. If I hit mywebsite.com/robots.txt, it is showing the robots.txt but not showing other pages.
500 error means server error which means something in apache(?), php or other logs. Ensure debug mode is on for SilverStripe to get the most information.
If all else fails start with checking your .htaccess is fine and redirecting and use with debug [die] statements progressively.
Ideally use the silverstripe-installer to debug any server issues and install a clean install, then you can copy the site over when you know it is working.
I am trying to host a WordPress website on azure.
I have successfully uploaded the files and database in phpMyAdmin.
I checked which user is accessing my database its shows as azure.
When I try to open the link (https://websitename.azurewebsites.net/) where its is hosted on azure ,it gives the following error:
An attempt was made to access a socket in a way forbidden by its
access permissions. Error establishing a database connection
Can someone tell me where can I find the right user name and password to connect to phpMyAdmin in azure
I tried using the FTP details, I connected in FTP but giving an error when try opening the website using link mentioned above.
If you just click the App Services menu and you add a new one, you can filter for WordPress and there are a lot of preinstalled instances, you can just start to use it. It is already configured for your.
I'm running a wordpress website on Azure with a MySQL DB both located in East US
However, for some reason recently the website has been taking a much longer time than usual to connect. The first request to connect to the domain takes 6+ seconds.
I've edited the Web config file and worked with a Cache for the website but its still giving me the long waiting times. Would Appreciate any help.
longwaitingtime
this is driving me NUTS!
I have a website I built that's on AZURE.
I built it in NETBEANS 8.2 like I do with EVERY SITE since 2011.
I uploaded to AZURE via FILEZILLA with no issue. When I got to login, BOOM! I get this error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
It's because of AZURE WRAPPING MY SITE with TWO IFRAMES!!! Whiskey Tango Foxtrot???
When I'm on my 1and1 DEDICATED SERVER and NOT a VIRTUALIZED AZURE SERVER, I have ZERO PROBLEMS and no IFRAMES!
PLEASE SOMEONE TELL ME HOW TO GET RID OF THIS ANNOYANCE???
UPDATE: BRANDO, here's the config on Azure for Virtual Directories. It's pretty straight forward and I get an iFRAME!!! Azure "IS" doing this!!]1
Azure web app will not add any codes to your html page.It is just a host platform.
www.thingblugrow.com/www.thingblu.com <--- custom domain, add the frameset
testappinnovyt.azurewebsites.net/thingbluapp.azurewebsites.net <--- azure web site doesn't add the frameset
So this issue is not related with azure web app.
So I guess the frame set is added by your custom domain company server or you set the frame by code at some other place(by js) not the azure.
I suggest you could try to connect with your custom domain support and could follow this article to bind the custom domain with your azure web app.
I just created a webform that is hosted in my Azure subscription. I set it up with authenication via my works Azure directory for authenticating users. In debug this works fine and I am able to login with my work credentials and then view the website via local host.
I have published this to my Azure and it says it is running and working fine. So when I try to connect to the website it continuously redirects me to the localhost resulting in an error.
I have checked the web config.
Here is the google network chain of events when it occurs.
I am really lost as to what is wrong and what I need to do to fix this so any help would be greatly appreciated. I'm sorry I can't offer more but I don't even know what is wrong to begin with or where to look. Is there some setting in Azure that I need to add the website too?
I have solved this issue. Since it was such a pain I will keep this up as I couldn't find any answers on this. It was actually quite simple.
You have two options. The one I did and which worked was changing the publish profile as below:
Add the domain where the authentication is occurring. So if you have your web app hosted by a different azure account that which is authenticating the users, use the one that is authenticating.
This will create two versions of your app on the site one for local host and one for the actual site.
The second option(I have not tried this but it should work) is to go to the Azure account where you are authenticating the users and go to applications and then configure. Change the APP URL from local host to the url you are trying to get to.
Here is an excellent link that explains how to do this clearly.
Click this link for detailed explanation
I also had this issue and took these steps to resolve
navigate to the app registration in AAD
Open the manifest
Change the ReplyUrl to the url of the app (e.g. http://appname.azurewebsites.net)
Then I got the error
Bad Request - Request Too Long HTTP Error 400. The size of the request headers is too long.
Next I cleared all cookies from the browser, and this changed the error to just
Bad Request
So I went back to that ReplyUrl and changed it to https://appname.azurewebsites.net/.auth/login/aad/callback and now it appears to work.
Note I also had to make sure I didn't have the site open in any other tabs before it started working
I had this issue when I switched an app from our company Azure over to a customer's Azure. In my case I'd forgotten to update the ida:ClientId, ida:AADInstance and ida:TenantId, which then meant that the value I'd set for ida:PostLogoutRedirectUri was ignored (I think) and instead my app redirected to localhost.
Once I changed those ida values to the values from the app settings and subscriptions settings on our customer's Azure it all worked as expected.
It took a while to track down all the values in Azure portal as they are all called something different, or aren't named at all:
ClientId can be found at Azure Active Directory > App Registrations > YourAppName. It's called 'Application ID' in Azure
Domain can be found on Azure Active Directory > Overview. It's currently in the top left in the format somename.onmicrosoft.com
TenantId this is the Azure AD instance ID, get that from Azure Active Directory > Properties and then it's called 'Directory ID'
I spent a lot of time trying to work out where the localhost port that was being redirected to was in the code, but it simply isn't there as far as I can see, so I have no idea how Azure was choosing what localhost address to redirect to!
You need to set another parameter in configuration that is replyUrl and assign to your web app, other wise it takes the url from which it was originated.
I was able to fix this by changing my Startup.Auth.cs file redirectUri from "https://localhost:44316/" to https://myapp.com/