• beyondtheduero

    (@beyondtheduerocom)


    I’m building my site; as yet not published. I’m some way down the line and I realise I need subdomains for a shop and a stock image library.

    I can’t see a simple way to create these. I tried installing a Bitnami WordPress Multisite Stack. But it seemed to be appropriate for creating a new site and not for an existing one, and I finally uninstalled it without taking things further.

    I looked at the documentation for manually installing subdomains and it was in a foreign language! I’ll have a go at anything but it needs to be clearly explained with explanations about the jargon, for example I’m not going to understand:

    It is possible that you are not running the installer as root user or is there any other application using this port (for example Skype or a web server). To run the installer as the root user on Linux, you will need to execute it using sudo

    By the way I’m using MacOS not Linux. Can anyone explain how to create subdomains or point me to a document that explains how to.

Viewing 7 replies - 1 through 7 (of 7 total)
  • This guide on switching from a single WordPress site to a multisite installation should sort it for you:
    https://premium.wpmudev.org/manuals/wpmu-manual-2/creating-a-network-to-enable-wordpress-multisite/

    During step 2, select sub-domains rather than sub-directories.

    Thread Starter beyondtheduero

    (@beyondtheduerocom)

    Thanks that looks promising…
    But I’ve fallen at the first hurdle:
    1. I can’t locate wp-config.php, there’s a wp-config-sample.php, but if I right click there is not an EditPlus 3 option. I have a screenshot of the options available but there seems to be no facility here to share it.

    By the way I’m using MacOS

    Thread Starter beyondtheduero

    (@beyondtheduerocom)

    OK
    I’ve renamed wp-config-sample.php to wp-config.php, and added define(‘WP_ALLOW_MULTISITE’, true);
    I have saved the document, and it now says to 5. Save your new wp-config.php file and reupload it to the root of your website..

    How do I reupload to the root of my website?

    Thread Starter beyondtheduero

    (@beyondtheduerocom)

    OK
    Seems like I’ve updated the wp-config-sample.php by FTP in the public_html folder
    All going smoothly so far!!!

    This, https://premium.wpmudev.org/blog/how-to-install-wordpress-and-multisite-locally-on-macos-x-with-mamp/
    BUT, wordpress subdomain requires domain names, not 127.0.0.1 or localhost. http”//localhost.com is ok because it has the .com but that needs to be set up and yes, it will require typing a couple of commands on the terminal. It’s not that hard but you will need the original password from when your computer was first set up.
    su or sudo = super user aka root. Kind of like super-admin on wp multisite it means you can do anything. So here’s a couple more. All mac btw.
    https://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line
    https://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

    It can be done and it could be done this afternoon. Just takes a little patience. You have to set up your local install with a domain name before turning on multisite. It could and probably should be done before even installing wordpress.

    bitnami is nice and easy but not totally standard. Keep in mind it’s one click uninstall just like it was for install.
    The “root” of your server is a folder and in this case whatever folder you chose when installing bitnami. lampstack is what it defaults to on linux so maybe wampstack for mac?
    Anyway, inside that folder is apps/wordpress/htdocs. htdocs is your root folder. It’s where all the wordpress files are so just put wp-config back in there, where sample came from. It’s pretty early in the game so you might want to backtrack.
    Don’t get me wrong, I love bitnami but when you want to do something besides the standard one click items, it becomes a pita because it’s different and there’s not much info out there. Bitnami’s wiki is about all there is and it ain’t much.

    Thread Starter beyondtheduero

    (@beyondtheduerocom)

    https://premium.wpmudev.org/manuals/wpmu-manual-2/creating-a-network-to-enable-wordpress-multisite/

    The guide recommended by benrosier is great and I’m halfway through installing the subdomains. I’m up to creating a Network Admin Dashboard, but haven’t yet done so.

    I’ve been reading ahead, and I may be pre-empting a problem that doesn’t exist. The guide says: Add the supplied rules for your.htaccess file from the ‘Enabling the Network’ page to replace all other WordPress rules in the .htaccess file with the supplied code.

    My question is, how will I know what the all other WordPress rules are, is it obvious?

    The guide, more or less stops here, so another question is how do I then create the subdomains?

    Finally, a basic question, how might the subdomains be linked to my site; what is perhaps the best method given that the subdomain is a shop selling products from the blog site?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Setting-up subdomains on an existing site’ is closed to new replies.