Hi
Im working on my first modx site and have run into problems moving the site from the virtual server to the remote. Im using a temporary url at the moment as the old site is still running...
Web server:
Server: Localhost via UNIX socket
Server version: 5.1.52
Protocol version: 10
User: client@localhost
MySQL charset: UTF-8 Unicode (utf8)
Database:
MySQL client version: 5.1.52
PHP extension: mysql
phpMyAdmin:
Version information: 3.3.9.2
Using: Modx revolution 2.0.7-pl - downloaded it early January.
Following the info in this link
http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server#
Cleared the cache and turned off friendly urls and exported and imported the sql database using phpmyadmin and cpanel.
Ftp all the files to the remote server - assets etc.
NEXT -Updated Config Files
Followed all this..
Once you’ve deployed files to the new server, you need to update the main configuration file: core/config/config.inc.php. You have to update paths to 6 different resources. Open the file and update the values for the following variables doing a find and replace:
*****My path is /home/client/public_html/core/
/home/client/public_html/core/model/modx/processors/ etc. etc.******
/* PATHS */
$modx_core_path= ’/path/to/modx_doc_root/core/’;
$modx_processors_path= ’/path/to/modx_doc_root/core/model/modx/processors/’;
$modx_connectors_path= ’/path/to/modx_doc_root/connectors/’;
$modx_manager_path= ’/path/to/modx_doc_root/manager/’;
$modx_base_path= ’/path/to/modx_doc_root/’;
$modx_assets_path= ’/path/to/modx_doc_root/assets/’;
/* HOST (used for command-line PHP stuff) */
$http_host=’yoursite.com’;
****Im on a temporary url so used ’50.22.131.93’ IP address here******
If you are also moving your site into or out of a subfolder, be sure to update the variables such as $modx_connectors_url, $modx_manager_url, and $modx_base_url. They should generally
end with a slash (e.g., $modx_base_url=’/’ for a site not in a subfolder).
*****I used /~client/ here as Im using a temporary url and that is the username*****
Permissions
Before you can edit your config file, you may need to loosen up the permissions. After you’ve edited it, be sure you restore the read-only permissions on the file.
There are also 3 additional configuration files that contain two PHP constants:
define(’MODX_CORE_PATH’, ’/path/to/modx_doc_root/core/’);
******Changed the same paths again /home/client/public_html/core/******
define(’MODX_CONFIG_KEY’, ’config’);
/config.core.php
/connectors/config.core.php
/manager/config.core.php
Make sure you update the paths in these files as well.
*****I also updated the database with the path I used earlier using the search in phpmyadmin******
UPDATE `your_revo_db`.`workspaces` SET path=’/path/to/modx_doc_root/core/’ WHERE id=’1’;
My changes: `client_modx1`. `modx_workspaces` SET path=’/home/client/public_html/core/ WHERE id=’1’;
I also edited the .htaccess file with info connecting to the temporary url, this is what Im putting into browser to test
http://50.22.131.93/~client/
Used the info from this post for temporary urls:
# Friendly URLs Part
RewriteEngine On
RewriteBase /~client/
RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.domain.com for SEO
RewriteCond %{HTTP_HOST} !^XX.XXX.XX.XXX[NC]
RewriteRule (.*) XX.XXX.XX.XXX/$1 [R=301,L]
# Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Additional Settings Follow
# ExpiresActive On
# ExpiresByType image/gif A2592000
# ExpiresByType image/jpeg A2592000
# ExpiresByType image/png A2592000
# BrowserMatch "MSIE" brokenvary=1
# BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
# BrowserMatch "Opera" !brokenvary
# SetEnvIf brokenvary 1 force-no-vary
I was getting a error 404 last week, changed a few things then got a white blank page and now Im error 503 site temporarily unavailable.
When I test /manager
I get
Warning: include_once(/home/client/public_html/home/client/public_html/core/model/modx/modx.class.php) [function.include-once]: failed to open stream: No such file or directory in /home/client/public_html/manager/index.php on line 47
Warning: include_once() [function.include]: Failed opening ’/home/client/public_html/home/client/public_html/core/model/modx/modx.class.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/client/public_html/manager/index.php on line 47
Warning: include(/home/wright/public_html/home/client/public_html/core/error/unavailable.include.php) [function.include]: failed to open stream: No such file or directory in /home/client/public_html/manager/index.php on line 48
Warning: include() [function.include]: Failed opening ’/home/client/public_html/home/client/public_html/core/error/unavailable.include.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/client/public_html/manager/index.php on line 48
Site temporarily unavailable!
Any ideas would be great.
Thanks
D