Hello everybody!
I've already tried searching the web and the forums here, but I'm not even sure, which words to enter in the searchbox... My problem might be uncoupled from cmsms itself, but I hope, there's help for me here nevertheless.
I have the latest version of cmsms (1.6.*) and the installation worked fine. My cms is hosted in a subdirectory of another server and can be used correctly, when I enter "server.de/subdirectory" in the config.php and call the site by typing the same string into the adressfield of a browser.
I also configured a domain for forwarding to this servers subdirectory and when I type in the domain in the config.php and call the site using the domain, the problems begin:
For first, when I type "domain.de" it takes several seconds, before anything happens. Then, the cms is using no stylesheet and whenever I click a link (the links adress is "domain.de/index.php?...") I come back to the main page, still using no stylesheet and still loading very slowly. The admin panel is skinned allright, but I can't enter the admin pages. When I click the login button, I always get back to the same loginpage with no errors displayed. When I type false passwords still no errors are displayed.
I guess, it's a problem of the domains configuration for cmsms is calling itself using the domain, but my webhoster wasn't able to help me with this, so I'm trying it again here.
I hope you have an idea for me!
Thanks a lot,
Bääääär
PS: I found something with "pretty urls" on the web but that's something different, isn't it?
[Edit: typo...]
How to configure the domain/cms correctly (cms in a subdirectory)
How to configure the domain/cms correctly (cms in a subdirectory)
Last edited by Bääääär on Sun Jan 03, 2010 12:52 pm, edited 1 time in total.
Re: How to configure the domain/cms correctly (cms in an subdirectory)
Hello Bääääär, welcome here 
Can you please put a copy of your config.php here. Remove DBase login info!
Also a copy of your forwarding file in the root of the website.
And a copy of your System Information would be nice...
Grtz. Rolf

