October 18, 20205 yr 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.
October 18, 20205 yr Author 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.
October 18, 20205 yr 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
October 19, 20205 yr 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
October 19, 20205 yr Author 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
October 26, 20205 yr Hello, I'm back. There have been a couple of docker updates to these Wordpress websites and it has been a headache to have to go into the wp-config file and update them with the proper database name. I realize that if I were to use a unique MariaDB for each wordpress docker I wouldn't have to rename the db, I could just leave it as the default name. Is there a way instead to not have the wp-config file replaced upon update of docker? If not, can you explain exactly what you do? Do you have a phpmyadmin, MariaDB and wordpress docker per website? Edit: Restarting a docker also resets the wp-config file. That's really annoying. Any possibility that you can add a wordpress database name field to the docker setup so that it can update it after each restart or update? Even easier... can it just not touch the wp-config file? Edited October 27, 20205 yr by dancue
October 28, 20205 yr Author On 10/27/2020 at 9:34 AM, dancue said: Hello, I'm back. There have been a couple of docker updates to these Wordpress websites and it has been a headache to have to go into the wp-config file and update them with the proper database name. I realize that if I were to use a unique MariaDB for each wordpress docker I wouldn't have to rename the db, I could just leave it as the default name. Is there a way instead to not have the wp-config file replaced upon update of docker? If not, can you explain exactly what you do? Do you have a phpmyadmin, MariaDB and wordpress docker per website? Edit: Restarting a docker also resets the wp-config file. That's really annoying. Any possibility that you can add a wordpress database name field to the docker setup so that it can update it after each restart or update? Even easier... can it just not touch the wp-config file? Welcome back, Not sure how you have set it up, but docker works as if a file is missing he will add it but if you have a file with the same name he wouldn't. Have you taken the wp-config.php file out of the root folder, or are you renaming it? So, It copies the files from /var/www/html in the docker container to /var/www/html/mnt/user/appdata/your_folder (that is the root of your site), on restart or update, if a file is missing he will add it but never replace it. Odd if he do! I name my WordPress container: my_site1-wordpress and I match it with the MariaDB continer like: my_site1-MariaDB, and so on. I have one database to each WP site. I leave the DB name to default "wordpress" in each MariaDB container. I rarely connect to the DB on my server, I only fiddle with it on my development (my laptop, mac) where I have exactly same setup with docker as on my server. Don't use phpmyadmin, I use TablePlus. I if I need to connect to my MariaDB container i just connect to it with ip:port when I am on my network or by vpn when I am away. Kru-x
October 28, 20205 yr 15 hours ago, Kru-x said: Welcome back, Not sure how you have set it up, but docker works as if a file is missing he will add it but if you have a file with the same name he wouldn't. Have you taken the wp-config.php file out of the root folder, or are you renaming it? So, It copies the files from /var/www/html in the docker container to /var/www/html/mnt/user/appdata/your_folder (that is the root of your site), on restart or update, if a file is missing he will add it but never replace it. Odd if he do! I name my WordPress container: my_site1-wordpress and I match it with the MariaDB continer like: my_site1-MariaDB, and so on. I have one database to each WP site. I leave the DB name to default "wordpress" in each MariaDB container. I rarely connect to the DB on my server, I only fiddle with it on my development (my laptop, mac) where I have exactly same setup with docker as on my server. Don't use phpmyadmin, I use TablePlus. I if I need to connect to my MariaDB container i just connect to it with ip:port when I am on my network or by vpn when I am away. Kru-x I'm not seeing either of those locations... /var/www/html and /var/www/html/mnt/user/appdata/your_folder how can I find them? I see Root/Appdata/Folder for each one of the dockers. I'm using Krusader to view these files. What docker are you using? No... I don't take the file out and it gets replaced with a new copy every time I restart the docker, restart the server or update the docker.
October 28, 20205 yr Author 8 minutes ago, dancue said: I'm not seeing either of those locations... /var/www/html and /var/www/html/mnt/user/appdata/your_folder how can I find them? I see Root/Appdata/Folder for each one of the dockers. I'm using Krusader to view these files. What docker are you using? No... I don't take the file out and it gets replaced with a new copy every time I restart the docker, restart the server or update the docker. Sorry it should have been /mnt/user/appdata/your_folder this is the path on your unraid server. Krusader probably mounts the user/ as root/ so it should be the same as yours. See the "/var/www/html", this is the path (folder) inside the container, and the "mnt/user/appdata/wordpress-temp" is the path (folder) on your server. What version of docker wont matter. So when you crank up a new container all files in "/var/www/html" (in this case all files in a new WP installation, the root of your site) gets copied to "mnt/user/appdata/wordpress-temp", after that on each update or restart of the container, all files in this folder should be persistent as docker wont copy and overwrite any files/folders with the same name. I tried Krusader ones but I didn't get it (i'm on mac and are using Forklift), how do you edit and save the wp-config.php file can you confirm in the terminal, if you go to the "mnt/user/appdata/your-site" (your case Root/Appdata/your-site) that the file is actually changed in there after edit. Looks to me that you are editing the file in the container, or that the storage is not persistent on your server but then the whole site would change so I am a little bit lost on that one. Kru-x
November 5, 20205 yr Alright - I've been at this for a few days and can't get it to work. This guy uses the site conf folder, and without the wordpress docker. Why would one opt to use the proxy conf over the site conf? Edit: While I'm here, I'm not sure I understand the value of opting to use wordpress in docker either. Can someone help me understand why that might be preferable? Edited November 5, 20205 yr by xagrr
November 5, 20205 yr Author 1 hour ago, xagrr said: Alright - I've been at this for a few days and can't get it to work. This guy uses the site conf folder, and without the wordpress docker. Why would one opt to use the proxy conf over the site conf? Edit: While I'm here, I'm not sure I understand the value of opting to use wordpress in docker either. Can someone help me understand why that might be preferable? First the WP docker container has nothing to do with the proxy, the proxy is only to point to the WP container. To use WP in a container us not really needed but it is an easy way to start one up and toss it when you are done. All is preconfigured in the container and done by people that knows what they are doing, I'm not one of them 🙂 Kru-x
November 6, 20205 yr On 10/28/2020 at 3:33 PM, Kru-x said: Sorry it should have been /mnt/user/appdata/your_folder this is the path on your unraid server. Krusader probably mounts the user/ as root/ so it should be the same as yours. See the "/var/www/html", this is the path (folder) inside the container, and the "mnt/user/appdata/wordpress-temp" is the path (folder) on your server. What version of docker wont matter. So when you crank up a new container all files in "/var/www/html" (in this case all files in a new WP installation, the root of your site) gets copied to "mnt/user/appdata/wordpress-temp", after that on each update or restart of the container, all files in this folder should be persistent as docker wont copy and overwrite any files/folders with the same name. I tried Krusader ones but I didn't get it (i'm on mac and are using Forklift), how do you edit and save the wp-config.php file can you confirm in the terminal, if you go to the "mnt/user/appdata/your-site" (your case Root/Appdata/your-site) that the file is actually changed in there after edit. Looks to me that you are editing the file in the container, or that the storage is not persistent on your server but then the whole site would change so I am a little bit lost on that one. Kru-x Thanks
November 9, 20205 yr Hello, I recently moved my Unraid IP and unfortunately it affected my Wordpress. It's slow to load and then the assets are broken. I tried to update the IP references, but it's still not properly loading. Any suggestions? Thanks in advance.
November 9, 20205 yr Author 8 hours ago, damnshaneisthatu said: Hello, I recently moved my Unraid IP and unfortunately it affected my Wordpress. It's slow to load and then the assets are broken. I tried to update the IP references, but it's still not properly loading. Any suggestions? Thanks in advance. Have you tried to update the permalink option in wp settings? Kru-x
November 9, 20205 yr 6 hours ago, Kru-x said: Have you tried to update the permalink option in wp settings? Kru-x I'm actually having trouble accessing my admin login page. None of the usual suspects work eg. /admin, /login, /wp-login.php.
November 9, 20205 yr Author 4 hours ago, damnshaneisthatu said: I'm actually having trouble accessing my admin login page. None of the usual suspects work eg. /admin, /login, /wp-login.php. So how have you had it setup? Are you only using the container locally? Or are you using a domain name? What is working if the above wont? You said "moved" IP, a change of Ip should not affect the container if you are using it with a domain
November 9, 20205 yr 2 hours ago, Kru-x said: So how have you had it setup? Are you only using the container locally? Or are you using a domain name? What is working if the above wont? You said "moved" IP, a change of Ip should not affect the container if you are using it with a domain Installed it using the container locally, not a domain name. I can get to the main page and individual posts and /wp-login.php. But when I try logging into the admin dashboard, it is still referencing my old IP.
November 9, 20205 yr Author 17 minutes ago, damnshaneisthatu said: Installed it using the container locally, not a domain name. I can get to the main page and individual posts and /wp-login.php. But when I try logging into the admin dashboard, it is still referencing my old IP. If you dont have much changes I suggest redo it with a domain name, if you have made a lot of changes you need to try something like this: https://wordpress.org/support/topic/unable-to-log-in-after-ip-address-change/ Have you got access to the DB? Kru-x
November 9, 20205 yr 52 minutes ago, Kru-x said: If you dont have much changes I suggest redo it with a domain name, if you have made a lot of changes you need to try something like this: https://wordpress.org/support/topic/unable-to-log-in-after-ip-address-change/ Have you got access to the DB? Kru-x I do have access to the DB
November 16, 20205 yr Did not work at all for me, the webgui button in the docker page in unraid took me to a totally different container... it took me a while to find out that if i entered the actual configured wordpress ip:port manually in my browser, it finally started wordpress and i could walk through the install... so it looks like the webgui button is broken in this container? It looks like it does not use the configured ip:port from the settings. Edited November 17, 20205 yr by jowi
November 17, 20205 yr This wordpress docker supports one website? Is that correct? What if i want to create and host a couple of wordpress based sites, do i need a separate docker installed and set up for each one? Edited November 17, 20205 yr by jowi
November 18, 20205 yr Author On 11/17/2020 at 9:16 AM, jowi said: Did not work at all for me, the webgui button in the docker page in unraid took me to a totally different container... it took me a while to find out that if i entered the actual configured wordpress ip:port manually in my browser, it finally started wordpress and i could walk through the install... so it looks like the webgui button is broken in this container? It looks like it does not use the configured ip:port from the settings. Hi Jowi, You are right, you have to change port number in WebUi settings if you change the default port. Krux
November 18, 20205 yr Author 13 hours ago, jowi said: This wordpress docker supports one website? Is that correct? What if i want to create and host a couple of wordpress based sites, do i need a separate docker installed and set up for each one? Hi again, Both yes and no 🙂, you could potentially use WordPress multi site future, but that is more for specialised cases. Easiest way is to have one Wp container paired with is MariDB for each site. Kru-x
November 18, 20205 yr 12 minutes ago, Kru-x said: Hi Jowi, You are right, you have to change port number in WebUi settings if you change the default port. Krux Doesn’t work. I’ve set my port to 6262 in the docker settings, but the webui CONTEXT menu in the unraid docker page, the context menu where you can start and stop the container etc, ignores it and opens a totally different port, in my case the port where my ubiquity unify controller is located.
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.