• I′m Trying to install a Network of blogs. I follow step by step the instructions in (https://codex.www.ads-software.com/Create_A_Network), but when I create the .htaccess file (did not exist before) and copy the code, the WordPress stop runing. The Welcome page appears broken and all links fails to work.

    I′m using the TurnKey virtual appliance in my own local server.

    Any idea? Thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Sounds like the mod_rewrite feature isn’t turned on at your server.

    Thread Starter raulrapadura

    (@raulrapadura)

    Thanks.

    The mod_rewrite is enable. I try to re-activate with (a2enmod rewrite && sudo invoke-rc.d apache2 restart)

    And the system resolv is (This module is already enabled!
    * Restarting web server apache2)

    But I post an error. The system not fail when I create the .htacces, the systems fails when I modify the wp-config.php to add:

    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, false );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘172.26.0.5’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );

    If I remove this lines, the WordPress back to work.

    Thank again. More ideas?

    Thread Starter raulrapadura

    (@raulrapadura)

    Resolved that part.

    The problem was that I was adding this lines at the top of the wp-config, moving it to the bottom and works.

    Bu I can′t see the superadmin panel after re-login.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Make sure you put it ABOVE the line that says ‘Stop editing here’ Eh?

    Thread Starter raulrapadura

    (@raulrapadura)

    I′m reading that in all faqs and forums, but my wp-config have not this line. I put the code just following the las line:

    <?php
    define(‘DB_NAME’, ‘edited’);
    define(‘DB_USER’, ‘edted’);
    define(‘DB_PASSWORD’, ‘edited’);
    define(‘DB_HOST’, ‘localhost’);
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    define(‘AUTH_KEY’, ‘7c1e1281888f43dd69a4646e4a642107ba9af1de568a8195d4eb2bae28feeb13’);
    define(‘AUTH_KEY’, ‘7c1e1281888f43dd69a4646e4a642107ba9af1de568a8195d4eb2bae28feeb13’);
    define(‘LOGGED_IN_KEY’, ’82b3c11c01ad5bd0614f28b5419f9aa4b08b49c94490feb5de97371d30c18884′);
    define(‘NONCE_KEY’, ‘5a5da99689b4568d496cc9e1d9097667d16a4cd9c4029d6ceb11d89714108d41’);

    $table_prefix = ‘wp_’;

    define(‘WP_SITEURL’, ‘https://&#8217;.$_SERVER[‘HTTP_HOST’]);
    define(‘WP_HOME’, ‘https://&#8217;.$_SERVER[‘HTTP_HOST’]);

    // WordPress Localized Language, defaults to English.
    define (‘WPLANG’, ”);

    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    require_once(ABSPATH . ‘wp-settings.php’);
    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, false );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘172.26.0.5’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );

    This is all my wp-config. The “Stop editing here” does not appear anywhere.

    Can you see something wrong?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    First and foremost, For the love of pizza and beer, don’t post your passwords anywhere! This bit define('DB_PASSWORD', 'f4842a5cc90b8921a51c6d59218c397b'); must be changed ASAFP! Someone can easily use this to hack your database! Change your password for the database and then update the config file right away. Before you go to the bathroom right away.

    Secondly? NEVER post those AUTH_KEY things. Ever. You should get new ones from here: https://api.www.ads-software.com/secret-key/1.1/ Seriously, this is a big deal ??

    Okay. That’s out of the way.

    Delete this section:

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

    Then add this to the VERY bottom:

    /* 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');

    Thread Starter raulrapadura

    (@raulrapadura)

    Oooops!! Sorry. This is a test installation, I usually change all pass when all the work is finished and ready for publishing, but I forgot the AUTH_KEY. Sorry again.

    I did the changes, but nothing happens, superadmin is still missing.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Oh, phew! ?? I was terrified for a moment there.

    On a secnod look, you’re also missing a line. Per this I don’t see this line:

    define('WP_ALLOW_MULTISITE', true);

    Change your wp-config to this:

    <?php
    define('DB_NAME', 'wordpress');
    define('DB_USER', 'wordpress');
    define('DB_PASSWORD', 'BLAHBLAH');
    define('DB_HOST', 'localhost');
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
    
    define('AUTH_KEY', 'BLAHBLAH');
    define('AUTH_KEY', 'BLAHBLAH');
    define('LOGGED_IN_KEY', 'BLAHBLAH');
    define('NONCE_KEY', 'BLAHBLAH');
    
    $table_prefix = 'wp_';
    
    define('WP_SITEURL', 'https://'.$_SERVER['HTTP_HOST']);
    define('WP_HOME', 'https://'.$_SERVER['HTTP_HOST']);
    
    define('WP_ALLOW_MULTISITE', true);
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', '172.26.0.5' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    
    // WordPress Localized Language, defaults to English.
    define ('WPLANG', '');
    
    /* 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');

    I’ve re-ordered everything below $table_prefix = 'wp_'; so you can just replace that bottom section. I missed one line that should be at the bottom, and you were missing another. It looks like you stripped out a lot of comments from that file, which I understand doing, but I’d leave ’em in since they can be useful ??

    Thread Starter raulrapadura

    (@raulrapadura)

    With your wp-config, now back to the first fail, the stile of the Welcome page is broken, and the links like “login” redirects to https://127.0.0.1 instead of my ip server 172.26.0.5

    I′ll do some change in the order to test.

    I do not stripped out nothing, the file come as you see. I supose that is because I′am using the TurnKey virtual appliance whith the WordPress Preinstalled and they stripped out all those comments.

    Thanks a lot for all your help. If you have some other idea, I will be happy to try it!!

    Please follow the actual instructions to enable the network. I’m 99% certain you did not go through the Network install screen. That will create the table3s and actually *use* the information you pasted in the config file.

    https://codex.www.ads-software.com/Create_A_Network

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I bet I’m psychic…

    define('WP_SITEURL', 'https://'.$_SERVER['HTTP_HOST']);
    define('WP_HOME', 'https://'.$_SERVER['HTTP_HOST']);

    I bet if you hardcode https://172.26.0.5 it’ll be okay.

    You may not have stripped anything out, but if a pre-installation of WP does, I would find whoever designed it and beat them senseless. We LIKE comments in files! ??

    Thread Starter raulrapadura

    (@raulrapadura)

    To Andrea: As I said in the first post, I′m following the instructions step by step, the Network installations included. I has tried to follow the instructions a billion times before decided to post here!! ??

    ipstenu: Sorry, but you lost the bet!! ?? ??

    Hardcoding the ip does not work, the welcome screen appears correct, and can login, but then the wordpress give me an internal server error. Probably, the ip is also somewhere in the database. But touch by hand the database is too much for me!!

    Many thanks for your help.

    Thread Starter raulrapadura

    (@raulrapadura)

    Resolved!!

    Searching the Web I have found the solution. I follow up the manual step by step. As allways, in the last step the Welcome page is broken and redirects to 127.0.0.1, then you must go to the database and edit siteurl and home and change the values 127.0.0.1 with your ip…and thats all folks!! Superadmin!!

    No need to change the wp-config nor .htacces

    Again, thanks for all your help.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Just so you know, the lines in the wp-config are supposed to OVERRIDE the database.

    This may be something particular to VmWare, but I’ve installed WordPress on VMWare servers before without any hoops.

    Thread Starter raulrapadura

    (@raulrapadura)

    Yes, I have installed in VmWare before, but not using a virtual appliance. I have installed the OS, XAMMP and then the WordPress, and all works fine!!

    Well, now I have other big problem. I need to change the site url from the ip to blogs.blablabla.com

    Lets go!!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘.htaccess error VmWare Infraestructure’ is closed to new replies.