[Support] kru-x - wordpress


Recommended Posts

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

Edited by Kru-x
Link to comment
1 minute ago, Kru-x said:

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

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

Link to comment
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

Link to comment
1 minute ago, Kru-x said:

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

never mind i found the issue its a cache issue on his end

Link to comment
  • 4 weeks later...

I'm having trouble updating Wordpress. Every time I try to update the website, it asks for FTP credentials. Searching for this issues shows problems with the access rights to the web directory. I've set a separate web directory for the "/var/www/html" path. Do I need to change anything on the permissions there?

As I understand, the docker runs under the root user and should have access? 🤔

 

(Page runs behind HA Reverse-Proxy if that should be an issue?)

 

Update: I was able to fix this by adding the following line to the wp-config.php file:

define('FS_METHOD','direct');

 

 

Edited by Symon
  • Like 1
  • Thanks 2
  • Haha 1
Link to comment

I'm having difficulties with my wordpress container connecting to my mariadb database. I've create the database and can connect to it using the account I created for it from the mariadb container. My nextcloud container is on a different network and has no issues connecting to the same container. I've tried multiple combinations of usernames (wpuser vs wpuser@localhost) and database host ip addresses yet I still get the following page when trying to go to /wp-admin.

 

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at 192.168.1.192:3306. This could mean your host’s database server is down.

Are you sure you have the correct username and password?

Are you sure you have typed the correct hostname?

Are you sure the database server is running?

If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

 

 

Update: Nevermind. My wpuser mariadb user was created with only local access. I deleted it, recreated it and now it can connect just fine.

Edited by Professor Oak
Link to comment

Hi, I have this project stopped but this week I've been working on it and I would like to use the site with my own custom domain.

Do you know a tutorial to use Nginx Proxy Manager to redirect to the site? I've looking on the internet and did't find anithing.

 

Thanks in advance!!

EDIT: I had Cloudflare and the DNS wrong, so I wasn't getting access to my url, now I have done it correctly thanks to this video I'm able to access the web with my custom domain.

Edited by Fonso_s
Link to comment

Two things, when you install the current docker via Community Applications on 6.9.2 it doesn't show as an installed app. Also when you change the port during install the webui link in "docker containers" still points to the default 8080.

 

Thanks for your work on this!

Edited by Juise99
Link to comment
  • 3 weeks later...

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

Link to comment
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

Link to comment
7 hours ago, Kru-x said:

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

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

 

Link to comment
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

Link to comment

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. 

 

Link to comment
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

Link to comment
6 hours ago, Kru-x said:

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

 

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. 

 

 

Link to comment
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

Link to comment
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.

Link to comment
  • 2 weeks later...

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

Link to comment
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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.