PDA

View Full Version : SubDomain Question


computerguy
11-02-2009, 04:05 AM
I have read 50 or more posts in this forum.
I have gone back as far as 2007 reading through random posts.
Brian I hope you are nearing or reached your full recovery from all your surgeries and trial and error processes with your health and medical issues.
I have seen a free calendar from (admin removed) or something along those lines. I keep finding myself coming back to this site for this calendar setup. EPC is much more simplified from what I can tell.
Seems like it will be a lot better too when version 7 is released :)

My question has somewhat been answered through other posts I think about domains, subdomains, and multiple calendars.

But I would like this clarified for myself and maybe anyone else with similiar thoughts.

I have a website for a local recreation facility.
I guess I could make categories for each sport.
(IE: Lacrosse, Hockey, Soccer, Etc.)

But my issue is this...
www.domain.com (http://www.domain.com) is main site for facility (With links to each sport sections)
These sports pages are created as subdomains and the links go to these pages via their www.subdomain.domain.com (http://www.subdomain.domain.com) address.
This way when a group wants to inform the rest of the members about their sport on the site, they would just tell them http://subdomain.domain.com instead of www.domain.com (http://www.domain.com) and having to navigate through the main site to their sport.
All sports groups would need to know what other times are booked by other groups, BUT would also be able to filter the calendar to show only their sport. I know the category filter would allow for this.
Is there a license set-up that would allow someone like myself to purchase the 1 key for this site, and still have the calendars work properly on each subdomain name?

Or am I looking at having each group buy a license, YET... they all need to see easily that a time slot is available or booked.

Or last resort... I could just drop the subdomain feature all together I guess. Then stick to categories and the filter drop down.
Maybe I answered my own question.
The last resort option would probably resolve all that. lol

I also read something that wasn't verified in another post from awhile back about maybe pointing to the calendar using the server path (IE: /home/account/public_html/ )
My question there is...
If I install the calendar to
/home/account/public_html/calendar/
accessed by http://www.domain.com
Can the subdomain /home/account/public_html/subdomain/
accessed by http://subdomain.domain.com still use the same calendar installed to /home/account/public_html/calendar/

Or is this still a domain name issue tied to the license key since at some level http://subdomain.domain.com is different from http://www.domain.com

And is there a limit on the categories that can be used to seperate in my case sporting groups.
We have about 12 or more groups that use the facility on a regular basis.

ve9gra
11-02-2009, 06:46 AM
I would say that for your setup, it would be easier to drop the sub-domain like you said, and then use sub-folders. That way there would be no problems with the calendar at all. But for the licensing question, Brian is the one to have the final say.

As for how many categories you can have... it's as many as you want.

Brian
11-02-2009, 09:09 AM
If you can, open support ticket so I can give you some information to perform a test to see what the best setup would be. :)

computerguy
11-02-2009, 08:20 PM
Thanks for the quick replies.
Too bad all software developers and companies weren't like this. :)

I started a trouble ticket and did some testing before doing so.

Odd thing is, the calendar seems to work for the subdomains, BUT not the MAIN domain.

I used the ftp information such as domain.com username and password.
I didn't use the subdomain names for the ftp account.

Calendar was installed once to a tester folder
/home/account/public_html/tester/

subdomain1.domain.com/schedule.php works
/home/account/public_html/subdomain1/

subdomain2.domain.com/schedule.php works
/home/account/public_html/subdomain2/

subdomain3.domain.com/schedule.php works
/home/account/public_html/subdomain3/

domain.com/hours.php DOES NOT WORK
/home/account/public_html/
Encountered the Zend Optimizer error.

for each of the pages I used

<?php $OL=1; require("/home/account/public_html/tester/calendar/calendar.php"); ?>
<?php $epcMultiCatShow=1; ?>
<?php require("/home/account/public_html/tester/calendar/plugins/legend.php"); ?>
<?php require("/home/account/public_html/tester/calendar/plugins/filter.php"); ?>
<?php $TOC=1; require ("/home/account/public_html/tester/calendar/calendar.php"); ?>

Of course the following line was in the HEAD section of the pages.
<?php $CSS=1; require ("/home/account/public_html/tester/calendar/calendar.php"); ?>

As I typed this and copied the css code from the page to here, I noticed it was missing from the main domains page, so I added it. It didn't resolve that issue.

computerguy
11-02-2009, 08:39 PM
I just looked at the link in Brian's Signature and noticed I should change the server path in the calendar.php file.
It was still in it's default setting.
Now it reads /home/account/public_html/tester/calendar/
Just refreshed the calendar pages. They are all still working the same as they were before. Subdomains work and Main domain does not.
However... Now i get the following error.
License Key Error.
[Running in limited mode]

I just verified that I had the server path incorrect.
/home/account/public_html/unrelated_subdomain/tester/calendar/
Fixed that and the license key error went away.
BUT, the Zend Optimizer error still persists at the main domain.

ve9gra
11-03-2009, 06:42 AM
Sometimes that is due to having a php.ini in your root domain public_html or htdocs or www (whatever your host uses). What happens there is that at the server level, the php.ini has the proper directives to load the Zend Optimizer, but your own copy of php.ini doesn't have those directives. It would explain also why the sub-domains work as they probably do not have their own php.ini defined.

If you find a php.ini anywhere in your account, review its content to make sure that it's actually needed, and if so contact your host to get the lines that you should add to your file so that Zend is loaded properly.

computerguy
11-03-2009, 01:48 PM
I had a nice long post that walked through all my issues as I was testing them, then upon posting it said I was already logged in earlier and then I lost the entire HUGE post.

Basically it stated that I had 1 php.ini file in the root and none in the subdomain folders.

I had zend code in the php.ini that was commented out, then newer zend code at the very bottom of the php.ini file that I assume was installed there from the zend autoinstaller.

I tried many variations to the 2 bits of code.
The 2 lines that were in the middle had quotes around the server path. The code at the bottom did not.
I tried both with or without quotes. Everything I tried changed nothing.

Then I had a thought. So i deleted the PHP.INI file altogether. (Of course I have a copy on my local machine to put back)
I needed the php.ini file to boot my upload limit to 50mb and gave a longer period for scripts to be run before timing out.

Of course upon deleting the php.ini file, The calendar seems to work on all levels.

BUT I did had to change in the the server path to /home/account/public_html/tester/calendar/ and the url path to http://www.domain.com/tester/calendar in the calendar.php file.
Prior to making that change, the pop-ups wouldn't load correctly.

Also I detected a minor layout bug (maybe) in the pop-ups.
The click pop-up works fine. but the mouseover pop-up has a new line / break error.

------------
Looks like I have some php.ini debugging to do. :(