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.

  • 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 5.5.23-1 (usul) on RPi4 with Kernel 5.10.x and WittyPi 3 RTC HAT

    2x 6TB HDD 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

  • 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.

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

  • 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.

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

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

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

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

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

  • 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.

  • 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.

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!