Kru-x

Community Developer
  • Posts

    242
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Kru-x

  1. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. Thanks' for that Jowi, good tutorial and even if you don't understand French (as me) it shows the settings. Kru-X
  13. 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. 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. 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. 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. 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. 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. 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. 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. 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
  22. 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
  23. 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