Forum

Thread tagged as: Problem, Hosting

Moving a Perch 2 account

I'm trying to move a Perch 2.x site to another server. I exported/imported the database with no issues. I also updated the Perch config.php properly.

I flipped the DNS over to the new site and no content will show. In my Perch admin it shows the data in about half of the windows, but it doesn't pipe through to the live pages. The other half of the admin pages show up as "NEW".

I had to flip the DNS back to the old server so that the client's site won't be down.

So my questions are:

1) How can I configure the new site such that I can work on it? It says my license doesn't extend to that domain.

2) How can I get Perch to work again?

Matt Milunic

Matt Milunic 0 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

1) You can add your staging domain to your license.

2) We would need to see the Diagnostic Report for both sites to be able to help.

May I have a link to instructions for running diagnostic reports, please?

Log into perch. On right there is a link to settings, then you will see a tab for diagnostics. Copy the output you have on the screen into the forum

Current Server:

Health check

Perch is up to date
PHP 5.3.26 is very out of date.
More info
MySQL 5.0.92-log is up to date
Image processing available
File upload size is low. You can only upload files up to 2M.

Summary information

Perch: 2.8.34, PHP: 5.3.26, MySQL: mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34)
App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); ?>
PERCH_LOGINPATH: /admin
PERCH_PATH: /Users/uheights/Sites/admin
PERCH_CORE: /Users/uheights/Sites/admin/core
PERCH_RESFILEPATH: /Users/uheights/Sites/admin/resources
Image manipulation: GD
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
HTTP_HOST: www.uheights.net
DOCUMENT_ROOT: /Users/uheights/Sites
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php

New Server:

Perch information

Perch: 2.8.34
Production mode: Production (100)
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (70), perch2_content_items (105), perch2_content_regions (29), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (1), perch2_pages (24), perch2_resource_log (0), perch2_resource_tags (0), perch2_resources (0), perch2_resources_to_tags (0), perch2_settings (16), perch2_user_passwords (0), perch2_user_privileges (27), perch2_user_role_privileges (15), perch2_user_roles (2), perch2_users (2), rates (18)
Users: 2
PHPMailer: 5.2.21
App runtimes:

<?php
    include(PERCH_PATH.'/core/apps/content/runtime.php');
?>

Editor plug-ins: markitup
H1: 5b9a1db6f7b6c63d8cb0d966a8e499ef
L1: ce8e818a7e011d0513b6ae6e6efa58ac
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.2.5: done
latest_version: 2.8.15
headerScheme: light
dashboard: 0
content_hideNonEditableRegions: 0
logoPath: /admin/resources/logo_BM.png
update_2.8.34: done
on_sale_version: 2.8.34
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: uheights
PERCH_DB_SERVER: 107.180.119.101
PERCH_DB_DATABASE: uheights
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/New_York
PERCH_EMAIL_FROM: mmilunic@icomdesign.com
PERCH_EMAIL_FROM_NAME: Matt Milunic
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/matthewmilunic/public_html/uheights.net/admin
PERCH_CORE: /home/matthewmilunic/public_html/uheights.net/admin/core
PERCH_RESFILEPATH: /home/matthewmilunic/public_html/uheights.net/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/matthewmilunic/public_html/uheights.net/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20

Hosting settings

PHP: 5.6.27
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.6.33
MySQL server: 5.6.33-cll-lve
Free disk space: 204.46 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, mbstring, tokenizer, xml, cgi-fcgi, bcmath, dom, fileinfo, gd, imagick, imap, inotify, intl, json, exif, mcrypt, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, soap, xmlreader, xmlrpc, xmlwriter, mhash
GD: Yes
ImageMagick: Yes
PHP max upload size: 2M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 2M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PATH: /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
PWD: /usr/local/cpanel/cgi-sys
PHP_FCGI_MAX_REQUESTS: 5000
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
REQUEST_URI: /admin/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 52669
SCRIPT_FILENAME: /home/matthewmilunic/public_html/uheights.net/admin/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@beta.uheights.net
CONTEXT_DOCUMENT_ROOT: /home/matthewmilunic/public_html/uheights.net
REQUEST_SCHEME: http
DOCUMENT_ROOT: /home/matthewmilunic/public_html/uheights.net
REMOTE_ADDR: 8.40.56.219
SERVER_PORT: 80
SERVER_ADDR: 107.180.119.101
SERVER_NAME: beta.uheights.net
SERVER_SOFTWARE: Apache/2.4.23
LD_LIBRARY_PATH: /usr/local/apache/lib
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: close
HTTP_COOKIE: __utma=17693309.463564198.1488215530.1488215530.1488223855.2; __utmz=17693309.1488215530.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=171703091.1710212253.1489178686.1489178686.1489178686.1; __utmz=171703091.1489178686.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); cmsa=1; PHPSESSID=db8e9ck6etk1lnnagcne0nf5k0
HTTP_REFERER: https://beta.uheights.net/admin/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0
HTTP_HOST: beta.uheights.net
UNIQUE_ID: WMWton8AAAEAANfRTCYAAAAX
FCGI_ROLE: RESPONDER
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1489350050.0011
REQUEST_TIME: 1489350050

I think that's all of it...

Drew McLellan

Drew McLellan 2638 points
Perch Support

That looks ok. Can you turn debug on and let me know what it outputs at the bottom of the page on one of the pages that isn't working?

https://docs.grabaperch.com/perch/configuration/debug/

Debug Message [1] SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='66488aeb341decb50bfbe7b6ad0167cd' LIMIT 1 UPDATE perch2_users SET userHash='98c734fc6963948b64befc6be345073f' WHERE userID='1' [27] SELECT p.privKey FROM perch2_user_privileges p [16] SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID [15] SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0

Drew McLellan

Drew McLellan 2638 points
Perch Support

That looks like it's from the control panel. What is output on the page itself?

Here's a page that is not working. I see no output:

https://beta.uheights.net/amenities.php

Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you add this to the end of your page?

<?php PerchUtil::output_debug(); ?>

It is there now.

Drew McLellan

Drew McLellan 2638 points
Perch Support

So it looks like it's successfully fetching two regions for your page. How many shared regions does your site have?

It only has the one.

Some of the content shows in the admin, but not on the site. Some of the pages show up as NEW in the admin, so I have no idea how to proceed with those either.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's different between the two sites?

The file extensions have been changed to .php from .html

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you updated the page paths in Perch to match?

Thank you Drew, that did the trick.

I'm on to moving the next one. I set up a subdomain: https://tcibeta.icomhosting.com/

I added it to my license. When I try to put the password in the Perch Admin I get: "Sorry, your license key isn't valid for this domain."

What to do?

That ship seems to have righted itself. Perhaps just took a little while.