Jump to content

Kru-x

Community Developer
  • Posts

    242
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Kru-x

  1. On 12/27/2020 at 8:24 PM, tmryvz said:

    Thx a lot. Dont create mariadb database for wordpress and just leave db user blank when installing wordpress docker worked just fine for me. So I guess, wordpress is getting root access and creates database by itself?

    Correct! 

  2. 3 hours ago, Jack_T said:

    Can't figure what I miss...

    I got to do something with mongoDB docker, or just install?

     

    MongoDB:

    A.thumb.png.4b55e4e11640bcd98470d3cc695f71f3.png

     

    wekanteam \ WekanB.thumb.png.6f8e95375013b6d46aea6da5f790f894.png

    C.thumb.png.7c864d1860b77564af8b7ef13365380e.png

     

    Wekan LOG:

     

    can somebody help me?

    thanks!

     

    Sorry I answered a little bit too quick and now when I have read your post properly: I have seen several time that when people uses custom networks it fails, I would set it to bridged and remove the custom IP, next remove the link option and try. Ones you got it working then try with custom networks, but I think that is the problem.

     

    Kru-x

  3. On 12/27/2020 at 4:36 PM, rohram04 said:

    I am only trying to do it for one Domain Name. I previous configured the DDNS for this domain..then disabled it and deleted the DNS record associating it to my ip... and then reenabled it and that seems to be causing issues as it is not changing my DNS records anymore.

    Did you sort it out?

  4. 1 hour ago, IKWeb said:

    Hello All 

     

    Unless I am been totally stupid here - I have installed Wordpress - But in the WebGUI for it where you advise the datbase password etc - I cant see anywhere where I can set the database name - when I look at the config file - its getting a default database as WordPress - But I want to change this. 

    What am I missing? 

    If you are talkiing about the WP template,  just leave all settings referring to the DB blank, then you will be presented with WordPress installation where you can choose DB name and location. Delete the folders in between.

     

    Kru-x

  5. 6 hours ago, dancue said:

    So I should be editing in /var/www/html? I'm currently editing in Root/Appdata/my-site. I can't find /var/www/html. Let me try to download forklift. If you could answer this question that would help immensely. Thanks.

     

    On restart files are being copied from /var/www/html -> /root/appdata/my-site. You are saying that it is only copying files over if the names have been changed. I can verify that it is still copying the wp-config file. So my question is, I need to know where the /var/www/html location can be found so that I can edit those files instead. I think that will solve my issues. 

    Hi dancue,

     

    You need to read up a bit on how Docker works, then you will understand the setup better. You should not edit the files in the container as those files are changed every time you update or restart, the /var/www/html path is inside the container and has nothing to do with Forklift that is a ftp/ssh client that you can connect too Unraid with. You can use the Console (click on the WordPress icon) in Unraid to connect into the container, but much of the time you shouldn't need to, and changes there would definitely change during restart or update.

     

    You say "copying the wp-config file" but i guess you mean overwrite. It is odd and maybe ask in the general docker container forum (https://forums.unraid.net/forum/47-docker-containers/) why a file is being is overwritten it shouldn't be, I don't know and cant understand why it is.


    Sorry I can't give you an answer,


    Kru-x 

     

     

  6. 28 minutes ago, tmryvz said:

    Hi there,

     

    created a mariaDB wordpress database and a user with password. Than installed wordpress from CA. The docker started but the logfile tells me something like this:

     

    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.8. Set the 'ServerName' directive globally to suppress this message
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.8. Set the 'ServerName' directive globally to suppress this message
    [Thu Nov 26 22:16:34.096526 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.12 configured -- resuming normal operations
    [Thu Nov 26 22:16:34.096567 2020] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

     

    When I try to open WebUI, Chrome tells me: ERR_CONNECTION_REFUSED

     

    Can anybody help? Thanks guys..

    Wordpress is not connecting to the database, probably wrong settings for the DB. Look at the screen shot in this post. its more or less leave all settings blank, Wordpress wants to connect to the DB with root access to have full access, if you add a name and password you have to manually go in to the DB and adjust those.

     

    Kru-x

     

  7. 13 minutes ago, njdowdy said:

    Is there any trick to getting this to work with nginx proxy manager?

    EDIT: Nevermind. Solved. Nginx scheme needs to be http not https. Not sure why though. But nextcloud does that to me too. If I visit https://subdomain.mydomain.com it seems fine.

    I had to use the docker link fix with MONGO_URL earlier in the thread, which worked great (so mongo and wekan on same docker network as nginxproxymanager). I changed the ROOT_URL to https://subdomain.mydomain.com

    In nginx config I've got https://<unraid_ip>:5555 linked to subdomain.mydomain.com

    But I keep getting 502 bad gateway errors when I visit https://subdomain.mydomain.com

    Thanks!

    You worked it out, it needs to be http in NPM as it is pointing to the internal adress that is just that, not the external one.

     

    Glad you figured it out.

    Kru-x

    • Thanks 1
  8. 9 minutes ago, jowi said:

    Ok... this is getting silly. Now i've re-installed everything (including database) and now i can view the site from my domain, also the wp-admin, but NOT from my unraid machine... if i go to wp using unraid webui (so to my 192.168.xx.yy:port) it complains about ERR_SSL_PROTOCOL_ERROR, while SSL is NOT configured. I'm really starting to hate wordpress now.

    Take a deep breath, ;-) its a computer and you need to start think like one. 🙂 It do exactly what it should do, when it is on the domain, why would you need to reach it from you ip. First time when you installed it on your ip and a browser request a page, WP (the server returns) hey browser you can find the css at 192.blblabla/css, it cant because obviously its not there, you said some devices could and was probably due to that you where connected to your local network with it. A browser on a laptop have better security so it will complain it it see something weird as in this case. The same goes for the opposite. 
     

    It works as you said from your domain, then you are good!

     

    Kru-x

  9. 8 minutes ago, jowi said:

    On my local ip, and used nginx proxy manager to redirect my domain name to it.

    That’s probably your issues, its the redirects I’ve been talking about. WP stores most in the db, so if you installed it on your ip, it is trying to redirect to 198.168.1.1/yourpage. Easiest is to sort out you domain first and the start the installation from there. Read previous post in this thread, it explains it well.

    kru-x

  10. 1 hour ago, JamiePhonic said:

    i'm only updating a couple of specific sub domain A records for one of my domains so i can generate lets encypt certs for on site services (namley unifi so that guests dont get certificate warnings on the guest portal) while the website and email etc are hosted publicly on dedicated servers.

     

    I'm probably a bit of an edge case, but It wouldn't hurt to add the A record variable to the template with a default value of `@` in case others are in a similar position where they only want to update one specific sub domain record, or they have multiple domains.

    I think this was part of the problem i was having. I have more than one domain registered, but even providing the full domain name still gave me errors. It was only after i checked the documentation on your Repo and noticed the `A_Record` variable that i was able to get it working.

     

    Thanks again!

    No worries,

     

    Re the A record again, I will link to this post in the description. I run in to the problem myself that I have one domain not on my server an if I added the A name it updates all. You are right about the special case, there is so many setups so it is hard to cater all, but as long as someone has point it it out, people will figure it out by them self, (especially if they have the need for this container.)


    Have a good one,

    Kru-x

  11. 11 hours ago, JamiePhonic said:

    Hi there!

    First off, Thanks for this container. i've been trying to figure out an easy way to do this for a while!

     

    Second, i've noticed a flaw in the template.

    It seems like the template has the description for the `GODADDY_A_NAMES` variable assigned to the `GODADDY_DOMAINS` (`Domain Name`) variable, so entering just a comma seperated list of A records to update causes the script to fail with the same error that @broadcastthebadger (among others) got.

     

    I fixed this by adding the `GODADDY_A_NAMES` variable to the template and then filling in the info in the right places!

    Yea you are right, the description was wrong and I change it in the template.

     

    Didn't add the A name as it should not matter, the domain name is the A name in Godaddy and I don't know why you would need to use the A name instead of the GODADDY_DOMAINS as it do the same thing, changes the A name. But I am not a wizz and it might be something I don't know (guess it is a reason there is the option ), it works for me and I have several different Domain names on my server, all added as a comma separated list, so a little bit lost on that one.


    Glad you figured your setup out and thanks for pointing my mistake out,

     

    Kru-x

  12. 2 hours ago, jowi said:

    What do you mean with wrong redirects due to install? If i look in the wordpress dashboard/settings, the ip and port is the same as in the unraid docker settings (192.168.1.25:6262 in both cases).

     

    If i hover over the webui context menu however, unraid shows 192.168.1.25:8080 in the statusbar, which is my unify controller. But i never entered 8080 in wordpress anywhere during setup nor install, so this is probably wordpress's default port? And hidden somewhere in a settings file somewhere inside the wp container? In the database, site_url and home fields in wp_options are also both set to 192.168.1.25:6262.

     

    *edit*

    Solved :) i just had to edit the webui PORT setting from [IP]:[PORT:8080] to 6262 in the advanced mode of the container settings in unraid... this is what you suggested in the first place, but i did not know you could manually set this in the advanced mode... never noticed this :)

    Glad you solved it,

    Re redirects, people run in to the problem all the time, especially when they install on the local Ip address and want to switch to a domain or change port/ip. Previous post will tell the story, just think about it before you do too much changes and later on want to switch, easier to install it with the domain name or use a program to migrate the WP + DB.

    Kru-x

  13. 11 hours ago, jowi said:

    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.

    Hi Jowi,

     

    What is the link showing when you hover over WebUI in the context menu? It should say ip:port, eg what you have added to the WebUi in the template, your case probably http://192.168.1.100:6262 (if that is your internal IP). I suspect that you have wrong redirects in WP due to how you have installed it.

     

    Kru-x

  14. 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 

  15. 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

  16. 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.

    Screen Shot 2020-11-09 at 3.54.11 PM.png

    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

  17. 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

  18. 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

  19. 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

  20. 3 hours ago, destrugter said:

    Does this support wildcard subdomains?

     

    Edit:
    Sorry I just read over the previous posts and figured out how to do it. Thanks!

    Good that you figure it out, but for others that wonders:

     

    The docker periodically updates your A record at godaddy (DDNS for godaddy domains). You can create a a comma-separated list of the 'A' record names you'd like to update. For example: "home" or "@,anothername",

     

    Kru-x

  21. 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.

     

    1556726018_ScreenShot2020-10-29at5_02_24am.thumb.png.b71442390bf4d3ede787c54f03b7f22e.png

     

    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

    Screen Shot 2020-10-29 at 5.02.24 am.png

    • Thanks 1
  22. 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

     

  23. 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

×
×
  • Create New...