Multisite Masterclass

Hi
I have just tried to complete the quizz for week 3, Activation and Configuration, and am having difficulty with one question:

How do you enable a theme on the network.

I have read the tutorial three times and watched the video 4 times, and thought I knew the answer.

But have tried every combination of answers and I just cannot get to pass the quizz - I know that all of teh other questions are correct as I have a score of 6/7 and have tried abour 15 combinations of answers for this question, which leads me to wonder if there is a glitch.

Coulld you please respond as I am completely stuck

The othe problem is that I cant get my dashboard to create the subdomain on my site (my test site on http://www.egolfsociety.com)

I have primed my siteground cpanel with the * subdomain,but when I hir create subdomain on my dashboard, nothing happens - no site is created on my siteground host

So help required here as well

Thanks

  • Nastia

    Hello Paul Yates , I hope you are doing well today!

    To your question about Quiz: How do you enable a theme on the network. The correct answers are #2 and #3.

    The othe problem is that I cant get my dashboard to create the subdomain on my site

    Please let me know, you are adding a new site from Sites > Add New? Do you see any errors?

    Would you please grant access from WPMU DEV > Support so I can have a closer look?

    Please advise,

    Cheers,
    Nastia

  • Nastia

    Hello Paul Yates , I trust you are doing well today!

    I visited your site and I can access your subsites:
    - wpmudev
    - wpmu-academy-exercises

    I guess you fixed this already :slight_smile: . In case you still can't access it, it is probably because you are not assigned as an administrator there.

    Navigate to Sites > All Sites, hover over a site and click on "Edit"

    Open "Users" tab, and add your account as an administrator.

    With regards to the problematic question, why is not option 4 valid. I know that it netwrk enables, but that included the currect site, so is techically correct

    The question is "How do you enable a theme for a site in the network?", the answer #4 "Via the Themes screen in the site admin" would be valid if the question was how to enable a theme on a subsite.

    It easily might be confused.

    Let me know if you have any further questions!

    Cheers,
    Nastia

  • Nastia

    Hello Paul Yates

    That's a great news! I'm glad it is working now.

    But I now cant find how to create new files for these subdomains, so have asked Sitegroing again

    Please clarify, do you mean files like Media Upload or theme/plugins files?

    With WordPress multisite all files are located in one folder, the one where you created the WordPress multisite and the folders like uploads, themes and plugins are one for all subsites.

    Please advise,

    Kind regards,
    Nastia

  • Paul Yates

    Hi Nastia

    What I mean is as follows.

    THe course tutorial for Wordpress Development for begginers, it asks you to create various .php files and then run them.

    In Week 3 What is PHP, it states that you can either use a local installation of Wordpress or an existing test site.

    I am going to use my http://www.egolfsociety.com site, becase after 2 weeks of trying I could not get the local installtion to work.

    However, the tutorial is written as if it was for a local installation. Here is an example

    First up, let’s look at PHP tags, variables, values, and echoing.

    Create an index.php file in your main project folder and type “Hello HTML” in it. To verify it is working, visit http://192.168.33.21, and you should see the string displayed.

    A very important rule is that only content within PHP tags is considered PHP code, anything else is considered HTML. This is why our Hello HTML text shows up. PHP tags begin with . Anything in-between those tags is considered PHP.

    Hello HTML
    <?php echo "Hello PHP"; ?>

    So how and where do I

    Create an index.php file in your main project folder

    And how do I run it?

    Last question: Did you remove the *, egolfsociety.com entry that I created in my cpanel, which is specified to make it easier to not have to duplicate creating new domains both from your site dashboard and from the cpanel. Siteground specify this method.

    I jusr want to know, becasue if you did not then Stieground did, and I want find why the removed it . They have not told me exactly what they did, just that it was now working.

    Hare is their response on where to put files:

    Your first site on a fresh install will put uploaded files in the traditional location of /wp-content/uploads/, however all subsequent sites on your network will be in the /wp-content/uploads/sites/ folder, in their own subfolder based on the site number, designated by the database. These files will be accessible via that URL. However, please keep in mind that in a multisite, there is no real path for subsites. Multiple subsites are created and those are managed by WordPress itself. All the information is stored in the database and the path is managed by htaccess. But there is no real path (subdomain or subfolder) created in your hosting.

    which does not help me much!

  • Rupok

    Hi Paul Yates,

    So how and where do I "Create an index.php file in your main project folder" and how do I run it?

    Well, it seems like it will be easier if you try this on your live server. So please login to your server with any FTP program and go to the root directory of your domain (e.g. example.com). Then create a folder named "lessons" (actually you can name it anything you like) in the root folder of your domain. Now create a file on your desktop called "index.php" and write the following code in that file:

    <?php
    $name = "Daniel";
    echo $name;
    ?>

    and save. Then upload this file in that "lessons" folder through FTP.

    Now go to your browser and visit "http://example.com/lessons/index.php" and you will see the output of your code in browser. In this way, you can download that file again in your computer, edit code while learning, save and upload again in that folder in your server and check output.

    I know it sounds tedious but if would be much simpler for you if you could create a local server. Can you please tell me what is your Operating System? I'm adding tutorials by following which, you should be able to creat a local server on your computer:
    Mac: https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP
    Windows: https://premium.wpmudev.org/blog/setting-up-xampp/
    Linux: http://subinsb.com/linux-apache-localhost

    I believe, these will help.

    Did you remove the *, egolfsociety.com entry that I created in my cpanel

    We don't have access to your cPanel. So we can't change any DNS entry in your cPanel. To confirm this, I've pinged Nastia and she also confirmed that she didn't do anything in your cPanel. Can you please check this with SiteGround guys? They might have worked with this, I'm not sure though.

    Please let us know if you still have any confusion. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

  • Rupok

    Hi Paul Yates,

    Thanks for sending details. Can you please check this video tutorial showing how you can install and configure XAMPP on your Windows 10 machine to create a local server?
    https://www.youtube.com/watch?v=N6ENnaRotmo

    If you exactly follow this video, then your web root location will be "C:disappointed:xampp/htdocs/" directory. Inside that "htdocs" folder, you should be create your php files. So if you create "about.php" file in "htdocs" folder, then you should open your browser and go to "localhost/about.php". It will show you the output of your php code.

    I have aperfectly good editor in my cpanel for updating and viewing files. Why should I not use this mmethod rather than FTP

    Well, that's a very good news. In that case, you can use your cPanel file editor. That will save lots of hassle through FTP.

    Please let us know if you still have any confusion. We will be glad to help further.

    Have a nice day. Cheers!
    Rupok

  • Paul Yates

    I have spent 2 whole weeks attempting to create a local installation.

    This was by following WPMU directions to the letter - from within the course.

    I have therefore given up any hope of this working.

    In any case it is almostimpossible to follow guidance from a video - it needs to be written down, so that you can print and make sure you dont miss any critical steps. With video you have to keep restarting the video, whic is prone to human error and is also time consuming

  • Paul Yates

    Hi
    I am now struggling to follow your guidance above on how to create a php file on my server.

    I am still not sure which is my home directory and how to

    I have created a folder called WPMUAcademy in and an index.php file inside that with
    <?php
    $name = "Daniel";
    echo $name;
    ?>

    But whatevr I try I cant access that file and run it.

    So please have a look at the attachment thatI have provided which sows the files for my site. I have created the folder right at the bottom in he home directory (which I assume is what you mean by the root)

    Also in respone to your advice about creating a local directory, I have actually successfully created XAMPP and that works fine.

    What I and WPMU support have struggled with is how to get the following to run successfully

    curl -L -o 'install.sh' http://bit.ly/1hBfq57 && curl -L -o 'Vagrantfile' http://bit.ly/1mE3Qt9 && vagrant up

    The root directory and how to run the php.index file is the pressing matter.

    I have now been stuck at this point in the course for three weeks

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.