-
domain problem
Hi there,
I created my personal page using typolight - it works fine when I type url of my host and then "/typolight" folder. The problem is I can't make it work under my own domain. Here is what I have:
I installed TL to one of the directories on my isp host:
myhostname.myprovider.pl/typolight3
when I enter the page like: http://myhostname.myprovider.pl/typolight3/
it loads and works fine
After finishing my page I wanted to set it to work with my private domain: http://www.mydomain.com .
So what I did was:
1. I created website root, I put it on a top of the page structure
2. I inserted all pages I had created into website root
3. I configure my domain to redirect it to the catalog where TL is instaled like that:
http://www.mydomain.com -> goes to url: http://myhostname.myprovider.pl/typolight3/
And it doesnt work, after typing http://www.mydomain.com nothing loads.
I tried lot's of different things, I read all the manuals I found. I don't know how to do it and I am completly out of any idea.
The worst thing is that I spent about 2 weeks creating page and now I am in a dead point.
-
Re: domain problem
Hi,
Assuming that you copied all the files from say 'installation A' to 'installation B'.
Now did you run the install.php one more time on installation B or have you corrected the information in localconfig.php (./system/config/localconfig.php) of installation B ?
TT
-
Re: domain problem
I am not sure if we both understand each other:) The problem I described in the topic is not about reinstalation or moving properly working site (as you wrote something about installation A and B). I installed it once and it works fine. The problem is it didn't work after I created root page. Moreover or even the most important thing is I'd like ppl to access my site form www.mydomain.com not http://servername.ispprovidername.com/typolight.
I just want to leave working site on my server but I want to make it accessible from www.mydomain.com. Any ideas? It should be simple:)?
-
Re: domain problem
hi
In your localconfig.php. Are these information correct?
$GLOBALS['TL_CONFIG']['websitePath'] = '0000000'; should be blank
$GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQL';
$GLOBALS['TL_CONFIG']['dbHost'] = 'localhost';
$GLOBALS['TL_CONFIG']['dbUser'] = 'username';
$GLOBALS['TL_CONFIG']['dbPass'] = 'password';
can you reach typolight folder from url http://www.mydomain.com/typolight ? If not, then your domain name might not be pointing to the right server. check the nameservers and if the domain name is fresh then wait for some time, till the namesevers point to your server.
-
Re: domain problem
everything is like you wrote, except $GLOBALS['TL_CONFIG']['websitePath'] = '/typolight3';
as the site is in typolight3 directory I understand it's ok?
>> can you reach typolight folder from url http://www.mydomain.com/typolight ?
Now I cant't becaue I change page structure and make website root over all my pages. I could reach typolight folder from url http://www.mydomain.com/typolight ? when I have all pages on the same level (without putting them in under website root).
>> If not, then your domain name might not be pointing to the right server.
it is pointing as I could access pages when I didn't have website root in the structure.
But where in typolight you can configure domain? I used some other cms sytems and every of them had a configurations where you put domain name. I don't see anything like this here. And it still doesnt work:/
-
Re: domain problem
$GLOBALS['TL_CONFIG']['websitePath'] = '/typolight3'; ??
why /typolight3? this should not be there. it shoud be
$GLOBALS['TL_CONFIG']['websitePath'] = '';
typolight3 is the folder i think you mapped you domain name to.
-
Re: domain problem
Yes domain name is mapped to point to typolight3 folder as my TL is installed in typolight3, so it makes sense for me that website path is typolight3. I set it to blank as you wrote but it also doesn't work (thought wouldn't has any sense if it would work like that)...
-
Re: domain problem
Code:
Yes domain name is mapped to point to typolight3 folder as my TL is installed in typolight3
thats why
$GLOBALS['TL_CONFIG']['websitePath'] = '''; is the correct way (atleast in my abt 10 TL installations ). I think yours has some other factor too. By the way may I know the actually URL?
-
Re: domain problem
Two maybes....
Have you set a fallback language in your website root?
Also is your .htaccess file correct?
-
Re: domain problem
yes I did but fallback setting dosent make any difference - domain still doesn't work.
my .htaccess is:
RewriteEngine On
RewriteBase /typolight3
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*\.html$ index.php [L]
-
Re: domain problem
I'm not familiar with all this, but Tsarma is suggesting you lose the typolight3,
so try
in your htaccess
-
Re: domain problem
-
Re: domain problem
at least...! ok, i cleared website_path and set it to ' ' (null) and removed website root from website structure and my domain started to work:) so Tsarma was right! (thanks!)
but... i have to problems, there is an error saying:
Warning: Unknown: open(/tmp/sess_bc8666cd1b02d915530002bc22ba6e53, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
any ideas what it could be?
-
Re: domain problem
ok, problem solved - there was no tmp dir in main TL folder. Now it works fine.
Thanks guys for your help!