Forum Replies Created

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

    (@oxynite)

    Solved already. Lets Encrypt didn’t move over w/ the restore, so https wasn’t working… just going to http://… got to WP dashboard.

    -Oxy.

    Thread Starter oxynite

    (@oxynite)

    Thanks for that additional info George! I’m working on it! 🙂

    Thread Starter oxynite

    (@oxynite)

    *******SOLUTION********

    So I figured it out:

    wp-config.php file:
    define( ‘DB_HOST’, ‘localhost’ );^M
    define( ‘WP_HOME’, ‘http://fredcolclough.com’ );^M
    define( ‘WP_SITEURL’, ‘http://fredcolclough.com’ );^M
    ^M

    Had to use the complete URL, not just “fc.com”.

    Same thing in the wp db:
    siteurl
    wp_home

    Crazy…I figured it was something simple. Thanks for the inputs Gents!

    -Oxy.

    Thread Starter oxynite

    (@oxynite)

    completely killed wordpress on server… & reintalled…

    Now I’m back where I was:
    localhost still brings up UBUNTU test pg
    localhost ON SERVER opens site correctly

    Using IP or domain on external system: (fredcolclough.com) redirects to 127.0.0.1 and “refused to connect.”

    I’ve been through the “Changing the Site URL” document three times, each time with the same result. I’m simply using these steps to install wordpress:

    cd /var/www/html
    wget -c http://ww.wp.xz.cn/latest.tar.gz
    tar -xzvf latest.tar.gz
    sudo rsync -av wordpress/* /var/www/html/
    sudo chown -R www-data:www-data /var/www/html/
    sudo chmod -R 755 /var/www/html/
    sudo mysql -u root -p
    mysql> CREATE DATABASE wordpress;
    mysql> GRANT ALL PRIVILEGES ON wordpress.* TO ‘your_username_here’@’wpuser’ IDENTIFIED BY ‘***’;
    mysql> FLUSH PRIVILEGES;
    mysql> EXIT;

    sudo mv wp-config-sample.php wp-config.php
    sudo vi wp-config.php
    **Set as:

    // ** MySQL settings - You can get this info from your web host ** //^M
    /** The name of the database for WordPress */^M
    define( 'DB_NAME', 'wordpress' );^M
    ^M
    /** MySQL database username */^M
    define( 'DB_USER', 'wpuser' );^M
    ^M
    /** MySQL database password */^M
    define( 'DB_PASSWORD', '**' );^M
    ^M
    /** MySQL hostname */^M
    define( 'DB_HOST', 'localhost' );^M


    That’s it. Simple. Thoughts? Thanks in advance!!

    -Oxy.

    Thread Starter oxynite

    (@oxynite)

    Now it’s worse than before… can’t get WordPress to come up at all, either at the root /localhost, nor at /localhost/wordpress

    I get this lovely error:
    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Thread Starter oxynite

    (@oxynite)

    Ross: thanks. I checked for that & didn’t find anything.

    Having trouble with a new install: it keeps going to /wordpress, and I get the 127.0.0.1 redirect as well.

    I’ve been through that document again George and I’m reasonably sure I hit everything, but no change. Grrrrr. I must be missing something.

    -Oxy.

    Thread Starter oxynite

    (@oxynite)

    If I need to do ALL of those things, I’m better off installing wordpress again, but this time getting it to the root /var/www/html (vs /var/www/html/wordpress).

    Do you know where I went awry? I followed the “Installing WordPress on Linux Mint 19” on idroot.

    Thanks.
    -Oxy.

    Thread Starter oxynite

    (@oxynite)

    Hello George,

    Thanks so much for the assist here!

    Apologies, but I read the beginning, skimmed the rest, and understood it to mean any ‘one’ of the fixes would do the trick.

    I’ll go through it again and see if I can hit them all.

    -Oxy.

    Thread Starter oxynite

    (@oxynite)

    Thanks for the quick reply!

    So I tried Option 1 Fix per the article you sent, which is:
    ———-
    Edit wp-config.php
    It is possible to set the site URL manually in the wp-config.php file.

    Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.

    define( ‘WP_HOME’, ‘http://fredcolclough.com’ );
    define( ‘WP_SITEURL’, ‘http://fredcolclough.com’ );`
    ———-
    and it FIXED the redirect, but NOT the broken site! See http://fredcolclough.com to see.

    Thanks
    -Oxy.

    Thread Starter oxynite

    (@oxynite)

    Sorry for the multiple posts…not sure you can see the forest thru the trees w/ all that config data.

    Bottom-iine here: http://localhost on linux box,
    Without changing DocumentRoot (stay at/var/www/html vs /var/www/html/worldpress
    —> localhost LOADS NOTHING
    —> localhost/wordpress DOES WORK WITH PERFECT FORMATTING!
    —> all external browsers do a redirect to 127.0.0.1 and get ‘cannot connect’

    So I try changing DocumentRoot to /var/www/html/wordpress
    —> YES: localhost now loads (with no subdir), BUT IT’s MISSING FORMATTING!

    So…trying to get both back! Needs to load full site at default dir, AND not have the 127.0.0.1 redirect)

    Thoughts?

    Thanks.
    –Oxy.

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