Help! did we do this all wrong from the first place?
Permalink
Hello concreters!
I sincerly hope some of you might be able to help with this!
We have recently started making websites in Concrete5 and are happy to work with this CMS. We make mostly smaller business websites and want to host several C5 sites on one webhotel (www.websightdemo.dk)
- I am pretty sure I read that this should work.
However; now the problem occurs.
We have created two sites onwww.www.websightdemo.dk/hadruplund... andwww.www.websightdemo.dk/bernardshus....
These two websites should be accessible throughhttp://www.hadruplund.dk andhttp://www.bernardshus.dk
How on earth do we keep the files in place on our host while maintaining the right address (www.company.com but files located onwww.www.hostingmanysites.com/company)...
Is that even do-able or did we start off all wrong wanting to place more sites on one host?
Best
Mikas Eskesen
I sincerly hope some of you might be able to help with this!
We have recently started making websites in Concrete5 and are happy to work with this CMS. We make mostly smaller business websites and want to host several C5 sites on one webhotel (www.websightdemo.dk)
- I am pretty sure I read that this should work.
However; now the problem occurs.
We have created two sites onwww.www.websightdemo.dk/hadruplund... andwww.www.websightdemo.dk/bernardshus....
These two websites should be accessible throughhttp://www.hadruplund.dk andhttp://www.bernardshus.dk
How on earth do we keep the files in place on our host while maintaining the right address (www.company.com but files located onwww.www.hostingmanysites.com/company)...
Is that even do-able or did we start off all wrong wanting to place more sites on one host?
Best
Mikas Eskesen
You gotta set the site url's for each of the individual sites within this file known as site.php found at \config dir
So inwww.www.websightdemo.dk/bernardshus/config/site.php... I need to change the site url tohttp://www.bernardshus.dk ?
Is that all I have to do?
Thank you for replying!
best
Mikas
Is that all I have to do?
Thank you for replying!
best
Mikas
in your case it would be
define('BASE_URL', 'http://bernardshus.dk');
define('DIR_REL', '/'); ( if you site is hosted in a sub-dir and not the domain root then in that case you add the sub-dir name in the DIR_REL
define('BASE_URL', 'http://bernardshus.dk');
define('DIR_REL', '/'); ( if you site is hosted in a sub-dir and not the domain root then in that case you add the sub-dir name in the DIR_REL
Sorry, I am quite a newbie on these techmatters.
I don't understand your example.
Could you in some way describe the steps in hosting more sites on one webhotel and then buying domain names and connect those the best way?
Example
we have one hotel with 500mb space and as many mysql databases as we like. That hotel is located at:
Www.example.com
On that server we make a directory for each our clients and in those directories we install the c5 websites.
Ex
http://www.example.com/customer1
http://www.example.com/customer2
After the sites are finished we want the domain name to behttp://www.customer1.com andhttp://www.customer2.com instead of the url above.
How do we accomplish this?
I hope I am making sense?
Best Mikas
I don't understand your example.
Could you in some way describe the steps in hosting more sites on one webhotel and then buying domain names and connect those the best way?
Example
we have one hotel with 500mb space and as many mysql databases as we like. That hotel is located at:
Www.example.com
On that server we make a directory for each our clients and in those directories we install the c5 websites.
Ex
http://www.example.com/customer1
http://www.example.com/customer2
After the sites are finished we want the domain name to behttp://www.customer1.com andhttp://www.customer2.com instead of the url above.
How do we accomplish this?
I hope I am making sense?
Best Mikas
Hi Mikas,
Not a problem, now considering the locations of how your clients website are gonna be hosted.
Firstly, I hope you have added these client domain names to point to your webserver and the directories where their respective concrete5 installations are placed..
lets take example ofhttp://www.example.com/customer1...
You need to go to thishttp://www.example.com/customer1/config/... and in the site.php file in this directory
<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mysqlusername');
define('DB_PASSWORD', 'mysqlpassword');
define('DB_DATABASE', 'mysqldbname');
define('BASE_URL', 'http://customer1.com');
define('DIR_REL', '');
similarly you do this for your second client site and change the info in the site.php to its repsective domain name, mysql db name, username and password.
P.S.: Please note that if you have moved these clients website from your local windows webserver to the hosting server in that case, you need to rename the Table names to camel case, for that its better you buy this add-on as it makes life very easyhttp://www.concrete5.org/marketplace/addons/mysql-case-insensitive-...
Not a problem, now considering the locations of how your clients website are gonna be hosted.
Firstly, I hope you have added these client domain names to point to your webserver and the directories where their respective concrete5 installations are placed..
lets take example ofhttp://www.example.com/customer1...
You need to go to thishttp://www.example.com/customer1/config/... and in the site.php file in this directory
<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mysqlusername');
define('DB_PASSWORD', 'mysqlpassword');
define('DB_DATABASE', 'mysqldbname');
define('BASE_URL', 'http://customer1.com');
define('DIR_REL', '');
similarly you do this for your second client site and change the info in the site.php to its repsective domain name, mysql db name, username and password.
P.S.: Please note that if you have moved these clients website from your local windows webserver to the hosting server in that case, you need to rename the Table names to camel case, for that its better you buy this add-on as it makes life very easyhttp://www.concrete5.org/marketplace/addons/mysql-case-insensitive-...
Thank you so much for responding and writing it a little more newbie-friendly!!
We have indeed redirectedhttp://www.bernardshus.dk to our servers directory with the site (www.websightdemo.dk/bernardshus)
I have done as you described and it seems it almost succeeded - but it wont show the page!
seehttp://www.bernardshus.dk
(it is the danish version of Concrete5 - so you wont understand it - but it just says "Can not find the page".
Hope you are able to help!
And thanks again!!
Mikas
We have indeed redirectedhttp://www.bernardshus.dk to our servers directory with the site (www.websightdemo.dk/bernardshus)
I have done as you described and it seems it almost succeeded - but it wont show the page!
seehttp://www.bernardshus.dk
(it is the danish version of Concrete5 - so you wont understand it - but it just says "Can not find the page".
Hope you are able to help!
And thanks again!!
Mikas
I just checked and get an error as mentioned by you however when i attempt to access the dashboard, i get the dashboard page without css. I would suggest you try to login to the dashboardhttp://bernardshus.dk/index.php/dashboard...
and under sitewide settings , do clear cache and then update cache and see if the pages load properly.
Did you try renaming the tables on your webserver using the case insensitive hell add-on patch ?
and under sitewide settings , do clear cache and then update cache and see if the pages load properly.
Did you try renaming the tables on your webserver using the case insensitive hell add-on patch ?
Hi again
I really really appreciate that you are helping out!!
I get this error when I try to login with our user and pass
"Not Found
The requested URL /bernardshus/index.php/login/do_login/ was not found on this server."
Renaming tables? How do I proceed with this and what does that do?
best
Mikas
I really really appreciate that you are helping out!!
I get this error when I try to login with our user and pass
"Not Found
The requested URL /bernardshus/index.php/login/do_login/ was not found on this server."
Renaming tables? How do I proceed with this and what does that do?
best
Mikas
oh and this is the url when I have tried to login (where I get the error stated above)
http://bernardshus.dk/bernardshus/index.php/login/do_login/...
http://bernardshus.dk/bernardshus/index.php/login/do_login/...
I checked your site files and you did everything perfectly, however you were adding
define('DIR_REL', '/hadruplund');
and
define('DIR_REL', '/bernardshus');
which is not required. You have to remove the /sub-dir name since your Add on domain has already been mapped to show files form the above mentioned directories, as the concrete 5 files for both the sites are in their own root directory
define('DIR_REL', '/hadruplund');
and
define('DIR_REL', '/bernardshus');
which is not required. You have to remove the /sub-dir name since your Add on domain has already been mapped to show files form the above mentioned directories, as the concrete 5 files for both the sites are in their own root directory
I am so happy that you helped out! Thank you very much. I hope this thread will be useful to other people also out there.
Best
Mikas
Best
Mikas