Forum

Thread tagged as: Problem

Moving several sites to new server resource files not showing

Hi I need to move several sites to a new server. Two are in progress but in both cases the resource files are not showing up in CMS or on the web pages. I have checked the files are on the server, resource folder is writeable along with the bucket folders. buckets.php paths are correct. Any ideas?

Site 1

Perch is up to date
PHP 5.6.21 is up to date
MySQL 5.5.5-10.1.13-MariaDB is up to date
Image processing available

Summary information

Perch: 2.8.24, PHP: 5.6.21, MySQL: 5.3.12-MariaDB, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.24), assets (2.8.24), categories (2.8.24)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_LOGINPATH: /cms
PERCH_PATH: /var/www/vhosts/domain.co.uk/httpdocs/cms
PERCH_CORE: /var/www/vhosts/domain.co.uk/httpdocs/cms/core
PERCH_RESFILEPATH: /var/www/vhosts/domain.co.uk/httpdocs/cms/resources
Image manipulation: GD
PHP limits: Max upload 16M, Max POST 16M, Memory: 64M, Total max file upload: 16M
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
Resource folder writeable: Yes
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
REQUEST_URI: /cms/core/settings/diagnostics/
DOCUMENT_ROOT: /var/www/vhosts/domain.co.uk/httpdocs
HTTP_HOST: domain.co.uk

Site 2 Running You are running Perch 2.8.24

Ian Gordon

Ian Gordon 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What process are you following to move the sites?

I ftp the files from Dreamweaver to the new server and and copy the database over with mysqladmin. I can see everything is in place, etc must be missing something silly?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that should be fine. Can you clarify exactly what you're seeing when you say "resource files are not showing up" ?

I think it is path issue, but just cannot find it. [link to image] (https://wood-leigh.co.uk/Screen%20Shot%202016-05-09%20at%2018.22.53.png) When I check the buckets nothing is showing up even though the files are on the server.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What entries do you have in your config/buckets.php file?

<?php return array( 'datasheets' => array( 'web_path' => 'https://domain.co.uk/cms/resources/datasheets', 'file_path' => '/var/www/vhosts/domain.co.uk/httpdocs/cms/resources/datasheets'),

'reports' => array( 'web_path' => 'https://domain.co.uk/cms/resources/reports', 'file_path' => '/var/www/vhosts/domain.co.uk/httpdocs/cms/resources/reports'),

'pricelist' => array( 'web_path' => 'https://domain.co.uk/cms/resources/pricelist', 'file_path' => '/var/www/vhosts/domain.co.uk/httpdocs/cms/resources/pricelist'),

'kpi' => array( 'web_path' => 'https://domain.co.uk/cms/resources/kpi', 'file_path' => '/var/www/vhosts/domain.co.uk/httpdocs/cms/resources/kpi')

);

Just a thought, I moved a site that had all the resource files in default and does not use buckets. It works fine on the new server.

Another thought the files originally where load to httpsdocs and now will be in httpdocs/ ...

Drew McLellan

Drew McLellan 2638 points
Perch Support

What URL are the broken images referencing?

Another thought the files originally where load to httpsdocs/ and now will be in httpdocs/ ...

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me the exact URL that is 404ing?

Sorry they are in protected directories

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. I only wanted to see how the path was wrong. I don't need to visit the URL.

Let me know if you get it sorted.

I think the problem might be around the buckets resources. Could I move all the resources in the buckets to within the just the resources directory, remove buckets.php from the config file would the resources be found by default? Or do I need to edit anything in the database as well? I moved another site to the same server without any issues but all the resources are within the resources directory ie no bucket rescources

Drew McLellan

Drew McLellan 2638 points
Perch Support

Check the paths you're getting to the images that are giving a 404. Look and see what you're getting and compare it to what you expect those paths to be.

Sorry to waste your time Drew .. I have moved several sites now and all assets including buckets arrived safely on new server. I think my issue was not waiting long enough before the DNS had resolved, so I was seeing weird things.