Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tom

    (@tomlawesome)

    @danslevin No worries! Glad it helped someone.

    755 should be fine. I think that’s fairly standard for folders with Apache? I think it just means:

    7 (owner) read+write
    5 (group) read only
    5 (everyone) read only)

    Tom

    (@tomlawesome)

    For the less experienced (like me) I collated things and added some detail:
    https://tom-lawson.co.uk/2020/12/29/wordpress-5-6-synology-nas/

    Tom

    (@tomlawesome)

    In addition to the above, in Web Station add the PHP extension (useful for themes etc):
    – zlib
    – zip

    SSH into your NAS and change folder permissions. This changes the ownership of the wordpress folder to the web station user. Usually this is www-data, but for Synology NAS, the web user is ‘http’. -R modifier runs the command recursively, so all files and folders inside will also change ownership too.

    Use the following commands:
    sudo su (to switch to super user)
    chown -R http:http /fullpath/to/wordpressfolder

    Also, another tip – remove from wp-config.php if present:
    if (!defined(‘SYNOWORDPRESS’))
    define(‘SYNOWORDPRESS’, ‘Synology Inc.’);

    And also this section:
    require_once( ABSPATH . ‘syno-misc.php’ );

    After this, you can safely remove the files from your wordpress folder. Personally I just copied them to a backup location just in case:

    syno-misc.php
    pingbackisOpend

    You don’t strictly have to do these bits for the site to function, but these will fix site ‘errors’ and restore your site ‘health’

    • This reply was modified 5 years, 4 months ago by Tom.
    • This reply was modified 5 years, 4 months ago by Tom.
    Tom

    (@tomlawesome)

    I signed up to thank you all for your efforts! I’ve now successfully got my manual install up and running and pointing at my subdomain. What a headache!

    Here’s my summary of actions taken:

    1) Create virtual host pointed at the wordpress installation folder.

    2) MariaDB -> Enable TCP/IP connection’ (I left port to default 3307)

    3) Web Station > PHP Settings > Edit > Core tab Search > socket
    Enter: /run/mysqld/mysqld10.sock next to mysli.default_sockets

    4) Web Station -> PHP Settings -> Default Profile PHP 7.4 -> Edit -> Extensions -> Check boxes for:

    – curl
    – msqli
    – gd
    – bcmath (optional, but wordpress wants it)
    – exif (optional, but wordpress wants it)
    – imagick (optional, but wordpress wants it)

    5) Edit /wordpress/wp-config.php with the following:

    a) Replace DB_HOST with the following:
    define( ‘DB_HOST’, ‘127.0.0.1:3307:/run/mysqld/mysqld10.sock’ );

    b) While you’re here, solve another issue with updates by adding the following line somewhere before the comment /* That’s all, stop editing! Happy publishing. */

    define(‘FS_METHOD’, ‘direct’);

    Thanks to @easthowle, @brift and @brodia10 – this combo of tweaks got things working again for me 🙂

    • This reply was modified 5 years, 4 months ago by Tom.
    • This reply was modified 5 years, 4 months ago by Tom.
    • This reply was modified 5 years, 4 months ago by Tom.
    • This reply was modified 5 years, 4 months ago by Tom.
    • This reply was modified 5 years, 4 months ago by Tom.
Viewing 4 replies - 1 through 4 (of 4 total)