• Resolved pr0ject10n

    (@pr0ject10n)


    I used the plugin ‘Duplicator’ to duplicate my wordpress folder as two external files (the archive and php installer) and uploaded those into the projectionpictures folder with this path projection (name of the server)/web/projectionpictures.

    I then opended the php file to complete the installation.
    However when I sign into http://192.168.1.234/projectionpictures/wp-login.php and try to install or update further plugins I’m asked to enter connection information for the ftp address of my Synology unit. I’m not sure what the ftp address is but Synology inform me that port 21 is open. I don’t know what the ftp username or password is either, unless I do and don’t realise it.

    What do I have to do now so further plugins can be installed and updated in the newly created projectionpictures as I intend to make it a live site once the plugin problem is solved.

Viewing 15 replies - 1 through 15 (of 153 total)
  • Moderator bcworkz

    (@bcworkz)

    Sorry for the slow reply. Your normal login credentials should work for FTP. The host name is the same as how you access the hosted website. It may be that the FTP server still needs to be enabled. See the Synology knowledge base for how to enable the FTP server.

    Thread Starter pr0ject10n

    (@pr0ject10n)

    Hi bcworkz,

    I managed to over come the ftp problem and reopen the port 21. I used WP all in one to create a wordpress back up of the site I wanted to create. I then used the ‘wordpress 5 minute install’, to create projectionpictures again.

    Now when I try to install new plug ins or update the ones already there, I get this error message ‘Download failed. No working transports found’ (but it knows new updates are available).

    Plugins in the original wordpress folder are unaffected and still install and update regardless.

    How to overcome ‘Download failed. No working transports found’ in the projectionpictures folder?

    Thanks for your previous reply.

    Moderator bcworkz

    (@bcworkz)

    WP requires a HTTP transport of some sort. It tries to use cURL if available, then falls back to PHP socket transports (fsockopen). If that too fails, it throws the error you see. WP checks availability by checking if certain related functions are defined in PHP. Your PHP version does not have these defined for some reason.

    If you call <?php phpinfo(); ?> from a template or stand alone PHP file and examine the output, there should be the lines “cURL support enabled” and “Sockets support enabled” if both are available. You need at least one enabled. Sockets should be part of core PHP. If it is not, it needs to be recompiled with sockets enabled in the configuration.

    The cURL package may still need to be installed. If it’s installed, it may just need to be enabled in php.ini. Restart the web server after making configuration changes.

    Thread Starter pr0ject10n

    (@pr0ject10n)

    Hi bcworkz,

    Solved it purely by accident. I went into web station > php settings > went into both php 5.6 and 7.0. In each of their advance settings I enabled a tick at the top of the extensions next to name (so there all ticked in that box down the left column), then saved it.

    Went back into projectionpictures and updated all the plugins and checked I could install any more from those I downloaded on my desktop and accepted it.

    Still go to figure our how to change my URL from the IP address for the server to my projectionpictures web address.

    Moderator bcworkz

    (@bcworkz)

    Nice! I guess that’s the web station equivalent of enabling in php.ini.

    There are 3 things that need to happen to get domain names working. The domain’s DNS record has to lead to the correct IP. Unless you intend for the /projectionpictures/ path element to be part of the URL, you need a virtual host or .htaccess rule to get there without the path element. Finally, all IP references in the DB need to be updated to the domain name. The site and home URL settings to start with, but IP references can be buried all over the DB.

    Changing DB references are particularly troublesome if they are buried in a serialized array. If the change does not properly follow the serialized format, the entire array will become corrupted. I like to use the Interconnect/IT search and replace tool for such DB changes. It properly deals with serialized arrays.

    Thread Starter pr0ject10n

    (@pr0ject10n)

    Hi bcworkz,

    What I need to do is give this folder web/projectionpictures with a duplicate copy of web/wordpress, this web address http://www.projectionpictures.com

    At the moment the sign in for projectionpictures is http://192.168.1.234/projectionpictures/wp-login (to enter its dashboard)

    the synology ddns is http://projection.synology.me and the IP address is 89.242.86.242

    The router connected to the NAS, the external IP column has 89.242.86.242 the internal 192.168.1.234 for every port the DSM needs.

    Finally the domain provider 1and1 that I pay for projectionpictures.com and .co.uk has http://projection.synology.me in the domain forwarding for both .com and .co.uk at the moment, but that maybe wrong.

    In myphpadmin in the projectionpictures database in the wp_options entry for site URL and home URL http://192.168.1.234/projectionpictures. That URL appears in the Settings in the General settings for both site URL and Home entries. Then update permalinks.

    What has to be done to htaccess and wp-config-php and any other files in that folder in web station for everything to work and http://www.projectionpictures.com to appear as a live site.

    Moderator bcworkz

    (@bcworkz)

    That topology is a little outside my experience, but I think I know what you need to do. I don’t think you want to use domain forwarding. What happens in the user’s browser address field is less than desirable. Go ahead and set the projectionpictures (both .com and .co.uk) domain A records to the external IP of your router. (89.242.86.242) Remove the domain forwarding. It might take a day or so for the change to reach all DNS servers, it depends on the record’s TTL value.

    If you already are serving projection.synology.me content from the NAS server, your router probably already has port forwarding setup to send port 80 and 443 traffic to the server. That’s good, the same will now happen to projectionpictures traffic as well.

    Now the server needs to sort out what to serve for what domain that is requested. When there was only the projection.synology.me domain, the domain was of no concern, all traffic went to the server’s public root. Presumably that still should happen for projection.synology.me, but now we need to get projectionpictures domains to the projectionpictures folder. You could add .htaccess rules to do this, but I think virtual hosts is a better way forward.

    There is probably already a default virtual host file. It’ll have the extension .conf and will contain <VirtualHost *:80> and maybe <VirtualHost *:443> server directives. The location varies, so do a ‘net search to determine the location for your situation. You can use the default file as a guide, but I would create a new file. More examples at https://httpd.apache.org/docs/2.4/vhosts/examples.html

    Add an entry for every domain and every port to serve on. Sub-domain and domain variants can be specified with ServerAlias directives if they use the same DocumentRoot directive and port. Include directives for your projection.synology.me domain as well.

    You need to tell Apache to stop using the default file and to now use the file you just created. How this is done may be unique to Synology, IDK. A ‘net search is your friend. I use the command line for my Linux box. YMMV. Remove the default: a2dissite 000-default.conf (default name varies)

    Add the new file: a2ensite projectionpictures.conf (or whatever you named the file)

    Then reload Apache: service apache2 reload

    Assuming the DNS change has propagated, when you request projectionpictures.com, you should get the home page from 192.168.1.234/projectionpictures/

    Thread Starter pr0ject10n

    (@pr0ject10n)

    You said ‘That topology is a little outside my experience, but I think I know what you need to do. I don’t think you want to use domain forwarding. What happens in the user’s browser address field is less than desirable. Go ahead and set the projectionpictures (both .com and .co.uk) domain A records to the external IP of your router. (89.242.86.242) Remove the domain forwarding. It might take a day or so for the change to reach all DNS servers, it depends on the record’s TTL value.’

    I have done this in a ‘A @’ record entry, I’ve entered 89.242.86.242. The domain forwarders now have this:
    DNS settings were modified
    IPv4: 89.242.86.242
    IPv6: 2001:08d8:1001:5348:5e07:2f1f:9f4f:700e

    Now I need to wait for that to take effect, I’ll give it till tomorrow about this time.

    I would have seen your above reply sooner but for some reason I don’t appear to getting a notification email to highlight your reply. So I apologies for taken so long to read what you’ve written.

    You said ‘If you already are serving projection.synology.me content from the NAS server, your router probably already has port forwarding setup to send port 80 and 443 traffic to the server. That’s good, the same will now happen to projectionpictures traffic as well.’ Ports 80 and 443 are in place and I have setup virtual hosts for each of theses variations. http://www.projectionpictures.com, projection.synology.me, http.www.projectionpictures.com, and https.www.projectionpictures.com.

    One thing to point out in the 1and1 dashboard before I changed the A records to 89.242.86.242, the port forwarding was using http://192.168.1.234/projectionpictures for both the .co.uk and com. For the .co.uk you could click on a live shortcut projectionpictures.co.uk and it would redirect to http://192.168.1.234/projectionpictures, but for .com it would redirect to http://projectionpictures.com – and no page would be displayed. At the moment I’m waiting for an SSL certificate to be disabled as I had set it up previously. 1and1 give you one free SSL certificate to use with your domain should you need it, but if you want to disable it you have to phone them and talk to customer support (not very convenient).

    You said: ‘There is probably already a default virtual host file. It’ll have the extension .conf and will contain <VirtualHost *:80> and maybe <VirtualHost *:443> server directives. The location varies, so do a ‘net search to determine the location for your situation. You can use the default file as a guide, but I would create a new file. More examples at https://httpd.apache.org/docs/2.4/vhosts/examples.html&#8217;
    Does the variation of web URL’s I have setup in Web Station cover this already, (that I mentioned above) ?

    At the moment my .htaccess file contains this with the web/projectionpictures folder:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /projectionpictures/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /projectionpictures/index.php [L]
    </IfModule>

    # END WordPress

    What if anything should be changed in that?

    Moderator bcworkz

    (@bcworkz)

    I’m sorry forum notifications are not working for you. You appear to be properly subscribed to this topic. Please double check that the email address in your forum profile (click on your user name above any of your posts) is correct and the one you expect. Check your email spam folder and mark any forum notifications found as “not spam”

    @ mentions should also trigger notifications. Let’s try that too: @pr0ject10n

    Good question about .htaccess. With virtual host, the /projectionpictures/ folder is public root for the projectionpictures domains, so the folder name in relative paths is no longer valid. Occurrences in rewrite rules should be reduced to merely /, so:

    RewriteBase /
    # 3 more lines OK
    RewriteRule . /index.php [L]

    Before doing that though, go into your WP settings and set the home and site URL options to your preferred domain name URLs. Your site will no longer work right until the DNS changes come through.

    You will also want to change all other URLs in the DB to the domain name version. I like the interconnect/IT tool I linked previously for doing this. You can use the 192.168.1.234/projectionpictures/ URL to access the tool’s files or wait until the domain name changes come through and use one of those. The tool can take care of the home and site URL changes mentioned above if you haven’t already done so manually.

    Does the variation of web URL’s I have setup in Web Station cover this already, (that I mentioned above) ?

    That’s a part of your topology I don’t have experience with. What you have done is probably fine.

    Your SSL certificate status only affects HTTPS requests. It has no bearing on regular HTTP requests. I recommend focusing on plain HTTP for now and making sure that’s all working correctly. Only then do you want to think about proper SSL certificates and HTTPS.

    Thread Starter pr0ject10n

    (@pr0ject10n)

    So you want me to change the htaccess from this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /projectionpictures/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /projectionpictures/index.php [L]
    </IfModule>

    # END WordPress

    to this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # 3 more lines OK
    RewriteRule . /index.php [L]

    # END WordPress

    If I come across a bit odd at times or to literary this is because I have highly functioning autism/Asperger’s and sometimes what people have asked me to do, is not necessary how I will interpret what you’ve said.

    You said: ‘I’m sorry forum notifications are not working for you. You appear to be properly subscribed to this topic. Please double check that the email address in your forum profile (click on your user name above any of your posts) is correct and the one you expect. Check your email spam folder and mark any forum notifications found as “not spam”. My email address is where it should be I often get updates on queries about the Lodestar theme design I’m using for the thread that concerns that design.

    You said: ‘ I like the interconnect/IT tool I linked previously for doing this. You can use the 192.168.1.234/projectionpictures/ URL to access the tool’s files or wait until the domain name changes come through and use one of those. The tool can take care of the home and site URL changes mentioned above if you haven’t already done so manually.’ I’ve downloaded interconnect/IT tool zip, describe to me how this is installed or better yet is there a youtube video that explains this. If as is in my DSM (called projection) it is laid out like this:

    In projection/web folder is
    /wordpress
    /projectionpictures
    /web_images
    /phpmyadmin
    /wordpress
    /[create folder for interconnect/IT] and unzip contents into it?

    Or place [create folder for interconnect/IT] in
    projection
    /homes
    /home
    /music
    /photo
    /video
    /backup

    You said: ‘Before doing that though, go into your WP settings and set the home and site URL options to your preferred domain name URLs. Your site will no longer work right until the DNS changes come through.’
    I’ll do this before you reply to this. I will enter http://www.projectionpictures.com. Once I do that I will no longer be able to log in to the WP dash using http://192.168.1.234/wordpress/wp-admin (what should that be instead). NB: I can change the site and home URL back if needed by going into phpymyadmin directly and changing the wp_options if I get stuck in the projectionpictures database there.

    Thread Starter pr0ject10n

    (@pr0ject10n)

    CORRECTION – I meant Once I do that I will no longer be able to log in to the WP dash using http://192.168.1.234/projectionpictures/wp-admin (what should that be instead). NB: I can change the site and home URL back if needed by going into phpymyadmin directly and changing the wp_options if I get stuck in the projectionpictures database there.

    Moderator bcworkz

    (@bcworkz)

    Sorry for any confusion I may have caused. I’m saddened to hear you are struggling with Aspergers. But when it comes to interpreting instructions differently than intended, that happens to nearly everyone 🙂 Doing your best is all that can be expected of anyone.

    Anyway, this should be your .htaccess entry, complete:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Extract the files from the interconnect/it download into their own folder on your local computer. Create a new folder to contain the tool’s files at your WP installation in /projectionpictures/. The new folder will be at the same level as wp-admin, wp-content, wp-includes. Copy the tool’s files into this new folder. Files like srdb.class.php should be in this folder with no intervening folders. Let’s say this new folder is /my-srdb/. Assuming your domain and virtual host is now working correctly, access the tool with projectionpictures.com/my-srdb/.

    You will want to search for all occurrences of 192.168.1.234/projectionpictures/ and replace it with projectionpictures.com/ (or the .co.uk variant if you prefer). But first, you must backup the DB through phpMyAdmin. Do not skip the backup step! Next, do the tool’s Dry Run and inspect the replacements offered to be sure the tool will correctly do what you need. Once you are sure all is well, do the replacements for real. When done, remove the tool’s files from your server.

    Now that the domain change has propagated and you have the correct .htaccess rules, access your site with http://projectionpictures.com/ and access the backend with http://projectionpictures.com/wp-admin/ But read on before trying this…

    I may have misled you regarding virtual host setup. Apparently Web Station has a user dialog to do this and you do not edit any files directly as would normally be done with Apache. Please follow the instructions here: https://www.synology.com/en-us/knowledgebase/DSM/help/WebStation/application_webserv_virtualhost

    Your domain record is missing the www variant. It’s not absolutely required unless you want http://www.projectionpictures.com to work. It’s probably easiest to just add another A record for www.projectionpictures.com that points to 89.242.86.242. Do the same for your .co.uk variant.

    • This reply was modified 7 years, 3 months ago by bcworkz.
    Thread Starter pr0ject10n

    (@pr0ject10n)

    You said: Anyway, this should be your .htaccess entry, complete:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Done that !!!!

    You said: Extract the files from the interconnect/it download into their own folder on your local computer. Create a new folder to contain the tool’s files at your WP installation in /projectionpictures/. The new folder will be at the same level as wp-admin, wp-content, wp-includes. Copy the tool’s files into this new folder. Files like srdb.class.php should be in this folder with no intervening folders. Let’s say this new folder is /my-srdb/. Assuming your domain and virtual host is now working correctly, access the tool with projectionpictures.com/my-srdb/.

    I have:
    web/
    projectionpictures/
    wp-snapshots
    wp-includes
    wp-content
    wp-admin
    my-srdb/
    srdb.cli.php
    scrdb.class.php
    index.php
    composer.json
    srdb-tests

    If that’s right I will do the next paragraph next.

    You said: You will want to search for all occurrences of 192.168.1.234/projectionpictures/ and replace it with projectionpictures.com/ (or the .co.uk variant if you prefer). But first, you must backup the DB through phpMyAdmin. Do not skip the backup step! Next, do the tool’s Dry Run and inspect the replacements offered to be sure the tool will correctly do what you need. Once you are sure all is well, do the replacements for real. When done, remove the tool’s files from your server.

    You said:
    I may have misled you regarding virtual host setup. Apparently Web Station has a user dialog to do this and you do not edit any files directly as would normally be done with Apache. Please follow the instructions here: https://www.synology.com/en-us/knowledgebase/DSM/help/WebStation/application_webserv_virtualhost

    I have already done these variants Host Names in Virtual Host, http.www.projectionpictures.com, 192.168.1.234.synology.me, projection.synology.me, 192.168.1.234.projectionpictures, http://www.projectionpictures.com, http.www.projectionpictures.com, pointing at this directory web/projectionpictures.com

    You said: Your domain record is missing the www variant. It’s not absolutely required unless you want http://www.projectionpictures.com to work. It’s probably easiest to just add another A record for http://www.projectionpictures.com that points to 89.242.86.242. Do the same for your .co.uk variant.

    I have done this:
    for projectionpictures.co.uk I have http://www.projectionpictures.com in Redirect Targeting and in DNS record as A ‘www.projectionpicture.com’ (host name) 89.242.86.242 (value) TTL: 360
    for projectionpictures.com I have http://www.projectionpictures.com in Redirect Targeting and in DNS record as A ‘www’ (host name) 89.242.86.242 (value) TTL: 360

    In the Adjust Destination screen for each is live shortcut.
    The .co.uk variant isn’t pointing in the right direction, as it goes to URL projectionpictures.co.uk with this web page ‘Hello Welcome to Synology webstation!’
    Whereas the projectionpictures.com goes to a screen URL projectionpictures.com ‘Hello Welcome to Synology webstation!’

    I hope all that makes sense…

    Moderator bcworkz

    (@bcworkz)

    http://www.projectionpictures.com, http.www.projectionpictures.com, pointing at this directory web/projectionpictures.com

    There is no such directory, right? Isn’t the directory you want /web/projectionpictures/?

    If you can remember to do so, please demarcate quotes from me in your posts by using the b-quote button in the post editor. It makes reading posts much easier.

    Please move the new /my-srdb/ folder with the interconnect/it tool files into /web/projectionpictures/ or else you will end up editing the wrong DB! Delay using this tool until your domain name issues are resolved and domain requests end up at the right place.

    It looks like you overwrote the projectionpictures.com and projectionspictures.co.uk A records when you added the www variants. You need two A records for each top level domain, one with www, one without. If you cannot add a second A record for some reason, restore the non-www variants. Then add a CNAME record for the www variants which point to the non-www variants. CNAME records do not point to IPs like A records do.

    The variants that are currently working are returning 500 server errors. This could be because there is no /web/projectionpictures.com/ folder that you pointed to in virtual hosts. It could be because of a typo in .htaccess, but the code posted here looks good. It could also be due to any number of other issues. 500 errors are very non-specific. Let’s hope pointing to the right folder fixes things.

    Thread Starter pr0ject10n

    (@pr0ject10n)

    http://www.projectionpictures.com, http.www.projectionpictures.com, pointing at this directory web/projectionpictures.com

    There is no such directory, right? Isn’t the directory you want /web/projectionpictures/?

    You are correct there is no directory called web/projectionpictures.com only web/projectionpictures. Sorry about the confusion.

    Please move the new /my-srdb/ folder with the interconnect/it tool files into /web/projectionpictures/ or else you will end up editing the wrong DB! Delay using this tool until your domain name issues are resolved and domain requests end up at the right place.

    I have done that it I have placed my-srdb in the projectionpictures folder so its path is web/projectionpictures/mysrdb. I haven’t used it YET !

    It looks like you overwrote the projectionpictures.com and projectionspictures.co.uk A records when you added the www variants. You need two A records for each top level domain, one with www, one without. If you cannot add a second A record for some reason, restore the non-www variants. Then add a CNAME record for the www variants which point to the non-www variants. CNAME records do not point to IPs like A records do.

    I now have
    DNS settings were modified for both .com and .co.uk in the Target destination box which goes to that screen ‘Hello Welcome to Synology webstation!’.
    IPv4: 89.242.86.242
    IPv6: 2001:08d8:1001:5348:5e07:2f1f:9f4f:700e

    Just so you know when I tried to use the CNAME option to point to 89.242.86.242 in red I got ‘The hostname 89.242.86.242 is not valid. Please check your input.’ So I was only able to enter entries under ‘A’ record.
    for .co.uk there is:
    TYPE HOSTNAME VALUE
    A @ 89.242.86.242
    A projectionpictures.com 89.242.86.242
    A http://www.projectionpictures.com 89.242.86.242
    A www 89.242.86.242
    for .com (just two entries)
    A @ 89.242.86.242
    A www 89.242.86.242
    A http://www.projectionpictures.com 89.242.86.242 (will be in conflict with @ or www, so it cant be accepted)
    A projectionpictures.com 89.242.86.242 (will be in conflict with @ or www, so it cant be accepted)

    .htaccess still contains this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Once your OK with the A record DNS entries above I’ll try out the search and replace folder in web/projectionpictures/. Let me know if any other ‘A’ record variation needs to go in, especially if the DNS will accept it without overriding and disabling a prior entry.

Viewing 15 replies - 1 through 15 (of 153 total)

The topic ‘Installing plugins in a duplicate folder (from wordpress)’ is closed to new replies.