Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter jarif

    (@jarif)

    closing this.

    Thread Starter jarif

    (@jarif)

    Actually it works now! 🙂

    From your last post I got the idea of dropping the apache back end all tohether and using just the nginx. Reconfigured, dropped the database, and did the setup w/o custom wp-config.php.

    Runs! Fine. Sorry for the hassle, I’m a happy camper now!

    Thread Starter jarif

    (@jarif)

    I get it just after an install ends. I go to the page, I see a Hello page and I am logged it after I entered the credentials. When I click the Admin link in the right panel, I end up to white page with this message in a box.

    I have set the debug on with

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    
    /**
     * Proxy settings.
     */
    
    /** 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');
    
    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        $_SERVER['HTTPS']='on';
    
    if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
        $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_X_FORWARDED_FOR"];
    }
    
    /* That's all, stop editing! Happy blogging. */

    That’s it.

    Thread Starter jarif

    (@jarif)

    So? How can I activate some kind of a debug so that I can continue with this? I see no debug anywhere, while I set it up and the front page loads and all works except the admin login.

    Thread Starter jarif

    (@jarif)

    Wow, great! Thanks.

    Thread Starter jarif

    (@jarif)

    Apparently I am logged in, as the other pages seem to work fine, and show as logged in.

    This is a multisite system. Do I need to assign myself somehow as global site admin or how?

    I set the multitenancy by hand into wp-config.php but that’s all.

    Thread Starter jarif

    (@jarif)

    I had none problems with drupal, it is up and running at https://www.bitwell.biz/

    My architecture:

    front: nginx : https
    back: apache
    drupal
    back: apache
    wordpress

    All transfer in out of the box is encrypted either with ssl, tls or ssh. apache can not modify files in disk without pre-executed setup-init -script, which allows it. So, no update of .php or anything w/o root concent.

    Thread Starter jarif

    (@jarif)

    They will be owned by root in the end. It does not matter who owns them now as well wp can access them. I have no ftp and ftp-account would be unneeded.

    I’m a security expert, not a wp expert (yet). My project now is to create a secure wp installation and later hosting.

    But now I’m stuck with this wp and it’s catch all error message and no logs whatsoever.

    Thread Starter jarif

    (@jarif)

    [jarif@www ~]$ sudo ls -lah /var/www/html/
    yhteensä 192K
    drwxr-xr-x  5 nobody  65534 4,0K  7.6. 19:02 .
    drwxr-xr-x  4 root   root   4,0K  7.6. 04:45 ..
    -rw-r--r--  1 apache apache  418 25.9.2013 index.php
    -rw-r--r--  1 apache apache  20K  5.3. 22:14 license.txt
    -rw-r--r--  1 apache apache 7,2K 26.4. 23:25 readme.html
    -rw-r--r--  1 apache apache 5,0K 28.1. 05:35 wp-activate.php
    drwxr-xr-x  9 apache apache 4,0K  7.6. 08:41 wp-admin
    -rw-r--r--  1 apache apache  364 19.12. 13:20 wp-blog-header.php
    -rw-r--r--  1 apache apache 1,5K 30.1. 23:56 wp-comments-post.php
    -rw-r--r--  1 root   root   3,6K  7.6. 19:24 wp-config.php
    -rw-r--r--  1 apache apache 2,8K 16.12. 11:58 wp-config-sample.php
    drwxr-xr-x  7 apache apache 4,0K  7.6. 09:22 wp-content
    -rw-r--r--  1 apache apache 3,3K 24.5.2015 wp-cron.php
    drwxr-xr-x 16 apache apache  12K  6.5. 21:33 wp-includes
    -rw-r--r--  1 apache apache 2,4K 25.10.2013 wp-links-opml.php
    -rw-r--r--  1 apache apache 3,3K  6.11.2015 wp-load.php
    -rw-r--r--  1 apache apache  34K  6.3. 05:06 wp-login.php
    -rw-r--r--  1 apache apache 7,8K  6.10.2015 wp-mail.php
    -rw-r--r--  1 apache apache  13K 18.2. 00:58 wp-settings.php
    -rw-r--r--  1 apache apache  28K 28.1. 05:51 wp-signup.php
    -rw-r--r--  1 apache apache 4,0K 30.11.2014 wp-trackback.php
    -rw-r--r--  1 apache apache 3,0K  3.10.2015 xmlrpc.php

    yes they are. apache owns the files as of now, but going to donate most to root later, I guess.

    Thread Starter jarif

    (@jarif)

    Yes the script was twice in the paste to this forum, I’m sorry about that.

    yes, it happens.

Viewing 10 replies - 1 through 10 (of 10 total)