Multisite Wordpress on Azure.

%3CLINGO-SUB%20id%3D%22lingo-sub-62547%22%20slang%3D%22en-US%22%3EMultisite%20Wordpress%20on%20Azure.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-62547%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20installed%20Bitnami%20multisiste%20Wordpress%20on%20Azure.%20The%20site%20is%20working%20when%20I%20use%20the%20IP-adress%20I%20was%20given%20on%20the%20installation.%20But%20I%20need%20to%20combine%20that%20IP-adress%20with%20the%20domain-name%20I%20like%20to%20use.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20nit%20find%20where%20I%20do%20this.%20On%20the%20Azure%20portal%2C%20or%20my%20Wordpress%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3E-%20Geir%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-62547%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Azure%20Stack%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-150124%22%20slang%3D%22en-US%22%3ERe%3A%20Multisite%20Wordpress%20on%20Azure.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-150124%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Geir%2C%3C%2FP%3E%0A%3CP%3EWordPress%20stores%20references%20to%20the%20site%20URL%20in%20the%20database.%20Your%20best%20option%20is%20to%20replace%20instances%20of%20the%20IP%20address%20with%20your%20domain%20name%20in%20the%20database.%20WP-CLI%20has%20a%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.wordpress.org%2Fcli%2Fcommands%2Fsearch-replace%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esearch%20and%20replace%20command%3C%2FA%3E%26nbsp%3Bthat%20makes%20this%20really%20easy%20and%20keeps%20serialized%20data%20properly%20formatted.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20%3CA%20href%3D%22https%3A%2F%2Fcodex.wordpress.org%2FChanging_The_Site_URL%23Edit_wp-config.php%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eedit%20wp-config.php%20to%20define%20WP_HOME%20and%20WP_SITEURL%3C%2FA%3E%26nbsp%3Bto%20overwrite%20the%20value%20in%20the%20database%20with%20the%20correct%20URL.%20However%2C%20search%20and%20replace%20is%20the%20best%20practice%20as%20it%20will%20update%20links%2C%20media%2C%20and%20other%20references%20as%20well.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E-%20Andrew%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66338%22%20slang%3D%22en-US%22%3ERe%3A%20Multisite%20Wordpress%20on%20Azure.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66338%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Viktor%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20are%20right.%20I%20do%20use%20the%20Virtual%20Machine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20havde%20added%20the%20IP%20adress%20from%20Azure%20to%20my%20domain.%20And%20my%20domain%20direct%20to%20the%20right%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20problem%20is%20that%20the%20IP-adress%20shows%20up%20in%20the%20URL%2C%20not%20my%20siteadress.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20when%20I%20try%20to%20add%20a%20new%20site%20on%20the%20mulitite%20the%20adress%20is%20with%20the%20IPadress%20at%20the%20end%2C%20and%20it%20does%20not%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20I%20need%20to%20change%20the%20name%20servers%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20the%20picture%20from%20WP-multisite.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CP%3E-%20Geir%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20217px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14021i4FB1F1B85D995C70%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22ms%20url.PNG%22%20title%3D%22ms%20url.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-62859%22%20slang%3D%22en-US%22%3ERe%3A%20Multisite%20Wordpress%20on%20Azure.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-62859%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20assuming%20you%20are%20using%20the%20virtual%20machine%20based%20solution.%20In%20this%20case%2C%20go%20first%20to%20your%20public%20IP%20address%20resource%20and%20under%20configuration%20you%20can%20change%20to%20static%20assignment.%20This%20will%20ensure%20that%20you%20always%20get%20the%20same%20IP.%20Then%20you%20just%20create%20a%20regular%20A-record%20in%20your%20DNS%20to%20that%20IP.%3CBR%20%2F%3E%3CBR%20%2F%3ENormally%20you%20need%20to%20change%20inside%20of%20wordpress%20as%20well.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi,

 

I have installed Bitnami multisiste Wordpress on Azure. The site is working when I use the IP-adress I was given on the installation. But I need to combine that IP-adress with the domain-name I like to use.

 

I can nit find where I do this. On the Azure portal, or my Wordpress site.

 

Any suggestions?

 

Best regards

- Geir

 

3 Replies
Highlighted
Hi,

I am assuming you are using the virtual machine based solution. In this case, go first to your public IP address resource and under configuration you can change to static assignment. This will ensure that you always get the same IP. Then you just create a regular A-record in your DNS to that IP.

Normally you need to change inside of wordpress as well.

Best regards
Highlighted

Hi Viktor,

 

You are right. I do use the Virtual Machine.

 

I havde added the IP adress from Azure to my domain. And my domain direct to the right site.

 

My problem is that the IP-adress shows up in the URL, not my siteadress.

 

Also when I try to add a new site on the mulitite the adress is with the IPadress at the end, and it does not work.

 

Do I need to change the name servers?

 

Attached is the picture from WP-multisite.

 

Best Regards

- Geir

ms url.PNG

Highlighted

Hi Geir,

WordPress stores references to the site URL in the database. Your best option is to replace instances of the IP address with your domain name in the database. WP-CLI has a search and replace command that makes this really easy and keeps serialized data properly formatted.

 

You can also edit wp-config.php to define WP_HOME and WP_SITEURL to overwrite the value in the database with the correct URL. However, search and replace is the best practice as it will update links, media, and other references as well.

 

Hope this helps.

 

- Andrew