Major frustration - can't install - 404 errors
Major frustration - can't install - 404 errors
Hi CMSMS - I'm trying to just get this thing installed.
From this URL - I get :
http://marketshift.ibrent.com/cgi-system/php.cg
404 error
Then from the root - I get this:
http://marketshift.ibrent.com/
Fatal error: Cannot redeclare class fckeditorx in /home/.haar/rabble/marketshift.ibrent.com/modules/FCKeditorX/FCKeditorX.module.php on line 31
What I Have done:
Installed from scratch twice - went through the instructions like a surgeon. Everything says cool with the install feedback, the DB location etc. When I click on the Here is your CMS, I get a 404.
I have experience with CMS and portals. Not sure what is wrong with this one, or my shared hosting - Dreamhost. But I've never had problems installing complicated things before. I would really like to try and use this, but if I can't get some help or advice, I'm going to have to move onto Mambo or Drupal.
One thing I see is that the install doesnt have a /cgi-system/ folder at all. Not sure what is pointing at what here. Obi Wan you're my only hope ...
Thank you, Brent
From this URL - I get :
http://marketshift.ibrent.com/cgi-system/php.cg
404 error
Then from the root - I get this:
http://marketshift.ibrent.com/
Fatal error: Cannot redeclare class fckeditorx in /home/.haar/rabble/marketshift.ibrent.com/modules/FCKeditorX/FCKeditorX.module.php on line 31
What I Have done:
Installed from scratch twice - went through the instructions like a surgeon. Everything says cool with the install feedback, the DB location etc. When I click on the Here is your CMS, I get a 404.
I have experience with CMS and portals. Not sure what is wrong with this one, or my shared hosting - Dreamhost. But I've never had problems installing complicated things before. I would really like to try and use this, but if I can't get some help or advice, I'm going to have to move onto Mambo or Drupal.
One thing I see is that the install doesnt have a /cgi-system/ folder at all. Not sure what is pointing at what here. Obi Wan you're my only hope ...
Thank you, Brent
Re: Major frustration - can't install - 404 errors
The problem with CMSMS is the same as the Windows operating system:
Things say everything is fine, but when things go wrong, the error messages are non-existent or useless. The fact that the installer said things were all ok and worked, and then the home link didnt even work - shows that there is a problem with the server checks. Once things aren't right, there is no error that tells me what is wrong. A file permission? missing file? Server config? Path variable? God only knows.
The diagnostics are lacking. I cant debug this myself. And the "just reinstall windows from scratch" scenario is so 1997.
Things say everything is fine, but when things go wrong, the error messages are non-existent or useless. The fact that the installer said things were all ok and worked, and then the home link didnt even work - shows that there is a problem with the server checks. Once things aren't right, there is no error that tells me what is wrong. A file permission? missing file? Server config? Path variable? God only knows.
The diagnostics are lacking. I cant debug this myself. And the "just reinstall windows from scratch" scenario is so 1997.
Re: Major frustration - can't install - 404 errors
Installer nor cmsms wont need a cgi-system folder afaik...One thing I see is that the install doesnt have a /cgi-system/ folder at all. Not sure what is pointing at what here. Obi Wan you're my only hope ...
just a wild quess, but make a file in your webroot named test.php with following content
Code: Select all
<?php
phpinfo();
?>
Re: Major frustration - can't install - 404 errors
Better yet, can you paste the config.php file (without the database password, of course) here? My bet is that it's pickin up the cgi-system in the urls, which isn't right. You'll probably need to fix all of the paths and urls to remove that.
Re: Major frustration - can't install - 404 errors
Ok cool. Thanks guys. I appreciate your assistance and patience with this setup.
Code: Select all
<?php
$config['dbms'] = 'mysqli';
DB INFO HERE taken out by brent
$config['db_name'] = 'cms';
$config['db_prefix'] = 'cms_';
$config['root_url'] = 'http://marketshift.ibrent.com';
$config['root_path'] = '/home/.haar/rabble/marketshift.ibrent.com';
$config['query_var'] = 'page';
$config['use_bb_code'] = false;
$config['use_smarty_php_tags'] = false;
$config['previews_path'] = '/home/.haar/rabble/marketshift.ibrent.com/tmp/cache';
$config['uploads_path'] = '/home/.haar/rabble/marketshift.ibrent.com/uploads';
$config['uploads_url'] = 'http://marketshift.ibrent.com/uploads';
$config['max_upload_size'] = 1000000;
$config['debug'] = false;
$config['assume_mod_rewrite'] = false;
$config['auto_alias_content'] = true;
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['use_Indite'] = false;
$config['image_uploads_path'] = '/home/.haar/rabble/marketshift.ibrent.com/uploads/images';
$config['image_uploads_url'] = 'http://marketshift.ibrent.com/uploads/images';
$config['default_encoding'] = '';
$config['disable_htmlarea_translation'] = false;
$config['admin_dir'] = 'admin';
$config['persistent_db_conn'] = true;
$config['default_upload_permission'] = '664';
$config['page_extension'] = '.html';
$config['use_adodb_lite'] = true;
$config['locale'] = '';
$config['admin_encoding'] = 'utf-8';
?>
Re: Major frustration - can't install - 404 errors
Ok, this is a little strange.
In all of the paths in config.php, remove the .haar/ part.
becomes:
Not sure if that will do it for not, but it's worth a shot.
In all of the paths in config.php, remove the .haar/ part.
Code: Select all
$config['root_path'] = '/home/.haar/rabble/marketshift.ibrent.com';
Code: Select all
$config['root_path'] = '/home/rabble/marketshift.ibrent.com';
Re: Major frustration - can't install - 404 errors
Yeah, I took out the haar part and still get 404.
?? I'm baffled. Any more clues? It would be cool to figure out, then you'd have a Dreamhost install fix I assume.
thx - brent

