Solved

Sharepoint 2013 Port Number Change

Posted on 2013-01-06
7
2,715 Views
Last Modified: 2013-01-07
We recently put in Sharepoint 2013 on our server and went with the default port of 80.  We have another application that requires port 80 and would like to change the sharepoint port to 8080.  I have changed the bindings in IIS on the site but when i go to the site (http://servername:8080/sites/companyweb) it says site not found.  If I disable to site that is on port 80 and change sharepoint back it opens up.  Is there a setting that I am missing.  I have also gone into the central admin but can't find a way to change the port in there except to make a new site.
0
Comment
Question by:CVNetworks
7 Comments
 
LVL 14

Expert Comment

by:KoenVosters
Comment Utility
I would advise you to create a new web application on the correct port and call the database wss_temp_delete(or use host headers which would be better). Once you created the new web application, backup the content database. Remove the web application on port 80 and select not to remove the database (if you do, you still have the backup). Then add the content database to the new web application and remove the wss_temp_delete database.

This is the cleanest way to fix this.
0
 
LVL 38

Accepted Solution

by:
Justin Smith earned 500 total points
Comment Utility
I agree with Koen's comments, but will add a few.  Since this is early in your deployment (I'm assuming), I would go with a new web application.  However, if you only have one or two site collections, I'd just do a site level back up, then restore it to your new web app (rather than doing a database backup and restore).

backup-spsite http://url-of-existing -Path "c:\backup\filename.bak"

restore-spsite http://url-of-new -Path "c:\backup\filename.bak" -force
0
 
LVL 9

Expert Comment

by:kukdai
Comment Utility
i would suggest you to use host header as we can use same port for different web application. why not create a host header in the DNS and use the same port.

if it is not feasible do as other experts are saying.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:CVNetworks
Comment Utility
Before I do the backup and restore I just want to make sure that I have this correct.  With our existing sharepoint site this is what i would put in

backup-spsite http://url-of-existing -Path "c:\backup\filename.bak

and with the restore

restore-spsite http://url-of-new:8080 -Path "c:\backup\filename.bak" -force

Do i need to put the new port at the end of the url.

I created a new web application and currently I have 3 apps in the central admin. (sharepoint -80, Sharepoint Central Admin v4, Sharepoint - 8080)
0
 

Author Comment

by:CVNetworks
Comment Utility
for the backup I had to use the full path of the site

backup-spsite http://url-of-existing/sites/companyweb -Path "c:\backup\filename.bak

for the restore I didn't create a site so how would I restore it or create a site to restore to?
0
 
LVL 38

Expert Comment

by:Justin Smith
Comment Utility
Yeah, you have to use the full URL to the site :)

You dont have to have a site created to restore to, it will create it.  This is assuming the target web application is already created.
0
 

Author Closing Comment

by:CVNetworks
Comment Utility
This worked perfectly.  I did the backup of the complete site created a new web application and a new site.  Did the backup and restore as follows

backup-spsite http://url-of-existing/sites/companyweb -Path "c:\backup\filename.bak"
restore-spsite http://url-of-new:8080/sites/companyweb -Path "c:\backup\filename.bak" -force

Opened up sharepoint on new port and everything was there and working.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now