Solved

Sharepoint 2013 Port Number Change

Posted on 2013-01-06
7
2,776 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
ID: 38750133
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
ID: 38750724
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
ID: 38751133
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:CVNetworks
ID: 38752143
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
ID: 38752196
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
ID: 38752236
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
ID: 38752291
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

18 Experts available now in Live!

Get 1:1 Help Now