Is this possible ? Portal on another subdomain
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Is this possible ? Portal on another subdomain
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink:
What have you done before the problem was there?
What have you already tryed to solve the problem?
Description and Message
Hey friends
My question is just clear
I want to know whether this is possible or not. I want to put the portal on my main site and the forum in its original location intact. Is this possible ?
Thx
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink:
What have you done before the problem was there?
What have you already tryed to solve the problem?
Description and Message
Hey friends
My question is just clear
I want to know whether this is possible or not. I want to put the portal on my main site and the forum in its original location intact. Is this possible ?
Thx
Last edited by Greight on 5. June 2009 13:09, edited 2 times in total.
-
- Site Admin
- Posts: 2989
- Joined: 7. January 2006 20:11
- phpBB.de User: Saint
- phpBB.com User: Saint_hh
- Location: Hamburg
- Contact:
Re: Is this possible ? Portal on another subdomain
Oh, interesting question.
A few things, that are definitely needed:
- You need to have access to the forum DB from your root domain.
- The root directory of your forum is contained in the main directory of your root domain
And then there have to be several things done, to get it properly linked to your forum.
But in general: it might work - with a bunch of things to do. But you are the first one with this approach, so nobody have tried it before.
A few things, that are definitely needed:
- You need to have access to the forum DB from your root domain.
- The root directory of your forum is contained in the main directory of your root domain
And then there have to be several things done, to get it properly linked to your forum.
But in general: it might work - with a bunch of things to do. But you are the first one with this approach, so nobody have tried it before.
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~
Kein Support per PN / No support via PM!
Kein Support per PN / No support via PM!
Re: Is this possible ? Portal on another subdomain
Well as u said this is quite interesting and professional , I wonder why Im the first one who wants this.
I couldnt understand what is forum DB and root admin anyway can u tell me how I can do that ?
I couldnt understand what is forum DB and root admin anyway can u tell me how I can do that ?
-
- Site Admin
- Posts: 2989
- Joined: 7. January 2006 20:11
- phpBB.de User: Saint
- phpBB.com User: Saint_hh
- Location: Hamburg
- Contact:
Re: Is this possible ? Portal on another subdomain
We'll, it's quite unusual to mix a domain with a subdomain. Normally you just link from one to another.
In this case you are trying to run one application (as you can see phpBB including mods), spreading the belonging and depending files over two different domains and locations. This is defiantly tricky. Like running one Microsoft Word on two computer, having half of it installed on each.
But some people are running the forum in a subdirectory and want to have the portal inside the root directory.
For those i have written this KB article:
Moving portal.php outside of your forums directory
This might help you.
- Do you have access from your root domain (e.g. domain.com) to the database of your forum, running in the subdomain (forum.domain.com)?
- As we need access to several phpBB root files: where are your domain and subdomain files located? Do we have access to the subdomain files from the domain directory?
If you take a look in your FTP program: does it look something like this?
- htdocs/domainroot/ <-- root directory of domain.com
- htdocs/domainroot/subdomainroot/ <-- root directory of forum.domain.com
In this case you are trying to run one application (as you can see phpBB including mods), spreading the belonging and depending files over two different domains and locations. This is defiantly tricky. Like running one Microsoft Word on two computer, having half of it installed on each.
But some people are running the forum in a subdirectory and want to have the portal inside the root directory.
For those i have written this KB article:
Moving portal.php outside of your forums directory
This might help you.
As i dont know how your web / hoster configuration is, i tried to ask:Greight wrote:I couldnt understand what is forum DB and root admin
- Do you have access from your root domain (e.g. domain.com) to the database of your forum, running in the subdomain (forum.domain.com)?
- As we need access to several phpBB root files: where are your domain and subdomain files located? Do we have access to the subdomain files from the domain directory?
If you take a look in your FTP program: does it look something like this?
- htdocs/domainroot/ <-- root directory of domain.com
- htdocs/domainroot/subdomainroot/ <-- root directory of forum.domain.com
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~
Kein Support per PN / No support via PM!
Kein Support per PN / No support via PM!
Re: Is this possible ? Portal on another subdomain
Yeah I use cuteftp and can access subdomains directory from the root.
SO first I should create the portal and then using the steps u provided in the link, I must move portal to my main site. Is that correct ?
Another question , if I install this portal and then phpBB gets updated what happens ? Will the portal remain intact ?
Thx
SO first I should create the portal and then using the steps u provided in the link, I must move portal to my main site. Is that correct ?
Another question , if I install this portal and then phpBB gets updated what happens ? Will the portal remain intact ?
Thx
Re: Is this possible ? Portal on another subdomain
what happened
Dont u wanna answer ?
Dont u wanna answer ?
Re: Is this possible ? Portal on another subdomain
I triewd that
Seems impossible becase I cant set this pass :
The forum is in forum. and I want to put portal.php in x.ir , so now I understand what you meant. If anything came to ur mind about this please tell me.
Seems impossible becase I cant set this pass :
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
Last edited by Greight on 17. August 2009 12:57, edited 1 time in total.
Re: Is this possible ? Portal on another subdomain
The path also is as u said but there is a httpdocs folder interfering this, i . e .forum is in
/subdomains/forum/httpdocs
main site is in
/httpdocs
/subdomains/forum/httpdocs
main site is in
/httpdocs
-
- Site Admin
- Posts: 2989
- Joined: 7. January 2006 20:11
- phpBB.de User: Saint
- phpBB.com User: Saint_hh
- Location: Hamburg
- Contact:
Re: Is this possible ? Portal on another subdomain
As stated before - in this example:Greight wrote:The forum is in forum.enz.ir and I want to put portal.php in enz.ir , so now I understand what you meant. If anything came to ur mind about this please tell me.
The line would look something like this:<em>Kevin</em> wrote:- htdocs/domainroot/ <-- root directory of domain.com
- htdocs/domainroot/subdomainroot/ <-- root directory of forum.domain.com
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './subdomainroot/';
Just read your last post during writing this.
You may try to use the line this way:
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../subdomains/forum/httpdocs/';
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~
Kein Support per PN / No support via PM!
Kein Support per PN / No support via PM!
Re: Is this possible ? Portal on another subdomain
Thx
I tested the last one and gave me this error :
I tested the last one and gave me this error :
Code: Select all
Warning: include() [function.include]: open_basedir restriction in effect. File(../subdomains/forum/httpdocs/common.php) is not within the allowed path(s): (/var/www/vhosts/x.ir/httpdocs:/tmp) in /var/www/vhosts/x.ir/httpdocs/portal.php on line 20
Warning: include(../subdomains/forum/httpdocs/common.php) [function.include]: failed to open stream: Operation not permitted in /var/www/vhosts/x.ir/httpdocs/portal.php on line 20
Warning: include() [function.include]: open_basedir restriction in effect. File(../subdomains/forum/httpdocs/common.php) is not within the allowed path(s): (/var/www/vhosts/x.ir/httpdocs:/tmp) in /var/www/vhosts/x.ir/httpdocs/portal.php on line 20
Fatal error: Can't load ../subdomains/forum/httpdocs/common.php, open_basedir restriction. in /var/www/vhosts/x.ir/httpdocs/portal.php on line 20
Last edited by Greight on 17. August 2009 12:58, edited 1 time in total.
-
- Site Admin
- Posts: 2989
- Joined: 7. January 2006 20:11
- phpBB.de User: Saint
- phpBB.com User: Saint_hh
- Location: Hamburg
- Contact:
Re: Is this possible ? Portal on another subdomain
"open_basedir restriction in effect. File(../subdomains/forum/httpdocs/common.php) is not within the allowed path(s)"
Yeah, this is what i have talked about.
Access from one domain to another. The only one, who could help you is your webhoster.
But i think i can already say that he will say "no" for security reasons.
Once again: this is really unusal and securitywise a bad idea.
Yeah, this is what i have talked about.
Access from one domain to another. The only one, who could help you is your webhoster.
But i think i can already say that he will say "no" for security reasons.
Once again: this is really unusal and securitywise a bad idea.
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~
Kein Support per PN / No support via PM!
Kein Support per PN / No support via PM!
Re: Is this possible ? Portal on another subdomain
So this seems virtually impossible
What about doing a trick
If I make a subfolder and put portal in it , then use a redirector on the main site that redirects users there ,from there they can access portal while forum.x.ir brings them directly to the forums. So can you give me a php redirector ? Ive seen and am using java versions but I think they are not dependable.
Thx a billion
What about doing a trick
If I make a subfolder and put portal in it , then use a redirector on the main site that redirects users there ,from there they can access portal while forum.x.ir brings them directly to the forums. So can you give me a php redirector ? Ive seen and am using java versions but I think they are not dependable.
Thx a billion
Last edited by Greight on 17. August 2009 12:59, edited 1 time in total.
Re: Is this possible ? Portal on another subdomain
I suppose this is also impossible because the forum should be in the subfolder !
Am I right ?
Am I right ?
Re: Is this possible ? Portal on another subdomain
Ok another idea
I dont edit .htaccess file so forums index is the home page
So can anybody give me a php redirector ?
I dont edit .htaccess file so forums index is the home page
So can anybody give me a php redirector ?