Jump to content

Kru-x

Community Developer
  • Posts

    242
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Kru-x

  1. 4 minutes ago, Nexius2 said:

    internal DNS to point wordpress.domain.com to 192.168.1.80 ;-)

    it allows me to always use the full web adress and not the IP. I do this for all my apps.

     

     

    if I delete both folder, I can reach WP (after creation a new db) via 192.168.1.80:8080

    but I can't reach anything from wordpress.domain.com... blank page

     

    NPM conf is ok since I can access Guacamole and Tautulli without issue on other sudomains.

    something is wrong on WP part, but I can't understand what

    You are far more advance than me ;-)

     

    Don't think it is WP, you should be able to reach the install even without the DB has nothing to do with it until you install WP. I know people have had problem with cache, try to connect in "private mode". Reinstall and when you can reach the install with your IP, don't do anything just try to connect to it online from your domain, then install.

     

    Sorry don't understand the internal DNS thing so I don't know if that could be in the way,

     

    Kru-x

  2. 5 minutes ago, Nexius2 said:

    redirection to internal IP. it works for another apps so it should be the good methode.

     

    on my lan, if I type wordpress.mydomain.com:8080 I go to my wordpress

    if I try wordpress.domain.com via internet(other computer, other network, other building) I get a blank page

     

     

     

     

    npm.JPG

    Looks right, first try to empty your cache in your browser. Still not sure how you can reach your domain on your local network eg "wordpress.mydomain.com:8080" should not work , but 192.168.1.80:8080 should work.

     

    Try to delete both folders again especially the DB, then see if you can reach the WordPress install by your local IP (don't install anything from your local IP), then try to reach the WP installer from your domain and install from there if it works. Holing my thumbs. 🙂

     

    Kru-x

  3. 10 minutes ago, Nexius2 said:

    Hello, swag is nginx, but no prob, I just tried with NPM.

    domain works, connections from outside to my apps work (subdomains and domain)

    wordpress works with wordpress.mydomain.com in local (not via internet)

    deleted Mariadb and wordpress to redo install using wordpress.mydomain.com (local because not reachable via internet)

     

    I don't understand where is the problem.

    looks like I'm missing something special in nginx

     

    when I try wordpress.domain.com I have a blank page saying nothing found but when I look at the adress it displays https://wordpress.domain.com:8080 so it looks like nginx is working but wordpress not displaying the page....

    How did you redirect in NPM, should be to your internal address eg. 192.168.1.100:8080. Looks like you it asks for the domain:port, shouldn't do that.

     

    You shouldn't need to have any special settings for nginx, NPM takes care of it.

     

    I don't understand your "wordpress works with wordpress.mydomain.com in local (not via internet)"?

     

    Kru-x

  4. 16 hours ago, Nexius2 said:

    Hello,

    I need some help.

    I would like to have wordpress through internet.

    to do that, I'd like to use swag because I already have it working with guacamole for some access.

    my wordpress works without probleme localy.

    I've made the proxy-conf file and the DNS redirection.

    I guess the redirection works because when I type my subdomain adress I see https://mysudomain.domain.com:8080

    but nothing is accessible. it doesn't reach wordpress.

     

    wordpress conf seems ok and here is my proxy-conf file:

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

        server_name plexhelp.*;

        include /config/nginx/ssl.conf;

        client_max_body_size 0;

        # enable for ldap auth, fill in ldap details in ldap.conf
        #include /config/nginx/ldap.conf;

        # enable for Authelia
        #include /config/nginx/authelia-server.conf;

        location / {
            # enable the next two lines for http auth
            #auth_basic "Restricted";
            #auth_basic_user_file /config/nginx/.htpasswd;

            # enable the next two lines for ldap auth
            #auth_request /auth;
            #error_page 401 =200 /ldaplogin;

            # enable for Authelia
            #include /config/nginx/authelia-location.conf;

            include /config/nginx/proxy.conf;
            include /config/nginx/resolver.conf;
            set $upstream_app WordPress;
            set $upstream_port 8080;
            set $upstream_proto http;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port;

            proxy_buffering off;
        }
    }

     

    wordpress.JPG

    Hi Nexius2,

     

    Shouldn't be any bigger problem to get you online, but I cant really help with Swag as I have never used it myself nor am I good at setting up Nginx (proxy).

     

    Instead I use NPM (NginxProxyManager), makes life much easier and you should also be able to use it for anything else you would like to reach from online like guacamole.

     

    There is posts in this thread mentioning setting up WP with NPM, but the most important is to get it to work with your domain first and then install Wordpress

     

    Kru-x

  5. 10 hours ago, IKWeb said:

     

    Basically I cant get the installer to work over HTTPS so I have to do it over HTTP then when I Switch it after it breaks the WP install. 

     

    Once I install the container if I go to https://IPADDRESS:PORT the installer doesnt come up - but if I go to HTTP://IPADDRESS:PORT the installer works. 

     

     

    Hang on, why do you say "https://IPADDRESS:PORT"? That is not right, should be your domain, you can't have https on the local IP address.

  6. 10 hours ago, IKWeb said:

     

    Basically I cant get the installer to work over HTTPS so I have to do it over HTTP then when I Switch it after it breaks the WP install. 

     

    Once I install the container if I go to https://IPADDRESS:PORT the installer doesnt come up - but if I go to HTTP://IPADDRESS:PORT the installer works. 

     

     

    Check the settings in NPM, have you got "http" selected in Scheme,

     

    It must be a setting, it should make no different installing WP.

     

    Kru-x

  7. 5 hours ago, IKWeb said:

    Hello All 

    I am after some help, as what ever I do ends up bricking my WP install and I end up removing it all and then having to start again. 

     

    So I have NPM setup to forward to the IP and port I am using for the WP Docker, and to force SSL - Same settings as I would use for say NextClould. 

    When I install WP I have to do it via the dockers IP over port 80, when I try and run the installer over HTTPS it errors. So when the install is done I end up with a wordpress site running but via port 80, and when I try and do https://IPADDRESS:PORT it fails. 

    So I go back to http and login to WP. 

    image.thumb.png.1172cf417773747f62240e57026f5047.png

     

    When I look to change any of these 2 URLS to either https://IPADDRESS:PORT or just IPADDRESS or even the external URL it just breaks the system. 

    How the heck do I setup the external URL within WP, and switch it over to SSL so NPM can forward the traffic and work like NextCloud does... 

    I am at a total loss. 

    Thank you for anyone who can help / advise. 

     

    Hi IKWEB,

     

    Im not sure if I follow exactly what you are doing, or trying to do, but try this. First delete both the Wordpress folder and the database folder in unraid (to remove eventual old values, from previous installs). Then reinstall both, then make sure you can reach the Wordpress installation on your Domain, going through NPM, and start the install from there and set up your db etc. then it should work. After install you can not reach the WP install from your local ip address,

     

    hope it helps,

    kru-x

  8. 10 hours ago, bonistir said:

    Thank you for reply me Kru-x,

     

    I made the backups with updraft wp plugin from my VPS WP installation. This plugin perform a database backup (i restored this backup into unraid mysql container without problems) and perform a backup of files and folders (mainly the content of wp-content folder of my VPS installation) so I need to restore this files in the folder wp-content of the wp installation unraid container.

     

    When I try to restore this files in wp-content I have not permissions to write in wp-content folder.

     

    Thank you for your help and best regards

     

    Sorry I don't know updraft and can't really tell, you should be able to write in too the folder. Try to sett a different permission on the folder itself. Else as I said try Duplicator, it works great and takes care of any permission issues, at least for me.

     

    Kru-x

  9. 15 hours ago, bonistir said:

    Hi,

     

    I would like to know how Incan restore an exisiting backup in this container. When I tried to copy files in appdata folder of my wordpress installation it is impossible (i tried to copy from krusader with root permissions too and it was impossible)

     

    How can I set write permissions in the app data wordpress for restore an external backup in this container?

     

    Thank you and best regards

    Hi Bonistir,

     

    How was the back-up made and what have you backed up? Only the folders? Most of the settings and data is stored in the DB itself.

     

    Do you have a site that you can take a new backup from? If, I suggest using "Duplicator PRO" (a WP plugin), it will clone the whole site + DB and handle all the permissions. Also I use on my unraid "duplicati" docker container to back up the folders both for WP and DB. Though, If it is a heavy site with a lot of traffic you should take a DB snapshot and back up that instead of the DB folder.

     

    Only copy and past the folder is going to get you in a heap of problems.

     

    Kru-x

  10. 2 minutes ago, matthew42904 said:

    i found the issue. i was hosting it but now my friend cant connect to it. all it dose was load and never connects

    Need to know how you have set it up, are you on a domain? Is it on local server? How did you install it? on the local or the domain? The problem with WP (or not really a problem) is that WP stores the information in the DB so if you installed it on the local server all pages is going try to redirect to 192.168.1.100:8081. So if you have a domain install WP after you have setup the domain and got it working.

     

    Kru-X

  11. 7 minutes ago, matthew42904 said:

    im sorry if you have said this before but how do i change the port to something other then 80? i have been trying for the past 4 hours and cant find it. is there a way to tell it to change the port from the unraid gui?

    Hi matthew42904,

    What do you mean by 80? is that What it redirects you to when you click the Icon in Unraid? What happens if you try to add http://yourip:port the browser search bar? Eg http://192/168.1.100:8081

     

    Kru-X

  12. On 4/24/2021 at 10:25 PM, jowi said:

    Not what i was looking for but i found a tutorial in the french section that had the info i needed: 

     

    Thanks' for that Jowi, good tutorial and even if you don't understand French (as me) it shows the settings.

    Kru-X

    • Like 1
  13. On 4/21/2021 at 6:14 AM, Fonso_s said:

    I'm using CA Cleanup Appdata to clean everything between tries.

    I've tried creating a password in the mariadb docker and setting the root user with the password and it didn't change anything.

    image.thumb.png.3d0487a015f38cb23174443992a3c24f.pngimage.thumb.png.ceabe3af9f1722bbe7fc9bb1e60190ea.png

     

    Thanks for all your help, I'm goin to  try using portainer to get this running.

    Thanks for your time.

    Hi Fonso_s,


    Did you ever get it up and running?  I just today realized that the WordPress container has change and now wont create the DB as I told you. You where on the right track and I have now added the WORDPRESS_DB_NAME to the template. Sorry for all the headaches.

     

    Kru-X 

  14. 26 minutes ago, Fonso_s said:

    Hi


    Sorry for my incompetence.

     

    I'll describe what I've done but I still have the DB Error.

    I've instaled a new mariadb instance, an left it like this:

     image.thumb.png.30696f7798e18fecad8a9e198ec0c56e.png

     

    After that, I configured I tried to methods, first I mounted a new WP docker but it didn't worked.
    I cleaned all up and Installed again the mariadb, entered through console and create a new wordpress database, here you can see the TablePlus info:

     image.png.d37e52f213d025924c552560493548fc.png 

    After that I created again another WP docker like this: image.thumb.png.a29818454cc1069e7ec4f6bbfafbb8a1.png


    As I said, I still have the "Error establishing a database connection".

    Here it is the resume form the Docker panel:

    image.thumb.png.a509e8d75f96f0331e020a293c12e128.png

    I've read this thread several times, but I still can't figure out what I am doing wrong.
    Thanks for your help.

    It looks right what you have done, did you delete the WP folder in between since you try to install the first time. IMPORTANT

     

    It was av while since I did it , but you shouldn't need to add the wp DB/table manually. WP takes care of that on installation.

     

    Also you could try to add in the mariaDb template the root password. Eg set the password "mypass" and the in the Wp template add "root" as user and "mypass" as password.

    And as you seem confident using Table Plus, you can always create a user manually and give that user full access and add that to the WP template but there you have to give that user full unrestricted access.

    Kru-x 

  15. 1 minute ago, Fonso_s said:

    I had installed MariaDB for NextCloud, I created a new user and a new DB in the same docker following this Spaceinvader one video.

    Should I create the database and the user with the same name? or should I install another mariadb docker just for this WP?


    Thanks in advance.

     

    Are you using the same DB as nextcloud? I suggest that you use a separate DB for each container eg one for the WordPress container.

     

    Just add a new mariaDB container with a different port then leave the user and password blank in the WP template (of course adjust for the ip and port). Then WP will be able to connect to the DB with as the "root" user and it will create the DB base named "wordpress" inside the MariaDB automatically.

     

    Please read through previous threads, you got a lot of similar problems that you have, explained.

     

    Let me know how it goes,

     

    Kru-x

  16. 2 hours ago, Fonso_s said:

    Hi,

    I'm trying to configure this Docker with mariadb.
    This is my actual configuration: image.thumb.png.7675b1bad702dd43ede5398743a19de3.png

     

    When I use the Docker UI button it takes me to the 8080 port, and when I change it to the one I put, I get the Database Error I've read here.

    I checked he wp-config.php and the wp-config-docker.php files and they don't have any info from the docker form above.
    When I edit them I only get an error that I need admin rights.

    I'm a newbie, I only have Unraid from a week or so but as I have read and watched, I think this should work.

    What am I doing wrong?
    Thanks in advance

    Hi Fonso_s,

    Great choice and welcome to the community. 

    What DB are u using? MariaDB? Try to leave the DB user & password blank. It's most likely the privileges to the DB, they must be right. On a new install off the MariaDB the user is "root" and the password non. If u want to use your own you have to set them "as per your template" in the DB. 

     

    Hope that helps and let me know if it won't work.

    Kru-x 

  17. 11 hours ago, dancue said:

    Kru-x, you mentioned a while a go to me that your preference is to have one Mariadb per Wordpress container. I was doing one Mariadb for ALL of my wordpress containers. It inevitably bit me in the ass and so I wanted you to know, and anyone else for that matter, that a Mariadb container per wordpress site is a MUST in my book.

     

    One of the databases became corrupt and as a result all of my websites were down for an extended period of time. Had I followed your advice it would have been isolated to just one container. Instead I lost all of my databases. (another lesson learned, database backups daily)

     

    Lessons learned the hard way. 

    Hi Dancue,

     

    Thanks for letting us know and I am sorry to hear about your mishap. But on the same note I am glad that I gave a good advice (even if it was not followed ;-).

     

    You are not the only one that have wanted to run one DB, but I never got that as it is simpler and more workable with one for each, I have always set it up that way. I also backup my DB every 6hours and WP-folder once a day(really an overkill but it doesn't cost anything so why not).

     

    Just be aware that you should really (if you have lots of traffic or vital data) not do it this way, if something change during the backup it can become corrupt. You should take a DB dump and back that up instead. I don't bother too much as my site is low traffic and if it miss a beat ones a while it wont bother me too much, hope that wasn't the case.

     

    Otherwise how is it working (when it works)?

     

    Kru-x

  18. 1 hour ago, LewJ said:

    Can someone talk me through how to change the max upload limit via htaccess or otherwise - I would traditionly edit the php.ini within wp-admin, but while I can create the file, editting it through the unraid console is challenging - no vi, nano or similar that I can find.

     

    Maybe I am being dense here but could use a hand! 

     

    TIA.

    Hi LewJ,

     

    I use the htaccess method and there is several articles about it, just google it. I guess the bigger issue is how to edit files in WP (or any other containers) and it is quite easy, you just ssh in to unraid and edit any file in your favorite editor. 

     

    So if you are on Mac, I used "Fork Lift" as my ssh client to find and work with the files, and edit them with "Visual Studio Code" now in windows I use only VS-code as there is an ssh client as a plugin. 

    I use the unraid console all the time, but it is only for finding files, peeking in to containers etc.

     

    Actually found this https://www.a2hosting.com/kb/developer-corner/php/using-php-directives-in-custom-htaccess-files/setting-the-php-maximum-upload-file-size-in-an-htaccess-file it's for a hosting company but it explains the whole workflow with ssh as well, just as we do it for our own "hosting server".

     

    Hope that explains,

    Kru-x

  19. 1 hour ago, boomam said:

    Ok, as some constructive feedback - 

    What can we do to fix the consistent database connection issues that are prevalent with this container?  

     

    Specifically what I'm referring too is that if the variables in the container lists support for the ability to specify host port, db name, db user, db password, for all intents and purposes i would expect said variables to work.

    But the consistent thread is that they dont and we should 'leave them blank' instead.  

     

    So we either need to work out why they aren't working, or remove them from the template and specify on the readme accordingly.

     

    What would be the better route forward for this do you think?

     

    To be clear, I'm willing to help with some testing if it helps improve the container for others. 🙂

    Hi Booman,

     

    I love constructive feedback, thank you. There is a biiig problem with the container and the template, that is that it is too many options and as you said you can choose to leave them blank or fill them in. That makes for confusion.

     

    I should possibly remove the DB specific varibles and let people figure out the WP installation, then the problem is going to be the DB side of it and that is equally confusing.

     

    If you look at https://hub.docker.com/_/wordpress/ there is tons of setting and options, what and what not should we use?

     

    I think the best "route forward" would be to have a good turtorial eg. "Spaceinvader" style and I have also suggested that for him. I should maybe have done one myself and added it to the first post, but I am usless at that and am flat out with other stuff (and asnwering this thread) ;-) 

     

    You tell me, what do you think would be esiest, remove them or not?

     

    Kru-x

  20. 4 hours ago, SPOautos said:

     

    Thank you! I'm investigating the Duplicator plugin. All the how to's are for windows. I guess this will be pretty much the same though.

     

    So basically when I get ready to load in the Duplicator installation and archive files I just do it on a brand new WP container....so by doing this often (probably weekly) I'd just delete a container when Im done testing and next week install the WP container again? But when I install it dont set anything up because Duplicator will do everything, I just tell it the new URL and it loads the website with the correct url based on which server I'm installing on. (If moving to here I tell it ip:port and if moving from here to live host I tell it the url)

     

    Would I also need to reinstall the Mariadb each week when I want to move my website here to test? Or will it just overwrite whatever is there from the previous week?

    The plugin is WP specific and wont bother about what operating system you have, and/or it is all linux anyway when you are working with a docker container.

     

    You dont need a new container, it just depends on how many instances you need. Duplicator overwrites everything, even the DB. You just remove/delete all files from your WP root folder and put the two files exported from Duplicator, then you open the installation.php in your browser and follow the instructions. Duplicator will change everything needed. Takes a few minutes.

     

    I Duplicate my live site onto my laptop where I have my "development" setup, where all my WP development is a plugin. The plugin I install in to a fresh WP instance on my Unraid server for testing or beta. I also copy the whole site from time to time, I have had up to three different isntances on my unraid server to test them in between. Just use as many as you like or only one, work with Docker on all my comuters, same setup everywhere. Work great, just took me some time to get my head around docker now I love it, increadible powerfull the whole concept.

    Kru-x

  21. 8 hours ago, SPOautos said:

     

    Thanks Kru-x! okay, I have it now where I can pull up WP with the webui and everything works. This is obviously super new to me, I've had a website for 5years but it has been a hosted Shopify site and I'm working on replacing it with a Woocommerce site so I'm just trying to figure things out.

     

    I've read through this thread but just want to make sure I understand some things correctly. if I start creating a website and its on my server ip/port then as I create it and install plugins and all that kind of stuff, its all going to be based on that IP address and then if I get ready to move it to my hosting service and be on my live domain/url, I will need to follow something in this link you shared in a post a while back https://www.wpbeginner.com/wp-tutorials/how-to-change-your-wordpress-site-urls-step-by-step/ and this will change everything from ip/port to live url and it will all work correctly, is that right?

     

    Is there a way to create it using my actual URL but like its 'offline' or something where I can only see it locally (since I already have a live website at said url)? So that way when I upload it to the host service it will all be correct and nothing will need to be changed?  Or likewise so that I could take a backup from my hosting service and open it on my unraid to test plugins and such. Ultimatly I want my Unraid WP to be a test environment for my website so I can test updates and plugins and such before I do them to the live site. Just trying to gauge the best way to do that.

     

    Hi SPOautos,

    You are on the right track in your understanding. I can only tell you how I work and what I found best, I am sure others would have different opinions. But wordpress works as if you add a page or any redirects to a page/photo/shopping basket or whatever, it saves that value or "link" in the database, so if you have it installed on 192.168.1.100:8080 thats the pointer that is saved.

     

    You have to convert those values to the right ones as in the link you refer to if you move/migrate the site. The easiest way I find and the plugin that I use is "Duplicator Pro", it is to move my site around either way, production to develop or the opposite, it works great, it is a small cost but it saves you a lot of headaches. It will convert all the links and copy the DB and the whole site in one, easy as. You just have to fire up a new wp container on any machine and wipe the folder clean, add the files from Duplicator pro and it will automatically install the whole site with the right url's. Kru-x

    • Like 1
  22. 4 hours ago, SPOautos said:

     

    Thanks for the info! I'm trying to get this all configured correctly. I installed MarinaDB and then installed Wordpress. But I changed the Wordpress port from 8080 to something else because I had SAB on 8080. But eventhough I changed the port to a free port, when I click on the webui it still tries to open up ip:8080 and sab pulls up.  Will it alllow me to change the port?

     

    To clarify, when I go to webui and it pulls up SAB, I can just change the port to the one I assigned it and WP pulls up fine. Its just that when I click on the webui it isnt going to the port I assigned it.

     

    Thanks so much for any info you can give. I'm excited to get this figured out, I'm going to try making this my test environment and backup host for the Woocommerce site I'm building.

     

    There is a setting (andvanced)  in the template where you can manually assign the ip:port fore the webgui, I can also recommend that you to read throught this thread. Re: changing IP/ports, you can and will run in to problem when and if you change port other than what you installed WP on. Several posts erlier speaks about this and some run in to weird problems with this. But it has a logic explaniation and as long as you play it right it works fine.

     

    Kru-x

    • Thanks 1
  23. 7 hours ago, SPOautos said:

    I have a question or maybe more than "a" question lol.

     

    So I'm building a Woocommerce site that will be hosted with a hosting service, but I want to create a exact copy of it to have as a test environment so when I need to do updates and such I can do them in the test environment first to make sure everything works before doing them on my live site. Can I use this app on my Unraid server to do that and just load in all the files from my hosted website to create a exact copy?

     

    Further, if something happened like if my website host went down or my site got hacked or corrupted, couldnt I just point the A record to my Unraid ip:port where the WP is docker is and host the site temporarily from my Unraid?  Would it be better to incorporate this with some firewall security stuff since its a ecomm site?

     

    I'm sorry, Ive never done anything like this, our site has always been on a hosted service (Shopify), I'm just now switching to Woocommerce where I have to host it.....so but no worriesthis is all new to me. I'm just wanting to confirm if all of that will work. At the time being I'm not yet done building the website.  

     

    Hi there,

    More i say 🙂, but no worries. Some difficult questions and an answer that I hate is, "it all depends on".

     

    But as a staging or beta server this setup is perfect (at least for me), I develop on my laptop/desktop and the are all runnig the same system, mysql & Wordpress in docker containers. I move my sites around with Duplicatior pro. I can fire up as many as I like and delete them when I am done with them.

     

    I also host one site on my unraid and sync the DB to a Beta server in the cloud as I am about to move it. I would be carefull if I stored customers details and would thread carfully, I belive my server is pretty safe but there is a lot of settings that can go wrong, but in the end it can go wrong anyware and I love my server setup. The only thing, it is not reliable as in "no downtime server", a power cut or a fault on the street and my server goes down hence I moving my production server/site to the cloud.

     

    A good starting point is to read up about docker if you are not familiar with it and use the same system on all computers you are working on. Tha "app" as you call it is a full copy of Wordpress dockerized in a container and is maintained by the Wordpress creators, can't be more secure and reliable than that, very smart guys, I mearly added the template for it to be used on Unraid.  

     

    Hope my answer gives you some hints at least,

     

    Kru-x

×
×
  • Create New...