• Resolved werewolve

    (@werewolve)


    I wil explain my problem.

    My site is hosted at hourb.com

    My website is a classified website and my goal is to create multisite network .I want to give my users the ability to have their own webshop in a subdomain.

    I folowed all the steps to create multisite.
    config.php and ht.acces file is ready.
    my network is installed
    i was able to create net site and user (subdomain.
    but i could not go to the admin sectoin of the subdomain

    this apears:

    Parse error: syntax error, unexpected ‘=’ in /home/u645014264/public_html/demoshop/wp-load.php on line 41
    i saw manny videos on youtube

    can please somebody help me??

Viewing 10 replies - 1 through 10 (of 10 total)
  • Using subdomains can be tricky, it will depend on your hosting configurations and your .htaccess.

    When I worked on a similar project, I had to create subdomains in the hosting control panel and specify their location as my WP root installation location which is the root. I am hosting with GoDaddy.

    Lets see your .htaccess.

    Thread Starter werewolve

    (@werewolve)

    #begin wordpress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    #end wordpress
    Thread Starter werewolve

    (@werewolve)

    i created already subdomains in my control panel its just not working.
    yesterday i made a new one like trial.adpopper.tk but when i click on dashboard google shortlinks comes up.
    and when i just visit the subdomain its just index that apears.

    i tried to contact my host http://www.hourb.com to ask if they suport wildcard but i cant contact them

    Thread Starter werewolve

    (@werewolve)

    this is the confi.php file:

    <?php
    /**
     * The base configurations of the WordPress.
     *
     * This file has the following configurations: MySQL settings, Table Prefix,
     * Secret Keys, WordPress Language, and ABSPATH. You can find more information
     * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
     * wp-config.php} Codex page. You can get the MySQL settings from your web host.
     *
     * This file is used by the wp-config.php creation script during the
     * installation. You don't have to use the web site, you can just copy this file
     * to "wp-config.php" and fill in the values.
     *
     * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    
    <em>[moderated]</em>
    
    define('WP_DEBUG', false);
    /* Multisite */
    	define('MULTISITE', true);
    define( 'WP_ALLOW_MULTISITE', true );
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'adpopper.tk');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    First, you shouldnt have posted the whole of your wp-config.php as it contains alot of sensitive items that shouldnt be visible to the world.

    Second, When you were creating the subdomains, were you setting the folder as the name of the subdomain or You are using /? I found the use of / as you subdomain folder to work.

    Third, below is a .htaccess form a similar multisite submain project that is working…

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    First, you shouldnt have posted the whole of your wp-config.php as it contains alot of sensitive items that shouldnt be visible to the world.

    Oh my, yes, that’s no good to post all that info on a very public forum – which has by now been long indexed by search engines! I’ve removed it, but it’s been up for 21 hours, so please change all that access info ASAP.

    Thread Starter werewolve

    (@werewolve)

    Yes ,i after i clicked on post i realised i shouldt copied the who file.
    but its the first time i work with such things as files and multisite .
    i changed my msql database password.

    no i could not set a folder for the subdomain.I see i cant post an image of my control panel but i can just create a subdomain and thats all.

    so you think the subdomain works fine?

    do it needs wordpress installed? even if multisite is enabled?

    like i said i created a new subdomain trial.adpopper.tk /home/u645014264/public_html/trial this is the folder name but i can’t change the folder name. and when i click on that subdomain .A text apears
    index and when i login to my dashboard ‘multisite google shortlink apears when i click on trial.adpopper.tk.

    i discoverd with other hostingproviders who have softaculous installer
    you can just install wordpress in a subdomain .But i do not know if its possible with multisite.

    sorry for my bad english I from belgium

    like i said i created a new subdomain trial.adpopper.tk /home/u645014264/public_html/trial this is the folder name but i can’t change the folder name.

    I understand your english … no problem at all. I believe your main wordpress is installed at /home/u645014264/public_html/, based on my own experience with a previous multisite setup, all your subdomain should have same thing /home/u645014264/public_html/

    I have tested your hosting provider and discovered they wont allow you to edit your subdomain path. I will suggest you use a better hosting that will allow you better options and flexibility. Or you can simply use the folder option for your multisite instead of subdomain. This is because your DNS entry for the subdomain must point to where the main wordpress is hosted for the .htaccess directives to work

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Sadly, abuango nailed it.

    If you CANNOT chaneg where your subdomains point, you cannot use Multisite Subdomains 🙁

    Thread Starter werewolve

    (@werewolve)

    ok thankyou for al the good information.
    today i signd up on several hosting sites and i will test them

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘multisite problems subdomains not working’ is closed to new replies.