Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Separate Instance of Fusion

Asked Modified Viewed 1,402 times
J
jbendmf
J
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Just a quick question...

I'd like to run a separate instance of PHPFusion on a sub domain. Is that possible?
0 replies

7 posts

M
MrSimple
M
Make it work... keep it simple...
  • Senior Member, joined since
  • Contributed 324 posts on the community forums.
  • Started 7 threads in the forums
answered
Senior Member

Yes. Has been asked before and if I recall correct, there are some problems to be aware of.
But you could wait for v7 as it seems to have this built-in.
Check the dev log and search at the mod site forum.
0 replies
J
jbendmf
J
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I was just going to upload a fresh core to the sub domain, and run it again with different DB name
0 replies
V
V I R U S
V
My signature is to damn big for you to see/Homdax.
  • Member, joined since
  • Contributed 80 posts on the community forums.
  • Started 17 threads in the forums
answered
Member

Set different prefix if you would like to use one sql db and you will need th change the cookie prefix!
0 replies
J
jbendmf
J
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Quote

V I R U S wrote:
Set different prefix if you would like to use one sql db and you will need th change the cookie prefix!


How do I change the cookie prefix?

Thanks for everyone's help, I have it up and running.
0 replies
J
jbendmf
J
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I think I found it in maincore.php

the cookie that is set by the original script is fusion_user

All i have to do is change that?
0 replies
G
GreenMoo
G
  • Junior Member, joined since
  • Contributed 20 posts on the community forums.
answered
Junior Member

You don't have to change the cookie prefix aslong as its on a subdomain and not another path.
When the cookie is sent it goes with the exact domain name including www. or whatever your subdomain is, and the root path.

So if you have two PHP Fusions at
www.yourdomain.com/php1 and
www.yourdomain.com/php2
then the cookies will mix.

However, if you have two PHP Fusion Installations at
www.yourdomain.com/ and
theotherone.yourdomain.com
then the cookies will not mix.

BUT! There's another problem.
If your host is set up to accept connections to http://yourdomain.com/ as if it were http://www.yourdomain.com/, then any cookies set here won't apply to http://www.yourdomain.com/ so you really may end up with three logon cookies. Yikes.
0 replies
K
Kenneth
K
/Kenneth
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

Quote

GreenMoo wrote:
BUT! There's another problem.
If your host is set up to accept connections to http://yourdomain.com/ as if it were http://www.yourdomain.com/, then any cookies set here won't apply to http://www.yourdomain.com/ so you really may end up with three logon cookies. Yikes.


Put the following code in your .htaccess file, and you're out of that problem:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{http_host} ^yourdomain.com [nc]
RewriteRule (.*)$ http://www.yourdomain.com/$1 [r=301,nc]
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 5 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet