Jump to content
Kru-x

[Support] kru-x - wordpress

188 posts in this topic Last Reply

Recommended Posts

Hmm. Interesting. I went into advanced and changed the port but it did not route it properly. Still went to 8080. 

Share this post


Link to post
4 hours ago, dancue said:

Hmm. Interesting. I went into advanced and changed the port but it did not route it properly. Still went to 8080. 

Then it is that you installed WP on your local ip address first, it's WordPress that redirects to the same ip that it was installed on.

To explain what I believe is happening, during installation WP created an index.php page (the homepage) that have a an address of IP:8080 and saves that info in to the database. And even if you change the site's domain he will still redirect to domain:8080. That's why I always recommend installing from your domain first.

 

Kru-x

Share this post


Link to post
3 hours ago, Kru-x said:

Then it is that you installed WP on your local ip address first, it's WordPress that redirects to the same ip that it was installed on.

To explain what I believe is happening, during installation WP created an index.php page (the homepage) that have a an address of IP:8080 and saves that info in to the database. And even if you change the site's domain he will still redirect to domain:8080. That's why I always recommend installing from your domain first.

 

Kru-x

Ahh. What if I change it in the index.php file?

 

Share this post


Link to post

Just finally got around to setting this up. Was already running containers for MariaDB, phpmyadmin, and Letsencrypt(I switched from Traefik 2 to Letsencrypt using Spaceivader's guide when I moved to unraid).

 

For you other Letsencrypt people, here's the process. It was as simple as opening phpmyadmin and creating a new user "wordpress" and selecting to also automatically create a database with all privileges. Install the wordpress container, giving the database info I just created in phpmyadmin. For databse server info, I give it MariaDB's internal ip and port, and place the wordpress container on the Custom:proxynet, same as all of my containers. I also copy whatever internal IP MariaDB was assigned when I set it up, and tell MariaDB to use that as a fixed IP, so it doesn't change on me and break things. Then in the Letsencrypt/nginx "proxy-confs" folder, make the file wordpress.subdomain.conf, and fill it with:

 

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name mydomain.com; #change this to your domain or subdomain

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app wordpress;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

        proxy_max_temp_file_size 2048m;
    }
}

Then open the site and do the standard wordpress setup. You'll notice I use my primary domain without a subdomain and it works perfectly fine. Just make sure the Letsencrypt container is not set to "subdomains only = true". Also, it is VITAL that you clear your browser's cache, or wordpress may keep redirecting your front page, to a page not found. At least it did for me(kept sending my to mydomain.com/ui/dashboard). And that's it, everything should work fine.

 

Of course, I have not yet started messing with any of the more complex themes/plugins/addons I want to use. Hopefully they all work without issue.

Share this post


Link to post
20 hours ago, dancue said:

Ahh. What if I change it in the index.php file?

 

Wish it was that easy, 🙂

 

But all references to pages, post, comments etc. are saved into the Database (thats how WordPress do much of it's workings), thats why it is better to start from scratch or you have to find all those faulty references in the DB manually. As I have mentioned in previous posts, there is good programs (plugins) that will do this for you if you have a site already or is working in a development environment.

 

Kru-x   

Edited by Kru-x

Share this post


Link to post

Hi there

 

I have a fresh installation of wordpress docker. Everything is working inside mit network over http.

 

As soon as I try to get https access from outside via NginxProxyManager, it doesn't work. Even when I try over http.

 

Is there something to configurate in the config files from WP?

 

Thx

gregor

Share this post


Link to post
57 minutes ago, cracksilver said:

Hi there

 

I have a fresh installation of wordpress docker. Everything is working inside mit network over http.

 

As soon as I try to get https access from outside via NginxProxyManager, it doesn't work. Even when I try over http.

 

Is there something to configurate in the config files from WP?

 

Thx

gregor

Did you install WordPress from you domain or local?

Kru-x

Share this post


Link to post

I installed the wp-docker and connected it to a db on the maria-db docker.

 

In the LAN (i'm outside over VPN) i got Access via http://192.168.2.121:8080 to website and admin site.

 

In NginxProxyManager I made a subdomain wp.mydomain.com with ssl and forwarded to http://192.168.2.121:8080. Unfortunately I can't access.

 

That's all I did.

Share this post


Link to post
22 minutes ago, cracksilver said:

I installed the wp-docker and connected it to a db on the maria-db docker.

 

In the LAN (i'm outside over VPN) i got Access via http://192.168.2.121:8080 to website and admin site.

 

In NginxProxyManager I made a subdomain wp.mydomain.com with ssl and forwarded to http://192.168.2.121:8080. Unfortunately I can't access.

 

That's all I did.

I think it is becouse you did the WP installer on your internal address, always creates a lot of havocs.  Delete your folders and DB and start from the beginning, ones you have your domain up running then start the wp installer, 

 

Kru-x

Ps. read some of the threads earlier in this forum, its a common issue that many run in to.

Share this post


Link to post
31 minutes ago, Kru-x said:

ones you have your domain up running then start the wp installer,

Ahaa..... you mean over wp.mydomain.com?

 

Ok. I'll try... Thx

Share this post


Link to post

so I tested the blog a bit and everything runs well and smoothie.

The only part I get a server timeout 504 is when I try to print as pdf. There is a plugin for that. 

 

Can I change some settings somehow?

 

greg

Share this post


Link to post
19 minutes ago, cracksilver said:

so I tested the blog a bit and everything runs well and smoothie.

The only part I get a server timeout 504 is when I try to print as pdf. There is a plugin for that. 

 

Can I change some settings somehow?

 

greg

Hi Greg,

Glad to hear it is running well, a server time out is not really related to this setup and I'm not sure. Really can't help you, ask in a general WP forum, could be anything.

 

But to give you a starting point, you can increase the time b4 it times out both in wp-config and in NginX (NPM) but I am not sure why this would be needed. Maybe ask the plugin developer.

 

I use wkhtmltopdf to generate pdf's from HTML pages, but that is a lot off hassel and have to be built in to the WP docker container in this setup.

 

Sorry I can't be of more help,

Kru-x

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.