New to Umbraco - how to install on IIS
# help-with-umbraco
k
Hi Everyone I am completely new to Umbraco and want to investigate, if Umbraco could fit our eSport website. I have looked in many directions to find a guide on how to install on IIS (dedicated server), but cannot seem to find anything. Can anyone point me in the right direction? I can find lot's of guides on how to setup a development environment with Visual Studio and local hosted Umbraco. Any help are must welcome. Thanks in advance.
k
Thats perfect, thanks a lot. Will try this method tomorrow.
Hi again. I have looked at the link and it does not make sense to me. It still looks like install on a developer machine and not on a server. Its not clear to me where the website files comes from, other than its compiled through Visual Studio (that i dont want on my server)
h
You build the site locally and then publish it to your website depending on which umbraco version you are using that part will be slightly different
k
okay.. that sounds a bit troublesome just to get a dummy site up and running. Was hoping for something like the Wordpress method, where you could download the files and get startet from there. Thanks for clearing
d
there is an option to 'publish to filesystem' in visual studio, which creates a folder with a standalone app that you can upload to your server and run
r
Hello, I have this issue too, using the published site it throws an error 403.14, my solution doesn't have aspx files, I have tried everything I could get from the documentation but I'm sure I still miss something
m
Publish the site to a folder, afaik it defaults to bin/Release/net6.0/publish Upload all the files and folders from bin/Release/net6.0/publish (make sure you go as far as publish) to your www folder on IIS Make sure you get the wwwroot/media files, sometimes they don't get published Upload SQL server database (backup/restore, check user etc) Create website in IIS. Make sure you have the relevant Hosting Bundle installed as per https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/iis Application pool - settings - set as No Managed Code Set permissions as per https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/permissions Make sure appsettings connection string is correct
r
and if it's in .net 7.0 the principle is the same?(forgot to mention I created an Umbraco 11.4.0 project)
m
I've never done an Umbraco 11 site but assume so. Just make sure the correct Hosting Bundle is set up on the server.
k
Publishing and IIS hosting is exactly the same for 9/10/11/12. Umbraco 11 can use net7, Umbraco 12 needs net7.
r
I see, so far I am stuck on an umbraco boot failure, I can't seem to find why it's doing this since the connection string is set right, on the log it mentions :" Configured database is reporting as not being available" but when I run it from the VS or the powershell terminal with dotnet run it works normally
I need to mention this is only happening on IIS not IISExpress
k
Did you check the Umbraco log?
r
Yes, that is the umbraco log message
k
I don't recognize that error message. Which database provider is it? Are all the configuration files correct in the IIS directory?
My guess is that the connection string in runtime is not correct.
r
I am not sure about the configuration files as there was no web.config from the start ( had to create one manually ) the database was created on the first run as SQL Server type
k
Isn't this Umbraco 11? Then Web.config is only used by IIS for minimal stuff like how to start ASP.NET Core. Umbraco would use appSettings[.environment].json.
r
Indeed, but I needed web.config to deploy the app on IIS
otherwise I get an error 403.14 on load
k
And what is the connection string? Can you find a correct connection string in a configuration file that Umbraco loads?
r
it is of sort :" Server=server;database=database;Integrated Security=true "
k
A minimal Web.config for "ASP.NET Core on IIS" is usually created automatically, either by VS or by msdeploy or by vsdeploy...
Integrated Security means the user running the IIS application pool is the user used to access the server and database.
r
I tried the variants with Data Source, Initial catalog , User Id , Password, it is till not reachable
It only works on building as localhost:port
k
Is this IIS on your development machine? Can you verify that the connection string is correct?
r
Yes, it is
And yes, the connection string is correct
h
If you are using "Integrated Security=true" then your App_Pool/YOURAPPOOLNAME user needs the correct permission on your database, have you checked those?
r
I am not entirely sure how to find them, sorry
h
Is this in a hosted environment or are you setting up your own server? Were you provided with credentials to access the SQL server?
r
The test case is on the personal space with access to both SQL Server and the solution, I also have access to the target server where I need to deploy and host the application along with the SQL Server that is in the remote server (which is a windows environment if it matters), it seems I do not have an App_Pool or IIS APPOOL for users yet, I have the credentials for them, the only problem is due to permissions I cannot directly deploy from VS to server but I opted for deploy to folder->move the folder scenario
h
If you created a website in IIS for your Umbraco site then it will have an
IIS APPPOOL\YourAppPoolName
user associated with it, you need to add this user to your database as the owner, then your Umbraco site will be able to connect to it
In SQL Server Management Studio, look for the Security folder (the security folder at the same level as the Databases, Server Objects, etc. folders...not the security folder within each individual database) Right click logins and select "New Login" In the Login name field, type IIS APPPOOL\YourAppPoolName - do not click search Fill whatever other values you like (i.e., authentication type, default database, etc.) Click OK
r
Oh, I tried to search it, probably that was the main issue, I will test right now and return with an answer
h
yes, you can't search for them, they are invisible users 🙂
you may or may not need to add TrustServerCertificate=true; on the end of your connection string, but you will get an error if it is needed 😄
r
Well, a progress is a progress and I'll take it, thank you for clarifying , now onto the next error which is a 500.30 haha, but this solved the boot fail issue (probably)
will definitely check it out as this app needs it's own SSL Certificate
After fixing some missing dependencies the app is working both locally and on the target server, thank you very much @huwred for the information!
h
Glad you got it sorted.
d
Worth chatting with @AaronSadlerUK who provides very good value for money Umbraco hosting and support btw
a
Thanks @Dean Leigh, @revbreak please reach out if you want to discuss our services https://umbhost.net/hosting/cloud-umbraco-hosting
j
Hello, I am using plesk as hosting server. The problem is that the server does not have cli option. Please any other way of installing Umbraco in this situation or what is the flow for the installation?
a
Are you using a Windows or Linux Plesk server?
6 Views