Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Sharepoint 2013 Port Number Change

Posted on 2013-01-06
7
2,857 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

837 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