thx - brent
Re: Major frustration - can't install - 404 errors
Ahhh haaa !!! Good find RHug !!!!! I see the admin, but I get the following error on top of the page when trying to login:
I am assuming that the .haar/ part is messing things up still. Where do I find other references to those MYSQL parameters so I can strip it out?
thx - b
Code: Select all
Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /home/.haar/rabble/marketshift.ibrent.com/lib/adodb_lite/adodbSQL_drivers/mysqli/mysqli_driver.inc on line 171
Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /home/.haar/rabble/marketshift.ibrent.com/lib/adodb_lite/adodbSQL_drivers/mysqli/mysqli_driver.inc on line 171
thx - b
Re: Major frustration - can't install - 404 errors
Brent, did you get this working? I'm about to deploy a CMS site to Dreamhost, and am hoping I don't run into similar trouble.
Regards,
-sloop
Regards,
-sloop
Re: Major frustration - can't install - 404 errors
hey sloop -
nope. never got it running. spent hours on it for a few days and gave up. i went through the config and other issues, but everything looked right. and no one else had any clues for me anymore. it's obviously something to do with how dreamhosts shared servers are setup, but i have installed gallery and mambo and other db cms things with no troubles.
please email and let me know if you get it working and what you did. i moved over to limbo in frustration, but i would love to try cmsms - but it just wasnt simple.
thanks - brent
nope. never got it running. spent hours on it for a few days and gave up. i went through the config and other issues, but everything looked right. and no one else had any clues for me anymore. it's obviously something to do with how dreamhosts shared servers are setup, but i have installed gallery and mambo and other db cms things with no troubles.
please email and let me know if you get it working and what you did. i moved over to limbo in frustration, but i would love to try cmsms - but it just wasnt simple.
thanks - brent
Re: Major frustration - can't install - 404 errors
Brent,
I haven't tried a CMS install there yet, waiting for the client to sign up and send me the login info. I have used dh in the past, and the thing I'm wondering is if the site root (aka root_path in config.php) is a symlinked folder on the webhost, which would map differently once in operation?
Here's an experiment: try running the following in a php script on dh:
then compare what it outputs with what you've got in config.php for root_path.
best,
-sloop
I haven't tried a CMS install there yet, waiting for the client to sign up and send me the login info. I have used dh in the past, and the thing I'm wondering is if the site root (aka root_path in config.php) is a symlinked folder on the webhost, which would map differently once in operation?
Here's an experiment: try running the following in a php script on dh:
then compare what it outputs with what you've got in config.php for root_path.
best,
-sloop
Re: Major frustration - can't install - 404 errors
Yeah, I tried that too. There is something wiggy about DH and the way they link symlink their folders.
The rootpath with your echo tag gives me:
/home/.haar/rabble/marketshift.ibrent.com
I have tried to change my config to include or exclude the .haar part, and still nothing.
http://marketshift.ibrent.com/echo.php
Any ideas? I reinstalled with a new blank config and everything. With their own Mambo install, the say to take out the /.haar/ part before your user name there. I've tried all the configurations that i can think of. And am at a loss.
The rootpath with your echo tag gives me:
/home/.haar/rabble/marketshift.ibrent.com
I have tried to change my config to include or exclude the .haar part, and still nothing.
http://marketshift.ibrent.com/echo.php
Any ideas? I reinstalled with a new blank config and everything. With their own Mambo install, the say to take out the /.haar/ part before your user name there. I've tried all the configurations that i can think of. And am at a loss.
Re: Major frustration - can't install - 404 errors
Brent,
Various thoughts:
Looking at your test.php, phpinfo() sez this is your document root:
/home/rabble/marketshift.ibrent.com
But the problems you've reported are that you get a 404 on this URL:
http://marketshift.ibrent.com/cgi-system/php.cg
Don't know what that script is or does, but when I added 'i' to the end, apache found it, though PHP didn't like what it contained.
My guess from a read of dh's docs the other day is that they force all PHP scripts to first pass through that /cgi-system/php5.cgi? This might tamper with the environment too much from CMS's perspective, though that's a guess.
With your fatal CMS error, it stems from a redeclaration of FCKeditorX, which is bundled with CMS. I'm assuming you've done a plain-jane installation of CMS, and this error comes up? Or, did you copy the installation from another computer, say your desktop? Anyway, why would PHP think that the same class had been declared twice? I've seen this happen on *nix system, when using an editor that creates a .bak or *~ file, and CMS reads what's essentially the same file twice, though usually only that happens in the plugins folder.
Another idea, it could be that redirects are messed up by dh's security setup, also. See below for supplying us w/more info.
IIRC, dh offers two modes of execution, 1) mod_php, and 2) php as a cgi executable. Which are you configured for? If you don't remember changing anything, you're probably #2, which dh says is the default, and offers a better security model (the code executes under your account, rather than the global Apache account.)
If nothing else works out, consider switching to the other execution mode. mod_php means that everybody else's scripts running under Apache can read your files, fyi, and that includes the database password in config.php, but that mode might be closer to what CMS wants.
Here are some more ways to get info that would help us help you:
_ENV";
var_dump( $_ENV );
echo "
\n_SERVER\n";
var_dump( $_SERVER );
echo "
\n_REQUEST\n";
var_dump( $_REQUEST );
echo "";
?>
regards,
-sloop
Various thoughts:
Looking at your test.php, phpinfo() sez this is your document root:
/home/rabble/marketshift.ibrent.com
But the problems you've reported are that you get a 404 on this URL:
http://marketshift.ibrent.com/cgi-system/php.cg
Don't know what that script is or does, but when I added 'i' to the end, apache found it, though PHP didn't like what it contained.
My guess from a read of dh's docs the other day is that they force all PHP scripts to first pass through that /cgi-system/php5.cgi? This might tamper with the environment too much from CMS's perspective, though that's a guess.
With your fatal CMS error, it stems from a redeclaration of FCKeditorX, which is bundled with CMS. I'm assuming you've done a plain-jane installation of CMS, and this error comes up? Or, did you copy the installation from another computer, say your desktop? Anyway, why would PHP think that the same class had been declared twice? I've seen this happen on *nix system, when using an editor that creates a .bak or *~ file, and CMS reads what's essentially the same file twice, though usually only that happens in the plugins folder.
Another idea, it could be that redirects are messed up by dh's security setup, also. See below for supplying us w/more info.
IIRC, dh offers two modes of execution, 1) mod_php, and 2) php as a cgi executable. Which are you configured for? If you don't remember changing anything, you're probably #2, which dh says is the default, and offers a better security model (the code executes under your account, rather than the global Apache account.)
If nothing else works out, consider switching to the other execution mode. mod_php means that everybody else's scripts running under Apache can read your files, fyi, and that includes the database password in config.php, but that mode might be closer to what CMS wants.
Here are some more ways to get info that would help us help you:
_ENV";
var_dump( $_ENV );
echo "
\n_SERVER\n";
var_dump( $_SERVER );
echo "
\n_REQUEST\n";
var_dump( $_REQUEST );
echo "";
?>
regards,
-sloop
Re: Major frustration - can't install - 404 errors
ok - here it is:
http://marketshift.ibrent.com/echo.php
yeah it appears that DH defaults to the CGI version. and i looked to see if i can switch or turn it off, and i can't. i think i need to create a new sub domain in order to set it. but i asked and am awaiting a response from them.
thanks - b
http://marketshift.ibrent.com/echo.php
yeah it appears that DH defaults to the CGI version. and i looked to see if i can switch or turn it off, and i can't. i think i need to create a new sub domain in order to set it. but i asked and am awaiting a response from them.
thanks - b