Page 1 of 1

CMS Made Simple installed on a subdomain produce error 404..?

Posted: Mon Apr 17, 2006 1:10 pm
by Nanochild
Hi!

I tried to install CMSMS (Savusavu 0.12.1) on my subdomain http://www.webdesign123.dk/ but after successfull installation something weird things happens..? After clicking on "Here is your CMS site" i get a HTTP 404 error and the URL look like this:

http://cms.webdesign123.dk/var/subdomain/cms/html

I have re-installed CMSMS 3 times now but get the same error message each time..?

On my top domain http://www.webdesign123.dk/ there is no problems..!

Database information:

After creating the database tables the program outputs the following at the bottom of the page:

1. CMS Document root (as seen from the webserver): http://cms.webdesign123.dk/var/subdomain/cms/html

2. Path to the Document root:
/var/www/cms

As i can see in nr. 1. it type an incorrect "subdomain" query in the URL but in nr. 2. it looks correct..?

Config.php

After "successfull" installation the config.php look like this:



For me it look like there is something very wrong with the following 3 lines in the config.php file:

1. $config['root_url'] = 'http://cms.webdesign123.dk/var/subdomain/cms/html';
2. $config['uploads_url'] = 'http://cms.webdesign123.dk/var/subdomai ... ml/uploads';
3. $config['image_uploads_url'] = 'http://cms.webdesign123.dk/var/subdomai ... ads/images';

If i change these 3 lines to something like this ("cms" is the subdomain folder):

1. $config['root_url'] = 'http://cms.webdesign123.dk/var/www/cms/';
2. $config['uploads_url'] = 'http://cms.webdesign123.dk/var/www/cms/uploads';
3. $config['image_uploads_url'] = 'http://cms.webdesign123.dk/var/www/cms/uploads/images';

I get this:

Fatal error: Cannot redeclare class fckeditorx in /var/www/cms/modules/FCKeditorX/FCKeditorX.module.php on line 31

Server information:

I made my subdomain folder with a cgi-bin folder on this server:

Apache/2.0.51 (Fedora)
PHP Version 4.3.10 (test.php)


Hope someone can help???


Sincerely
Nano

Re: CMS Made Simple installed on a subdomain produce error 404..?

Posted: Mon Apr 17, 2006 2:42 pm
by Dr.CSS
can you look at your site with an FTP client? what does the path look like that way?

  mark

Re: CMS Made Simple installed on a subdomain produce error 404..?

Posted: Mon Apr 17, 2006 3:05 pm
by Nanochild
Hi!

With my FTP client, the path is: /var/www/cms

Re: CMS Made Simple installed on a subdomain produce error 404..?

Posted: Tue Apr 18, 2006 10:59 am
by Nanochild
Ok, i realized that these in the config.php are totally wrong:

1. $config['root_url'] = 'http://cms.webdesign123.dk/var/www/cms/';
2. $config['uploads_url'] = 'http://cms.webdesign123.dk/var/www/cms/uploads';
3. $config['image_uploads_url'] = 'http://cms.webdesign123.dk/var/www/cms/uploads/images';

They should look like this:

1. $config['root_url'] = 'http://cms.webdesign123.dk/';
2. $config['uploads_url'] = 'http://cms.webdesign123.dk/uploads';
3. $config['image_uploads_url'] = 'http://cms.webdesign123.dk/uploads/images';

So now i get this:
Congratulations! You now have a fully functional installation of CMS..!
-but without stylesheets and it is only the homepage you can access from http://cms.webdesign123.dk/

Links to other pages are not accessible either..?

Something going wrong in the installation proces!

I will look further after a solution but if someone have the answer please tell me!!!


Sincerely
Nano

Re: CMS Made Simple installed on a subdomain produce error 404..?

Posted: Tue Apr 18, 2006 12:28 pm
by Ted
There should be no slash at the end of: $config['root_url'] = 'http://cms.webdesign123.dk/';

You're getting a double slash in the stylesheet url and firefox is ignoring it.

Re: CMS Made Simple installed on a subdomain produce error 404..?

Posted: Tue Apr 18, 2006 1:19 pm
by Nanochild
Thanks Ted!

Now im on - it is working!!!

Re: CMS Made Simple installed on a subdomain produce error 404..?

Posted: Tue Apr 18, 2006 8:48 pm
by Nanochild