Can you please put a copy of your config.php here. Remove DBase login info!
Also a copy of your forwarding file in the root of the website.
And a copy of your System Information would be nice...
Grtz. Rolf

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: How to configure the domain/cms correctly (cms in an subdirectory)
Hello Rolf,
Here is a copy of my config.php
Well, I don't know the systems configuration and I hope it'll be fine without it. If you really need it, the I'll contact my hoster (will take several days).
Ok, there was a nice misunderstanding =) There is no forwarding file in the root of the website. It is a server with another website on it. My cms is in an subdir of this server and i have a domain pointing to this subdir.
Just like this:
I hope, that makes things clearer,
Bääääär
Here is a copy of my config.php
Code: Select all
<?php
#CMS Made Simple Configuration File
#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
#-----------------
#Behaviour Settings
#-----------------
# These settings will effect the overall behaviour of the CMS application, please
# use extreme caution when editing these. Additionally, some settings may have
# no effect on servers with significantly restricted configurability.
# If you are experiencing propblems with php memory limit errors, then you may
# want to try enabling and/or adjusting this setting.
# Note: Your server may not allow the application to override memory limits.
$config['php_memory_limit'] = '';
# In versions of CMS Made Simple prior to version 1.4, the page template was processed
# in it's entirety. This behaviour was later changed to process the head portion of the
# page template after the body. If you are working with a highly configured site that
# relies significantly on the old order of smarty processing, you may want to try
# setting this parameter to false.
$config['process_whole_template'] = false;
# CMSMS Debug Mode? Turn it on to get a better error when you
# see {nocache} errors, or to allow seeing php notices, warnings, and errors in the html output.
# This setting will also disable browser css caching.
$config['debug'] = false;
# Output compression?
# Turn this on to allow CMS to do output compression
# this is not needed for apache servers that have mod_deflate enabled
# and possibly other servers. But may provide significant performance
# increases on some sites. Use caution when using this as there have
# been reports of incompatibilities with some browsers.
$config['output_compression'] = false;
#-----------------
#Database Settings
#-----------------
#This is your database connection information. Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxx';
$config['db_password'] = 'xxx';
$config['db_name'] = 'xxx';
#Change this param only if you know what you are doing
$config["db_port"] = '';
#If app needs to coexist with other tables in the same db,
#put a prefix here. e.g. "cms_"
$config['db_prefix'] = 'cms_';
#Use persistent connections? They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;
#Use ADODB Lite? This should be true in almost all cases. Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
#this one make problems
$config['root_url'] = 'http://mydomain.de';
#this one works fine
$config['root_url'] = 'http://theserver.de/thesubdir';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = 'mywwwpath';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = 'mywwwpath/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = 'mywwwpath/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
#---------------
#Upload Settings
#---------------
#Maxium upload size (in bytes)?
$config['max_upload_size'] = 10000000;
#Permissions for uploaded files. This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';
#------------------
#Usability Settings
#------------------
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;
#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'none';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'seite';
#--------------
#Image Settings
#--------------
#Which program should be used for handling thumbnails in the image manager.
#See http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/Image_Manager for more
#info on what this all means
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = 'mywwwpath/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
#------------------------
#Locale/Encoding Settings
#------------------------
#Locale to use for various default date handling functions, etc. Leaving
#this blank will use the server's default. This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = '';
#In almost all cases, default_encoding should be empty (which defaults to utf-8)
#and admin_encoding should be utf-8. If you'd like this to be different, change
#both. Keep in mind, however, that the admin interface translations are all in
#utf-8, and will be converted on the fly to match the admin_encoding. This
#could seriously slow down the admin interfaces for users.
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
#This is a mysql specific option that is generally defaulted to true. Only
#disable this for backwards compatibility or the use of non utf-8 databases.
$config['set_names'] = true;
# URL of the Admin Panel section of the User Handbook
# Set none if you want hide the link from Error
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
?>
Ok, there was a nice misunderstanding =) There is no forwarding file in the root of the website. It is a server with another website on it. My cms is in an subdir of this server and i have a domain pointing to this subdir.
Just like this:
Code: Select all
Server => another site in the root dir <========= another domain poiting to the server using the a-records
=> my site in the subdir <========= my domain using forwarding (invisible)
Bääääär
Last edited by Bääääär on Sun Jan 03, 2010 1:04 pm, edited 1 time in total.
Re: How to configure the domain/cms correctly (cms in a subdirectory)
Site Admin » System Information » View Text Report (suitable for copying into forum posts)I don't know the systems configuration
Leave $config['root_url'] = 'http://mydomain.de'; (or $config['root_url'] = 'http://www.mydomain.de'; ) only, instead of overwriting it
Code: Select all
$config['root_url'] = 'http://mydomain.de';
#this one works fine
$config['root_url'] = 'http://theserver.de/thesubdir';
Re: How to configure the domain/cms correctly (cms in a subdirectory)
Ok, I thought you meant the hardware... Ok, here we are:
I just entered both 'root_url'-versions here to show you what I mean. Of course only one setting is used in the real file.
thanks again,
Bääääär
Oh, another misunderstanding:----------------------------------------------
Cms Version: 1.6.1
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0
* MenuManager: 1.6.1
* ModuleManager: 1.3.1
* News: 2.10.1
* nuSOAP: 1.0.1
* Printing: 1.0
* Search: 1.6.1
* ThemeManager: 1.1.1
* TinyMCE: 2.5.1
Config Information:
* php_memory_limit:
* process_whole_template: false
* max_upload_size: 10000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.1.2
* md5_function: An (Ja)
* gd_version: 2
* tempnam_function: An (Ja)
* magic_quotes_runtime: Aus (Nein)
* memory_limit: 16M
* max_execution_time: 60
* safe_mode: Aus (Nein)
* session_save_path: /tmp (1777)
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.27
----------------------------------------------
I just entered both 'root_url'-versions here to show you what I mean. Of course only one setting is used in the real file.
thanks again,
Bääääär
Re: How to configure the domain/cms correctly (cms in a subdirectory)
I have never tried to overlap domain paths. IMO you missconfigured apache server. I woul double checked apache directive "VirtualHost". Also there is an option to use domain name supplied by bowser, or smth like default alias of host.
BTW what is the code you are redirecting to the address "domain.de" with?
Don't think this will help, but...
Back up your old "/config.php" and try one listed here http://forum.cmsmadesimple.org/index.ph ... #msg183062
BTW what is the code you are redirecting to the address "domain.de" with?
Don't think this will help, but...
Back up your old "/config.php" and try one listed here http://forum.cmsmadesimple.org/index.ph ... #msg183062
Re: How to configure the domain/cms correctly (cms in a subdirectory)
Hello!
I ordered the domain at OVH so there's not really a code for the redirection. (Well maybe there is, but I don't have access to it).
During the installation I had different options to choose from (for example to change the a-reacord what doesn't really help me, for my cms is in a subdirectory). I chose the redirection and entered the domain of the server and the subdirectory (e.g. http://www.server.de/subdir) where my cms is installed. That worked fine, except for the problems I wrote in the first post.
The config.php you noticed didn't change anything.
I wrote a message to my host to ask for the virtual host configuration. I hope, there's a solution then. (seems like it's actually a simple thing to configure. This way, I could use the a-records of the domain and enter the ip. There wouldn't be any need for redirections anymore)
Thanks,
Bääääär
I ordered the domain at OVH so there's not really a code for the redirection. (Well maybe there is, but I don't have access to it).
During the installation I had different options to choose from (for example to change the a-reacord what doesn't really help me, for my cms is in a subdirectory). I chose the redirection and entered the domain of the server and the subdirectory (e.g. http://www.server.de/subdir) where my cms is installed. That worked fine, except for the problems I wrote in the first post.
The config.php you noticed didn't change anything.
I wrote a message to my host to ask for the virtual host configuration. I hope, there's a solution then. (seems like it's actually a simple thing to configure. This way, I could use the a-records of the domain and enter the ip. There wouldn't be any need for redirections anymore)
Thanks,
Bääääär
Last edited by Bääääär on Mon Jan 04, 2010 5:57 pm, edited 1 time in total.