Jump to content

Kru-x

Community Developer
  • Posts

    242
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Kru-x

  1. 17 minutes ago, Rocka374 said:

    Hello!

     

    I wonder how to migrate and host 13 personal wordpress sites to my Unraid server.

     

    1 option is to use dockers. For each wordpress site I will need redis, nginx fastcgi and phpfsp. Is there some kind of stack which includes all these or should I create a different container for each?

     

    Another option is to create a ubuntu VM and configure the web server there, including a panel where I can manage all the projects.

     

    Which option would be better?

    Whoooa,

     

    That's a request and a half ;-) and I am not sure about the answer. I doubt that you would have a stack for that. I know Redis can be used as a separate docker container in Unraid.

     

    I am using Nginx Proxymanager, but you would have to have a container with Nginx and fastCGI + PHP-FMP as I understand it. There is a way as I understand it, read quickly about it https://blog.joshwalsh.me/docker-nginx-php-fpm/ if you could use that container and make your own template for it in Unraid it could be possible I guess.

     

    You would be running each site in a separate container + DB and possible Redis in one and the Nginx as per above in one. but this is way over my head.

     

    Hope it gives you a few ideas but sorry I couldn't help more,

    Kru-x

  2. On 4/19/2022 at 5:35 PM, DesertCookie said:

    What chmod would I have to do? What are the default owner permissions for this/a container?

     

    Thanks, again.

    Sorry,

     

    I am the worst person to ask about premission's, still after all these years I am still just 777 everything!

     

    Kru-x

  3. On 4/14/2022 at 5:54 PM, DesertCookie said:

    I accidentally messed up my installation by, presumably, using the `New Permissions` tool of unRAID. I ran this over appdata to fix an issue I had with a different container, only realizing now, weeks later, when trying to install plugins or upload files to my Wordpress site that it does seem to have permission issues. It keeps asking for connection information to the storage via FTP.

     

    Is there an easy fix, eg. using `chown` on the folder?

    Sorry for the late reply, but I think you are on the right track. The container needs to have write and read privileges, so chmod should do it.

     

    Kru-x

  4. 5 hours ago, TurboStreetCar said:

    Hello, Im trying to use this for a private web server for my own uses within my LAN network. No outside www. needed. will be accessed by IP and Port when needed.

    I installed MariaDB, and went through the steps in the french walkthrough posted earlier.

    I also have a Unifi docker running (relevance next)

    After installing the wordpress docker, the webGUI takes me to the Unifi webGUI, easy enough, Unifi uses port 8080, change the port for wordpress.......

    I changed the Wordpress port to 8085, and when i manually navigate a web broswer to ip:8085, it cannot connect. I tried a few different ports from 8081-8090.

    Any tips?

    My setup is here:

    Wordpress.png

    Reinstall from the beginning on the new port and/or change the site adress to ip:port-number 

     

    Kru-x 

  5. 4 hours ago, DaButterGamer said:

    Hi All,

     

    Just did a oopsie and changed the url with in the admin panel of wordpress to another port number and saved it. Can no longer access the admin panel through the webui. What file do i need to edit to change it back

     

    Many thanks,

    Hi,

     

    There is some things to try,

    • Change it back in wp-config.php
    • Clear your cache

    There is heaps of info on it doing a Google search, here is one https://wp-me.com/cant-access-wordpress-after-changing-site-url/ 

     

    Hope it helps,

     

    Kru-x

  6. 3 hours ago, shiftylilbastrd said:

    Okay. Wiped out and started fresh and didn't need to adjust the URLs. I'm still unable to change the permalink setting. I can physically get to the setting and change it to post name but after that nothing works. When I try to create a new page I get the same error as before 

    Publishing failed. The response is not a valid JSON response

     

    Clear the browser cache? Try your site in a private window in your browser.

  7. 8 minutes ago, shiftylilbastrd said:

    Running a fresh install of wordpress and went through setup process. 

    Settings>General - Site Address (URL) and WordPress Address (URL) changed to http://myhostname.com

    Everything working as expected up to this point

    Settings>Permalinks - Changed to Post Name

    At this point no pages other then the homepage work producing a 404 error

    If I try to create a new page I get 

    Publishing failed. The response is not a valid JSON response

    What am I doing wrong?

    Did you start to install WP on your local address? Start your install after making sure you can connect to the installer through your Domain, then you shouldn't need to do the steps above.

     

    Kru-x

  8. 14 minutes ago, shalafi said:

    I tried setting this in wp-config.php and wp-config-docker.php:
    define( 'WP_DEBUG', !!getenv_docker('WORDPRESS_DEBUG', 'true') );
    define( 'WP_DEBUG_LOG', '/var/www/html/wp-errors.log' );

     

    But no debug log is created in the dockers /var/www/html folder

     

    Did some more testing, I can change and save other information in the user profile but the TOTP will not save..

    Plugin folder (and files) has correct user/group
    image.png.bdd8d2223fb34195173982a1e887bb97.png

     

     

    The log would be in the container itself, sorry not sure but still think it is a permission error. Try the migration tool, usually solves any problems, especially DB troubles. 

    Kru-x 

  9. 37 minutes ago, shalafi said:

    Strange problem after wordpress import.

     

    I have just finished importing 13 existing wordpress installations into Unraid, each in a separate docker and separate databases. everything works almost perfect.  excelpt TOTP.

    All sites is secured with TOTP for login, and I can't login with my generated code. I renamed the plugin folder so that I could log in and after I logged in I changed the folder back and reset the TOTP code... Then I created a new code and set TOTP as enables and primary.

     

    The problem is that the new code is is not saved and setting TOTP as enabled and primary is not saved either so when I log out and try to log in again I only need username/password.

     

    Any ideas out here? Is there something special to consider when using "old" wordpress installations like this?

     

    All wordpresses was at latest versions, the import process was like this:

    1. Create database and wordpress docker in Unraid

    2. dump DB at old server and import it to new DB in Unraid MariaDB

    3. copy wp-content folder from old installation to docker installation

     

    Like this:

    Create wordpress docker in unraid
    Create database and user
    mysqldump -h oldserver -u root -p <db> > <db>.sql
    mysql -h unraidserver -u root -p <db> < <db>.sql

    scp -pr /var/www/<site>/wp-content/* unraidserver:/mnt/user/appdata/wordpress/<site>/wp-content/.

    Have u tried to use a migration tool, such as wp-migration? Seems to be a permission problem. 

    Kru-x

  10. On 11/26/2021 at 10:20 PM, KilianDee said:

    Hello all.

    My Wordpress Docker works fine. but now i have a problem with the upload limit. i want to hit it up to about 40MB, now it is allmost 2MB.

     

    adjust the wp-config.php dosnt work.

     

    i dont found the php.ini in the wordpress folder.

    also the .htaccess

     

    and the support info from wordpress docker : https://hub.docker.com/_/wordpress/
     

    See the "Configuration" section of the php image documentation.

    For example, to adjust common php.ini flags like upload_max_filesize, you could create a custom.ini with the desired parameters and place it in the $PHP_INI_DIR/conf.d/ directory:

    FROM wordpress:tag COPY custom.ini $PHP_INI_DIR/conf.d/
     

    i dont know in wich folder i can create a custom.ini
     

    Halloj KilianDee,

     

    I use the .htaccess method and it works great. Just toss a .htaccess file in to your root folder. Eg where your docker container mounts, most likely in your appdata/yourcontainer, and in the file add:

     

    #If more upload capacity is needed, my addition
    php_value upload_max_filesize 64M
    php_value post_max_size 128M
    php_value memory_limit 256M
    php_value max_execution_time 300
    php_value max_input_time 300

     

    kru-x

    • Like 1
  11. 3 minutes ago, darrenyorston said:

    Thanks mate. I hear what you are saying. But how do you actually install a duplicate container of the same type as one already installed? Whenever I try it opens the config for my existing container. I presume you do it by some means other than using the community applications tab? Or do you open the application values for the container in community applications, append something to distinguish a new container which, as a result, creates a duplicate container?

    You just open the template file in your list for ex. wordpress (if that what you have named it)  and rename the next template to wordpress2, then you have to choose a different folder. I name the folder exactly the same as the container eg "wordpress2" and the port number. The newly named template will be saved in your list of templates you have, the old still remains. You could also choose the app from the comunity app page, same same and this can be done with all containers in the same way. It is just how unraid templates and docker works.

     

    Kru-x

  12. 10 hours ago, darrenyorston said:

    Hello. I have Wordpress set up and running on my server with it being published to the web using nginxproxymanager. Its great and works perfectly.

     

    I am now trying to work out how to host a second site. I have created  a second database in mariadb but how do i install a second wordpress container?

    And I guess after reading your post through properly 😏 I didn't actually answered your question. Hups. But you just name the second wordpress installation differently and use a different folder for the installation as well as a different port offcourse. Then install it as you did with the first one pointing it to the db of your choice. Then you should be up and running.

    Kru-x 

  13. 24 minutes ago, darrenyorston said:

    ok, thanks.  Why not just do backups of your database? Seems like your adding complexity for little reason.

    I do backups of all my containers and it might seem like it is complexed but it isn't. I name them the same as the application container eg - I pair them like, wordpress and wordpress-db than they show up next to eachother. Easier to just add a new db container than add/delete db's in one container and I believe it makes it more readable and they might even work better on their own. There was one guy earlier in the thread that got a corupt db and he didn't know when it started, thus he had to remake his whole setup. But it is as I mentioned a personal preference, it will works either way. There is no reason why you couldn't add a separate db in your already existing container, it's just to point the second wordpress application to that db name.

     

    Kru-x

  14. 2 minutes ago, darrenyorston said:

    Thanks mate. Ive read over the previous posts in the thread and I wouldn't say its clear. You say not to use the same DB for both sites, which is understandable, and to create a new MariaDB. Do you mean a new database within MariaDB or an entirely new MariaDB container? ie I will have two MariaDB containers running, one with the databases for all my others containers (authelia/nextcloud/photprism/wordpress) and another that solely contains a database for the second wordpress site?

    Hi,

     

    Yes you just start a new db container. But it is a preference and personally I have one db container for each application. The problem is if that db fails you loose all your data for each application whilst if you have one for each only that one fails. There is not much overhead to run one for each and I all the time trying out other applications, crank up two containers and when I am done I just toss both of them.

     

    kru-x

  15. 6 minutes ago, darrenyorston said:

    Hello. I have Wordpress set up and running on my server with it being published to the web using nginxproxymanager. Its great and works perfectly.

     

    I am now trying to work out how to host a second site. I have created  a second database in mariadb but how do i install a second wordpress container?

    Hi darrenyorston,

     

    This is talked about before in this thread, have a quick skim throught them and most of the answers are there.

    But in short: its actually really easy, but dont use the same DB for two different sites, you can get in to a lot of headace.

    Just do as you did with the first one, spin up a new MariaDB with a diffrent folder and Port number, and the same with your second Wordpress site, then you just route to that site in NPM by the port number.


    Let me know if you run in to problems,

    Kru-x 

  16. 11 hours ago, Tom Kamin said:

    You mean browser cache ? Ive tried. I can send you the site via PM if you want to check it out.

     

    Hi Tom,

     

    Yes I ment the browser cache and if that isn't working I still think it is due to how it's installed. Can't see your site but you have to install the site from your domain, several people have had that problem as WP saves all the links and redirects in your DB. Eg. if you installed WP on your local host ( ex . 192.168.1.100) the CSS file is going to point to that address when it should point to yourdomain.com.

     

    So to fix that delete both folders, WP & DB then reinstall the containers and before you do the installation from the WP installation screen, connect your domain. Than when you can connect to the WP installation page from your domain, and not untill then start the installation. Then you can point the DB to it's local IP address.


    WP will recognice that you are on your domain and add all the correct redirects. If you have an existing site that you would like to use, use the "Duplicator Pro" Plugin or similar to migrate the whole site to the new domain. Works really well and I do it all the time with my sites.

     

    Hope it helps,

    Kru-x 

  17. 1 minute ago, Tom Kamin said:


    So i actually managed to fix that by giving it a different ip, however.

    I need to have my website on my domain trhough NPM and quickly found your template for some reason (even after changing the wordpress and home adress in wp settings) points all the CSS to my local IP = doesent display CSS on the worldwide web...any ideas ? Thnx

    Clear cache? 

  18. 8 hours ago, Tom Kamin said:

    Hey. I have a lot of trouble getting this setup. If the database login is incorrect, it shows me a error for database connection (of course) however if that is correct, it points me to either to the unraid UI (because its on port 80) or if i change the unraid UI port, it points to nowhere giving an error. Please tell me you have any idea how to fix this, im more than lost trying to figure it out.

    Hi Tom,

     

    I believe it is due to how it is installed,  try to delete both folders and then you should see the installation page of WP when you go to it, if you connect to the DB from there it should work.

     

    R

    K-rux

  19. 5 hours ago, Rudeboy42 said:

    New user here, can someone point me to a install doc or provide some steps on how to install?  I'm thinking I need to pre-install MariaDB and PHP or something else before I can even get WP to work.  Just not sure and don't want to muck up my server.

    You must install a database, MB or MySql. That is also done in a container, nothing must be installed on your unraid server file system except from the docker folders.

     

    The only tutorial I know about is this discussion (there is a lot of pointers in some threads) or you can find a French tut here: https://forums.unraid.net/topic/102915-tuto-installation-de-wordpress-mariadb. Even if you don’t understand French you will understand what is going on and if you translate the page it’s even better.

     

    Kru-x

  20. 5 hours ago, Rudeboy42 said:

    New user here, can someone point me to a install doc or provide some steps on how to install?  I'm thinking I need to pre-install MariaDB and PHP or something else before I can even get WP to work.  Just not sure and don't want to muck up my server.

    You must install a database, MB or MySql. That is also done in a container, nothing must be installed on your unraid server file system except from the docker folders.

     

    The only tutorial I know about is this discussion (there is a lot of pointers in some threads) or you can find a French tut here: https://forums.unraid.net/topic/102915-tuto-installation-de-wordpress-mariadb. Even if you don’t understand French you will understand what is going on and if you translate the page it’s even better.

     

    Kru-x

  21. 24 minutes ago, xcsuperfly said:

    Would this be the case, if I can connect to my mysql docker fine? I can connect wordpress works fine. I just want to load the plugin and it's requiring this dumb php extension. 

    My guess is that the plugin wants to connect to your db and ad some tables/row in there but is using a older connection method not compatible with the newer mysql syntax. Try to throw in the  --default-authentication-plugin=mysql_native_password in the extra parameter and try to restart the container. If it works it douse if not just delete  it and restart it again.

    I would look elsewhere though,

    Kru-x

    ps. I mean in the mysql container if that wasn’t clear.

  22. 45 minutes ago, xcsuperfly said:

    I'm trying to use the mailpoet plugin with wordpress and it requires the PDO_MYSQL PHP extension. I'm having a hard time trying to get it working especially since there is no php.ini file. Any help would be much appreciated. 

    Hi xcsuperfly,

     

    Now you puting me on thin ice, but have skimed over it I think it has to do with "default_authentication_plugin=mysql_native_password".

     

    What I believe is that the plugin using an old legacy autentication, "mysql_native_password" instead of "caching_sha2_password" Read about the problem here, I know I have had this problem some time ago. The solution I found at that time was to add "--default-authentication-plugin=mysql_native_password" in the extra parameter in the template (advanced).

     

    It is just a guess based on the problem I have had, but I could be totaly wrong.

     

    AND it is a lot of fiddle to try to findout a problem like this and in worse case you have to change the docker image itself (make your own one and adjust for your needs, then you are in for a ride 🙂 ) Instead I tend to distrust plugin's that is not updated to the latest and always using and untouched official docker containers ( in this case mysql ). Extremly smart guys that look after them and update them for the mass.

     

    If you haven't got a specific reason to use this plugin, maybe look at some others, I use "newsletter", its brilliant.

     

    Hope it helps,

    Kru-x

     

  23. 9 hours ago, Nexius2 said:

    New question 🙂

    in my LAN, my wordpress adress is 192.168.1.80:8082 (yes, I just changed it for some try outs)

    since I configured wordpress via internet, it saved the siteurl & home as http://wordpress.domaine.com

    great, with this adress, over internet, no problem to access it.

    but since it doesn't match the local adress, how can I access it locally?

    or maybe you build a new docker network to have different IPs?

     

     

    You can't access it from your local IP, the page addresses is saved in the data base and WP will redirect to whatever address a user is asking for. WP doesn't know your local address, hence the importance to install WP from the domain.

×
×
  • Create New...