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.
Related
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?
I had a website that is running perfectly fine,
However when I decided to move it to Azure (Uploaded by FTP), I get the error
System.ComponentModel.Win32Exception: Access is denied
The connection to my database hosted in my own server's SQLServer could not be opened.
Is there any additional steps to be made after uploading the entire website?
Assuming you imported your Model locally, you need to update your connectionString from your Web.config file. Set your server, catalog, user id, and password appropriately
I am currently using MS Visual Web developer 2010 Express to build a website as a school project. I used the Website Administration Tool and set up my login and registration form and everything. Everything works perfectly at home when I run the website, I can login and I can use the registration form to create a new user. Today I took it to school on my flash drive to show my teacher. Using her laptop I opened my website using MS Visual Web developer 2010 Express. Now when I try to register a new user or login with the users I already created at home, I get an error page with a long list of codes. So, I immediately went to the Website Administration Tool to check what is going on. I clicked the Security tab and I got this message:
There is a problem with your selected data store. This can be caused by an invalid >server name or credentials, or by insufficient permission. It can also be caused by the >role manager feature not being enabled. Click the button below to be redirected to a page >where you can choose a new data store.
The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
I am confused now. Why won't it work on another computer? Is this feature meant to work only on the computer you created it with?
Thanks in advance.
I think you need to deploy your mdf file to remote server.
Here you are the steps: Deploying the ASPNETDB.MDF to a Remote SQL Server Database
I have just moved my site from developpement plateform to production.
I configure the setting files in the $db_url string. I have put the good ones because I use these credential in a shell to access th database, there is no problem.
But when I try to access my site I get the following message:
Site off-line
The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.
If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.
you will see this message if drupal can't connect to its database....check the filed settings.php again...and make sure that the database, username and password are correct and no problem with connecting to the database
I'm taking the database that I created with SQL server express and putting it on a server in a datacenter. There are 2 database files in AppData folder: the aspnetdb.mdf file and the file I created for my site MySite.mdf. I'm using the ASP login control and that works with the ASPNETDB.mdf file and it's working. If I log in without the correct username/pwd, it'll display a bad login message.
However, as soon as I login and the site goes to make a request to MySite.mdf, I get an error "Invalid object name 'dbo.Users'." which is the name of the first table the site looks into after the login.
I've attached the MySite.mdf file to the server and copied the connection string the hosting company is generating into the web.config file and left the rest as is.
Could it be that I can't attach a sql express file?
Please let me know if you've run into this issue or if you have any suggestions.
Thanks.
Based on your description and the following assumptions:
your authentication still works
you haven't mentioned attaching your aspnet.mdf
you have separate databases for security and datastore
you're probably still testing locally
I'd guess that your application is still pointing at your local aspnet database - that's why authentication still works. Typically in a shared host, you'll have to install/insert the asp.net security database items to your main database. See This MSDN page for instructions on setting up the asp.net database objects.
You need to establish whether or not you've actually attached your database or not. Is there an online "database manager" you can access? Or can you connect to your database from SSMS or your dev environment and run a simple query?