Hi, I have just transferred all the files from MODX evolution to my server via filezilla. When I go to my website (development-theory.org) however it displays this message
"MODx is not currently installed or the configuration file cannot be found. Do you want to install now?"
I click on install now, on the next screen I choose my language, then I can only opt to install a new copy of modx
on the next screen I’m asked for
Database host:
Database login name:
Database password:
When I enter these details I then have to " Test database server connection and view collations."
However when I test these details it modx tell me that "Connection to host: failed!"
Did my filezilla upload correctly?
Is there something I’m missing?
I understand that modx is a free cms I really like its features but I can’t seem to get it uploaded. If mod x support can’t help, is there anywhere I can go for someone to help me one on one for this ?
If noone is willing to help, can anyone recommend a good cms (which may cost money) with adequate support to help me upload the system to my host??
Thanks,
F.
Like life, love festivals.
Have you actually created your database ??
If so then check the details you have given as the error means it cannot connect to the database, therefore connection fails
Secondary hint:
If your DB server runs on the same machine as the webserver type "localhost" for the hostname cause many shared hosting providers restrict access to that...
Greetz
JUSI
Hi
Did you manage? There are loads of commercial CMS s around, but they cost big bucks.
You could PM your details to someone of modx and we could set that up. Because it sounds as if you did not set up your database. Which is easy enough through PHP admin. Just check the FAQ from your provider,
besr, fr.
Hey guys almost there!! the last issue I think is due to my config.inc.php file. The following happens on my last page (sorry for the long post but it is mostly code)
"
Install results
Writing configuration file: FAILED!
MODx couldn’t write the config file. Please copy the following into the file manager/includes/config.inc.php"
Here is a copy of the text to be copied
"
<?php
/**
* MODx Configuration file
*/
$database_type = ’mysql’;
$database_server = ’mysql359int.cp.XXXXXXXX.com’;
$database_user = ’XXXXXXXXX’;
$database_password = ’XXXXXXXXXX’;
$database_connection_charset = ’latin1’;
$database_connection_method = ’SET NAMES’;
$dbase = ’`db1049509_modxcms`’;
$table_prefix = ’modx_’;
error_reporting(E_ALL & ~E_NOTICE);
$lastInstallTime = 1253543097;
$site_sessionname = ’SN4ab78cb95c2b9’;
$https_port = ’443’;
// automatically assign base_path and base_url
if(empty($base_path)||empty($base_url)||$_REQUEST[’base_path’]||$_REQUEST[’base_url’]) {
$sapi= ’undefined’;
if (!strstr($_SERVER[’PHP_SELF’], $_SERVER[’SCRIPT_NAME’]) && ($sapi= @ php_sapi_name()) == ’cgi’) {
$script_name= $_SERVER[’PHP_SELF’];
} else {
$script_name= $_SERVER[’SCRIPT_NAME’];
}
$a= explode("/manager", str_replace("\\", "/", dirname($script_name)));
if (count($a) > 1)
array_pop($a);
$url= implode("manager", $a);
reset($a);
$a= explode("manager", str_replace("\\", "/", dirname(__FILE__)));
if (count($a) > 1)
array_pop($a);
$pth= implode("manager", $a);
unset ($a);
$base_url= $url . (substr($url, -1) != "/" ? "/" : "");
$base_path= $pth . (substr($pth, -1) != "/" && substr($pth, -1) != "\\" ? "/" : "");
// assign site_url
$site_url= ((isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’https://’ : ’http://’;
$site_url .= $_SERVER[’HTTP_HOST’];
if ($_SERVER[’SERVER_PORT’] != 80)
$site_url= str_replace(’:’ . $_SERVER[’SERVER_PORT’], ’’, $site_url); // remove port from HTTP_HOST Â
$site_url .= ($_SERVER[’SERVER_PORT’] == 80 || (isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’’ : ’:’ . $_SERVER[’SERVER_PORT’];
$site_url .= $base_url;
}
if (!defined(’MODX_BASE_PATH’)) define(’MODX_BASE_PATH’, $base_path);
if (!defined(’MODX_BASE_URL’)) define(’MODX_BASE_URL’, $base_url);
if (!defined(’MODX_SITE_URL’)) define(’MODX_SITE_URL’, $site_url);
if (!defined(’MODX_MANAGER_PATH’)) define(’MODX_MANAGER_PATH’, $base_path.’manager/’);
if (!defined(’MODX_MANAGER_URL’)) define(’MODX_MANAGER_URL’, $site_url.’manager/’);
// start cms session
if(!function_exists(’startCMSSession’)) {
function startCMSSession(){
global $site_sessionname;
session_name($site_sessionname);
session_start();
$cookieExpiration= 0;
if (isset ($_SESSION[’mgrValidated’]) || isset ($_SESSION[’webValidated’])) {
$contextKey= isset ($_SESSION[’mgrValidated’]) ? ’mgr’ : ’web’;
if (isset ($_SESSION[’modx.’ . $contextKey . ’.session.cookie.lifetime’]) && is_numeric($_SESSION[’modx.’ . $contextKey . ’.session.cookie.lifetime’])) {
$cookieLifetime= intval($_SESSION[’modx.’ . $contextKey . ’.session.cookie.lifetime’]);
}
if ($cookieLifetime) {
$cookieExpiration= time() + $cookieLifetime;
}
if (!isset($_SESSION[’modx.session.created.time’])) {
$_SESSION[’modx.session.created.time’] = time();
}
}
setcookie(session_name(), session_id(), $cookieExpiration, MODX_BASE_URL);
}
}
?> "
I put this into a notepad file and upload it to manager-includes in filezilla and set it to 666. However nothing changes on my website. I am not sure if I need to add more to the notepad file to make it a php.
I found someone else with the same problem
(http://modxcms.com/forums/index.php?action=printpage;topic=38706.0
however he uses a mac and I use a Hewlett Packard but my host is on linux.
I really appreciate your help on this,
F
Like life, love festivals.
thanks sharkbait, the name is a referrence to my website
when you say php-file do you mean include the word "file" in the title?
I have already tried uploading the file as .php and php-file but neither work
When I go to the link you posted it tells me that C supports php but I’m not sure what that means
is there basic code to include in a php file such as <body></body> in html which makes it a php file?
Like life, love festivals.
thanks for that I just did it, put in my details, selected 666 and the file was accepted but the frontpage of my website still asks me to install modx and the development-theory.org/manager page says "Could not load DBAPI class."
If it’s successful shouldn’t my webpage frontpage/manager page change?
Like life, love festivals.