Installing plugins in a duplicate folder (from wordpress)
-
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.
-
Sorry about the DNS confusion. Registrars have different interfaces that try to make things easier. When I give you complete data, it conflicts with the “easy” user interface you actually see. Don’t worry about CNAME records, this can all be done with multiple A records. Now that I have a better idea of what you are seeing, I can give better directions.
You only need 2 A records each for the two top level domains you have (.com and .co.uk). They all will point to the same IP (89.242.86.242). The first A record is the @ record. This is shorthand for the domain name the record is for. The second is the www record, which is obviously for the www variant of each domain name. You may delete any other projectionpictures A records. If you have A records like ftp or mail, etc., leave those alone.
Something is still wrong with the server or WP configurations. The non-www URL leads to the web station enabled page, when we should be seeing the WordPress home page. This may be resolved once you get the DNS records straight. The www URL ends up showing a 500 error. This might be resolved once you are able to use the interconnect/it tool. One good bit of news is http://www.projectionpictures.com/readme.html returns the right WordPress readme file, and http://www.projectionpictures.com/wp-login.php also displays. Unfortunately, I think it’s the wrong WP site, the one in /www/. The site http://projection.synology.me leads to. Is this the site titled “Ian Mansfield”?
What is the title of the WP site at /www/projectionpictures/? In any case, the virtual host setting of one site or the other is not doing what it should. To avoid further confusion, I’m not going to suggest other changes until you have the DNS records working properly and I know what site title I should be looking for in each location.
OK so, so far I can access http://192.168.1.234/projectionpictures/my-srdb/ the menu screen within in it. Unfortunately I’ve got a hurdle straight away with this warning.
SQLSTATE[HY000] [1045] Access denied for user 'projectionpictur'@'localhost' (using password: YES)I can ‘update details’ but the other buttons ‘dry run’, ‘live run’, convert to utf8 Unicode ,’convert to utf8mb4 unicode’ are all inactive.
I’ve looked this up in google but I have various solutions, so I thought I would ask you first. The projectionpictures database phpymyadmin is backed up as an sql file.
So I can’t address this yet.
Something is still wrong with the server or WP configurations. The non-www URL leads to the web station enabled page, when we should be seeing the WordPress home page. This may be resolved once you get the DNS records straight. The www URL ends up showing a 500 error. This might be resolved once you are able to use the interconnect/it tool. One good bit of news is http://www.projectionpictures.com/readme.html returns the right WordPress readme file, and http://www.projectionpictures.com/wp-login.php also displays. Unfortunately, I think it’s the wrong WP site, the one in /www/.
It appears to be an issue with the permissions assigned in File Station for projectionpictures folder. I’ve been trying to replicate those that work for wordpress folder already. It’s setup with General owner ‘http’ in the Permission tab, it has SYSTEM ‘full control’ Administrators ‘FULL CONTROL’ and two entries for http as READ only but something in the projectionictures isn’t quite working correctly, even though I’ve configured them the same for the entire folder. As I’ve only been able to adjust the right permissions to allow access for individual files with the folder and I shouldn’t have to do that.
For example wp-config.php in projecitonpictures if I try to open that with TExt editor this message appears ‘Sorry, this user account has not assigned proper privileges’. However if I right click on this file an assign ‘FULL CONTROL’ as administrators privileges I can open it the Text Editor. ‘SYSTEM’ Full Control’ and http ‘READ’ are already there.
You only need 2 A records each for the two top level domains you have (.com and .co.uk). They all will point to the same IP (89.242.86.242). The first A record is the @ record. This is shorthand for the domain name the record is for. The second is the www record, which is obviously for the www variant of each domain name. You may delete any other projectionpictures A records. If you have A records like ftp or mail, etc., leave those alone.
I will address the 4 ‘A’ record entries for .co.uk in the DNS with 1and1 once we have solved above.
Which two of these should be removed?:
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.242UPDATE –
With regards to this that I typed before:It appears to be an issue with the permissions assigned in File Station for projectionpictures folder. I’ve been trying to replicate those that work for wordpress folder already. It’s setup with General owner ‘http’ in the Permission tab, it has SYSTEM ‘full control’ Administrators ‘FULL CONTROL’ and two entries for http as READ only but something in the projectionictures isn’t quite working correctly, even though I’ve configured them the same for the entire folder. As I’ve only been able to adjust the right permissions to allow access for individual files with the folder and I shouldn’t have to do that.
For example wp-config.php in projecitonpictures if I try to open that with TExt editor this message appears ‘Sorry, this user account has not assigned proper privileges’. However if I right click on this file an assign ‘FULL CONTROL’ as administrators privileges I can open it the Text Editor. ‘SYSTEM’ Full Control’ and http ‘READ’ are already there.
I have solved ABOVE, BUT the error message in http://192.168.1.234/projectionpictures/my-srdb/:
SQLSTATE[HY000] [1045] Access denied for user 'projectionpictur'@'localhost' (using password: YES)I still there, for database it gives me these details:
name: projectionpictures
user: projectionpictures
pass: [redacted]
host: localhost
port: 0-
This reply was modified 7 years, 3 months ago by
bcworkz.
You mustn’t publish passwords to anything to the public. If you included your actual DB password in your last post, you need to change it. There is little risk right now as long as public access is not yet working, but your plan is to get it working. Then the current password becomes a security risk.
Port 0 looks suspicious. However, it is a valid port, but I’m unaware of anything using it. The default for PHP mysqli functions is 3306. The user in the error message does not match the actual user name, but that could just be a parsing error. Your WP site at 192.168.1.234/projectionpictures/ is working correctly, yes? The error message indicates a configuration problem, but if WP is working, the srdb tool should also work, it works off the credentials in wp-config.php. The only time I have seen it fail until now is on a server with aggressive modSecurity rules.
You could try one of the plugins mentioned in #11 of Moving WordPress.
I apologies for publishing the password to my phpmyadmin database for projectionpictures but that can be changed easily.
I’m going to take an educated guest why there maybe a problem with
SQLSTATE[HY000] [1045] Access denied for user 'projectionpictur'@'localhost' (using password: YES)
It could be because before we started installing A record in the domain provider DSN records. We decided to change the site URL and the home URL in the WP dashboard for projectionpictures from http://192.168.1.234/projectionpictures to http://www.projectionpictures.com for both. I can change this back in wp_options in myphpmyadmin dashboard, so the http://192.168.1.234/projectionpictures/wp-login.php works again, as its not at the moment. Shall I change it back for the time being?You said:
192.168.1.234/projectionpictures/ is working correctly, yes?
No its not I get a page 404 Page cannot be Displayed.
You said:
The only time I have seen it fail until now is on a server with aggressive modSecurity rules
Do Synololgy DSM units have aggressive modSecurity then?
No, don’t change the home and site URL options. The current settings will eventually be correct. I didn’t phrase my question correctly. More accurately:
Back when the settings were set to http://192.168.1.234/projectionpictures/, the WP site there was working correctly, yes? My intent was just to narrow down what the possible cause for the srdb tool failing to work might be.I really doubt Synology would have modSecurity running by default on Web Station. It’s primarily used by commercial hosts. But in fact, I don’t really know. Again, I didn’t phrase my statement very well. I should have just said “I can’t think of any reason the srdb tool would fail to work if the DB connection is working properly for WordPress.”
What is the site title of each WP installation? Both the one at /www/ and the one at /www/projectionpictures/? The value of option name “blogname” in the options table if you need to double check through phpMyAdmin. I don’t think the virtual hosts configuration is working correctly. I think domain requests are landing at /www/ and not /www/projectionpictures/ as expected. But it’s hard to tell with the various errors happening. The only useful clue I can see is the “Back to {$blogname}” link on wp-login.php.
At least it now looks like the DNS records are sorted. A bit of progress. Are you currently able to manage server files and folders? Once we’re sure virtual host is working, the next debugging step involves renaming and copying folders. As long as the site and home URL settings are set for the domain name, finding and replacing other URLs in the DB are of minor importance.
You said:
I didn’t phrase my question correctly. More accurately:
Back when the settings were set to http://192.168.1.234/projectionpictures/, the WP site there was working correctly, yes?Yes
In phpmyadmin (wp_options)
the site title is currently: http://www.projectionpictures.com
the home address is : http://www.projectionpictures.com
the blogname is: Ian MansfieldYou said:
What is the site title of each WP installation? Both the one at /www/ and the one at /www/projectionpictures/?
Only 2 installations; 1 is the wordpresss and 2 projection pictures and their folders are in the ‘web’ folder, as is http://192.168.1.234/projectionpictures/my-srdb/
Would you like to look in the DSM yourself as I can supply you with an external http URL, so we can solve the reason why this warning is coming up. If your comfortable doing that I can give you the password. It might quicken matters and overcome you guessing what the problem is as a theory?
You said:
I think domain requests are landing at /www/ and not /www/projectionpictures/ as expected. But it’s hard to tell with the various errors happening. The only useful clue I can see is the “Back to {$blogname}” link on wp-login.php
Not a single visual host ‘Document root’ path is aimed at /www/ only they are all aimed at web/projectionpictures except one which is aimed at web/wordpress and its hostname is simply wordpress.
UPDATE:
Using Velvet Blues update I changed the URL from htttp://192.168.1.234 to http://www.projectionpictures.com.
I can now login to http://www.projectionpictures.com/wp-admin using web browser Opera as Internet Explorer refuses to engage with it.
I can also open http://www.projectionpictures.com/readme.html in Opera, not in internet explorer.
Internet Explorer refuses to see any page concerning projectionpictures and its dedicated wordpress dashboard.
However if I try and visit the site http://www.projectionpictures.com with the WP dashboard I get this page:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
This URL http://192.168.1.234/projectionpictures/my-srdb/
Still has
SQLSTATE[HY000] [1045] Access denied for user 'projectionpictur'@'localhost' (using password: YES)OK, cool. We’re landing in the right place and now need to resolve why the home page is going 500.
Thank you very much for offering privileged access. It would indeed make finding a resolution much easier. Unfortunately, I must decline. It is against the guidelines of these forums to let anyone gain privileged access to member’s sites or related accounts. Doing so carries greater liability and risk than most people realize. This “debugging by proxy” we need to do is certainly more difficult and carries with it its own set of problems, but it is the way it needs to be. Thank you for being so patient with all of this.
The following is all relative to the /www/projectionpictures/wp-content/ path.
First rename /plugins/ (/plugins.orig/ for example). This will disable all plugins. To restore plugins later on, restore the original name, then log into the back end and activate each plugin you want active.Next, rename /themes/ in a similar manner. Create a new /themes/ folder. Be sure permissions are correct, usually 755. Copy (not move) one of the default twenty* theme folders along with all of its files and sub-folders from the renamed /themes/ to the new one. This forces WP to use the default theme. To restore your normal theme later on, delete the new /themes/ folder we just created, restore the original folder’s proper name, then log into the back end and switch to your normal theme.
This should resolve the 500 and let your home page display. It will not look right due to the theme change and anything dependent on a plugin will not work. But crucially, we have removed the cause of the 500 error. If by chance the 500 remains after these changes, we will need to follow a different debug course.
Assuming the 500 error is gone, we now zero in on the cause. First restore your normal theme as mentioned above. Check the home page loads correctly by doing a hard refresh in your browser after the page first loads. On PCs press Ctrl-5 to do this. Google how to do this for your specific browser if using a Mac. Next, start activating your plugins, one at a time, checking for a home page 500 error after each.
Sooner or later, the 500 error will recur. The last module you activated is the cause. Get with the responsible developer for resolution, or find an alternative.
The following is all relative to the /www/projectionpictures/wp-content/ path.
First rename /plugins/ (/plugins.orig/ for example). This will disable all plugins. To restore plugins later on, restore the original name, then log into the back end and activate each plugin you want active.What does log into the back end mean exactly, I am unfamiliar with this wording, sorry.
In DSM > File Station in projectionpictures:
I have renamed plugins folder as plugins.org as you have asked.
I’ve created a new Themes folder (after renaming the actual folder as Themes.orig). When I first created this folder the Properties General Owner was on ‘admin’, which I’ve changed to ‘http’ as all the others are as well. In Properties > Permission both SYSTEM and Administrators have FULL CONTROL and http is READ only. The same Advanced Permissions as all the other folders have.
I copied ‘Lodestar’ folder into this newly created Themes folder, unless you really want me to usetwenty* theme
. I had to do the same Properties General Owner change to ‘http’.
What is 755? Never seen this.
Therefore I haven’t tested for this yet:
This should resolve the 500 and let your home page display. It will not look right due to the theme change and anything dependent on a plugin will not work. But crucially, we have removed the cause of the 500 error. If by chance the 500 remains after these changes, we will need to follow a different debug course.
UPDATE:
I decided as I was curious to login to:
I can now login to http://www.projectionpictures.com/wp-admin using web browser Opera as Internet Explorer refuses to engage with it – Page Cannot Be Displayed
I went to general settings > Permalinks and pressed save twice for http://www.projectionpictures.com.I then opened http://www.projectionpictures.com In Opera and pressed Ctrl 5 and it appears as it should do. But internet explorer refuses to just Page Cannot be displayed ,even if I use Ctrl-5. Should this be a worry?
Does it appear for you as it does for me. I have already changed the plugins folder back from plugins.org. No plugins needed to be reactivated.
-
This reply was modified 7 years, 3 months ago by
pr0ject10n.
UPDATE:
projectionpictures.co.uk goes toWeb Station has been enabled. To finish setting up your website, please see the “Web Service” section of DSM Help.
So something wrong there probably with the setting in the DNS with the domain provider. I’ve listed these.
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.242For me, using Chrome, the www variant is working for both the .co.uk and .com domains. The non-www variant returns the web station page. Same using Firefox. This is for accessing the home page since I cannot access /wp-admin/. If you are only getting the page cannot be displayed error in IE when accessing /wp-admin/ but the home page works OK, it’s not a concern unless you or others require /wp-admin/ access through IE. If you normally use Opera and can access /wp-admin/ that way, it’s not worth worrying about IE.
Copying one of the default twenty* themes was a debugging step to eliminate your theme as a possible source of the 500 error. Since renaming /plugins/ resolved the 500 error, that step is no longer necessary. You may now delete the new /themes/ folder and restore the original folder’s name. Double check that your theme is in both the original and new /themes/ folder before deleting the new one. Restoring /plugins/ is fine, but do not activate any plugins if you don’t really need any.
755 permission is a Linux shortcut term. Since your permissions interface is different, it would be meaningless to you. Since WP is now working and you will be restoring the original folders, this aspect of the problem is moot.
“Log into the back end” is a common phrase of art among WP users for logging in through wp-login.php and using the admin area at http://www.projectionpictures.com/wp-admin/. Others call it the “back office”. (For some reason I really dislike that particular term.) Conversely, the public facing side of WP, your web site itself, is commonly referred to as the “front end”. But never “front office” 🙂
It has been slow and tedious, but we’ve been making progress. The remaining issue is the non-www variant of your domains returning the web station page instead of your home page. This sounds like a virtual hosts issue to me, but according to your last post, the DNS records still need corrections. Let’s deal with DNS first. Maybe I’m wrong about virtual hosts and correcting DNS will resolve the web station page problem.
Please remove these A records:
A projectionpictures.com 89.242.86.242
A http://www.projectionpictures.com 89.242.86.242All you need are these:
A @ 89.242.86.242
A www 89.242.86.242The @ record is shorthand for “projectionpictures.com” or whatever domain the DNS record is for. You don’t need a separate record for projectionpictures.com. And “http://whatever” never should be in any A record.
Please remove these A records:
A projectionpictures.com 89.242.86.242
A http://www.projectionpictures.com 89.242.86.242I’ve removed the unwanted DNS records from 1and1 DNS records.
So both the .co.uk and .com only have:
A @ 89.242.86.242
A www 89.242.86.242The themes and plugins folder are back to there normal default status.
The http://192.168.1.234/projectionpictures/my-srdb/ (my-scrdb) folder is still in the projectionpictures folder do you want me to remove it as the error message below is still there
SQLSTATE[HY000] [1045] Access denied for user 'projectionpictur'@'localhost' (using password: YES) -
This reply was modified 7 years, 3 months ago by
The topic ‘Installing plugins in a duplicate folder (from wordpress)’ is closed to new replies.