Install Wordpress using nginx - turned to Nextcloud install

  • Hello all,


    Is there a guide for installing Wordpress on OMV 4, using nginx, please?


    I have installed MySQL, nginx, created a database, FTP'd all of the wordpress files to the correct public directory (and edited wp-config.php), but I just get a 403 Forbidden error when I try to install Wordpress through the browser.


    I am quite happy to list all of my steps but just wondered if there is a guide that I could refer to first.


    EDIT: I have found this morning that if I drop an index.html file in the same (root) directory as the wordpress files, it works. I can enter the ip address and I see the page in the browser.


    I have more or less followed the guide below, from here, save for the fact that I have uploaded all of my files for install via FTP, rather than SSH.



    Thanks,

    Nick.

    I ride bikes a long way.
    longbikejourney.com


    omv 6.9.2-1 (Shaitan) | 64 bit | Linux 6.1.0-0.deb11.11-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 8GB RAM

    Einmal editiert, zuletzt von Nick0 ()

  • Nick0 ,just to make sure you are aware of implications, OMV 4 is EOL since some time now and OMV 5 is using Docker to extend features for good reasons

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • OK, I am upgrading and I have hit this screen with no idea what to say...


    Let me know if I should ask this somewhere else.


    I ride bikes a long way.
    longbikejourney.com


    omv 6.9.2-1 (Shaitan) | 64 bit | Linux 6.1.0-0.deb11.11-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 8GB RAM

  • Ha! Glad I posted it then as I was just going to say 'yes'!


    I am following this guide and It occurs after entering this command on the CL


    apt-get install usrmerge


    Thank you,

    Nick.


    EDIT:


    Now this has happened:


    I ride bikes a long way.
    longbikejourney.com


    omv 6.9.2-1 (Shaitan) | 64 bit | Linux 6.1.0-0.deb11.11-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 8GB RAM

    Einmal editiert, zuletzt von Nick0 ()

  • OK, all upgraded now and much, much more familiar with things after using the command line lots and installing Docker and Portainer.


    So, are there any guides you guys would recommend for installing Wordpress using Docker?


    Thank you!


    Nick.

    I ride bikes a long way.
    longbikejourney.com


    omv 6.9.2-1 (Shaitan) | 64 bit | Linux 6.1.0-0.deb11.11-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 8GB RAM

  • So, do I create the stack out of the first bit of code and then run the next two from the CL? Do you think maybe I am just out of my depth here because it doesn't make too much sense to me?

    I ride bikes a long way.
    longbikejourney.com


    omv 6.9.2-1 (Shaitan) | 64 bit | Linux 6.1.0-0.deb11.11-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 8GB RAM

    • Offizieller Beitrag

    Do you think maybe I am just out of my depth here because it doesn't make too much sense to me?

    I am a big fan of Wordpress. I manage several sites for myself and others, but I let a hosting service take care of the heavy lifting. If you want a challenge try installing Nextcloud. macom has a great tutorial here.

  • OK, so all is going well and I am at the point where I create and edit the .yml file but I have a question:

    do not place the config folders on a mergerfs mount point

    I don't know what this means, and also, I'm not sure how I should edit these line in the .yml:


    volumes: - /srv/dev-disk-by-label-disk1/appdata/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted 

      - /srv/dev-disk-by-label-disk1/appdata/nextcloud/data:/data #/srv/dev-disk-by-label-disk1 needs to be adjusted


    What do I replace dev-disk-by-label-disk1 with, I suppose its a uuid, but how do I know which one?


    Thanks,

    Nick.

    I ride bikes a long way.
    longbikejourney.com


    omv 6.9.2-1 (Shaitan) | 64 bit | Linux 6.1.0-0.deb11.11-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 8GB RAM

    • Offizieller Beitrag

    Just sub your -uuid-bunchofnumbersanddashes/appdata/......

    for -disk1/appdata/...... in both lines. Everything after the # is just comment until a new line.

    • Offizieller Beitrag

    If you are not using the Unionfilesystems or mergerfs plugin you don’t need to worry about that.

  • OK, great - thank you, Agricola - seems i have messed up the domain name though.


    This is what I get when I run docker logs -f swag


    root@omvpeR310:/home/docker1/nextcloud# docker logs -f swag

    [s6-init] making user provided files available at /var/run/s6/etc...exited 0.

    [s6-init] ensuring user provided files have correct perms...exited 0.

    [fix-attrs.d] applying ownership & permissions fixes...

    [fix-attrs.d] done.

    [cont-init.d] executing container initialization scripts...

    [cont-init.d] 01-envfile: executing...

    [cont-init.d] 01-envfile: exited 0.

    [cont-init.d] 10-adduser: executing...

    -------------------------------------

    _ ()

    | | ___ _ __

    | | / __| | | / \

    | | \__ \ | | | () |

    |_| |___/ |_| \__/

    Brought to you by linuxserver.io

    -------------------------------------

    To support the app dev(s) visit:

    Certbot: https://supporters.eff.org/donate/support-work-on-certbot

    To support LSIO projects visit:

    https://www.linuxserver.io/donate/

    -------------------------------------

    GID/UID

    -------------------------------------

    User uid: 1000

    User gid: 100

    -------------------------------------

    [cont-init.d] 10-adduser: exited 0.

    [cont-init.d] 20-config: executing...

    [cont-init.d] 20-config: exited 0.

    [cont-init.d] 30-keygen: executing...

    generating self-signed keys in /config/keys, you can replace these with your own keys if required

    Generating a RSA private key

    ..................+++++

    ..................................+++++

    writing new private key to '/config/keys/cert.key'

    -----

    [cont-init.d] 30-keygen: exited 0.

    [cont-init.d] 50-config: executing...

    Variables set:

    PUID=1000

    PGID=100

    TZ=Europe/London

    URL=mydomain.ddns.net

    SUBDOMAINS=www,

    EXTRA_DOMAINS=

    ONLY_SUBDOMAINS=false

    VALIDATION=http

    CERTPROVIDER=

    DNSPLUGIN=

    EMAIL=me@myemail.com

    STAGING=

    Created .donoteditthisfile.conf

    Using Let's Encrypt as the cert provider

    SUBDOMAINS entered, processing

    SUBDOMAINS entered, processing

    Sub-domains processed are: -d www.mydomain.ddns.net

    E-mail address entered: me@myemailaddress.com

    http validation is selected

    Generating new certificate

    Saving debug log to /var/log/letsencrypt/letsencrypt.log

    Plugins selected: Authenticator standalone, Installer None

    Account registered.

    Requesting a certificate for mydomain.ddns.net and www.mydomain.ddns.net

    Performing the following challenges:

    http-01 challenge for mydomain.ddns.net

    http-01 challenge for www.mydomain.ddns.net

    Waiting for verification...

    Challenge failed for domain www.mydomain.ddns.net

    http-01 challenge for www.mydomain.ddns.net

    Cleaning up challenges

    Some challenges have failed.

    IMPORTANT NOTES:

    - The following errors were reported by the server:

    Domain: www.mydomain.ddns.net

    Type: dns

    Detail: DNS problem: NXDOMAIN looking up A for www.mydomain.ddns.net

    - check that a DNS record exists for this domain

    ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container


    I use no-ip.com, and my domain is http://mydomain.ddns.net I was thinking I'd switch to duckdns at a later date as I didn't quite get how to install it and I have been using no-ip for years.


    Does this mean that I need to edit the .yml and how would I do that?


    Thanks,

    Nick.


    EDIT: OK, so I can edit the .yml with nano docker-compose.yml but what do I enter for the domain??

    Another EDIT: Sure that my port forwarding is correct and DDNS is set up on the router. I think I am understanding things correctly here - pics attached.

    Yet another EDIT: Its the next day now and I just found a guide on installing DuckDNS, so I will try to do that first.

    Its me again: Right, duckDNS now running on OMV (yay!) and I have updated the domain name in the .yml to the mydomain.duckdns.org address using nano. Written that out, exited, but docker logs -f swag giving the same error, with the old domain name.

    I ride bikes a long way.
    longbikejourney.com


    omv 6.9.2-1 (Shaitan) | 64 bit | Linux 6.1.0-0.deb11.11-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 8GB RAM

    8 Mal editiert, zuletzt von Nick0 ()

    • Offizieller Beitrag

    Nick0 You are correct to use sudo nano docker-compose.yml. When you make your changes, save and exit.

    Then execute docker-compose up -d.

    And then docker logs -f swag

    Here's an example of my docker-compose file.

    I may have said this before, but indention is important in your yml file.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!