1 merlin Apr 22, 2010 12:05
3 merlin Apr 22, 2010 13:12
Awesome. Thanks JM.
4 jmcausing Apr 22, 2010 13:17
no problem man!
5 merlin Apr 22, 2010 13:22
...hmmm, close to what I wanted, but not exact unfortunately.
Ideally I'd like to try and get the setup as follows...
subdomain.domain.com/myblog.php
subdomain.domain.com/yourblog.php
subdomain.domain.com/anotherblog.php
etc.
Anyne here done something like this before?
Thanks, N. =]
6 jmcausing Apr 22, 2010 13:28
lets wait for their reply. I can only afford a .tk domain lol
7 merlin Apr 22, 2010 14:02
Haha. ;)
I got a cracking deal on my hosting and domain - couldn't say no.
8 yabba Apr 22, 2010 20:48
Tad lost as to your problem.
admin > blog settings > url > absolute url (sub dom + stub file.php)
¥
9 dubird Jul 02, 2010 01:14
Ok, I've been trying to get this to work for myself with no luck. I've set the blog to the subdomain, copied over the stub file to said subdomain folder, and adjusted the path. It just comes up blank. So I was wondering, is there a way to use an absolute path instead? The reason I ask is that on my server, my subdomains are located in a folder outside my main httpdocs folder. I.E., my site and the b2evo install are in the root/httpdocs folder, each subdomain are in a root/subdomains/name/httpdocs/ folder.
10 yabba Jul 02, 2010 17:14
I'm guessing that you have safe mode enabled if you've done the right "../../../httpdocs/conf" path in your stubs
¥
11 dubird Jul 02, 2010 17:18
is that safe mode on the server or b2evo?
12 yabba Jul 02, 2010 17:20
On the server.
In your stub, after <?php add the following two lines
error_reporting( E_ALL );
ini_set('display_errors', 'on' );
It should spit out errors for you.
¥
13 dubird Jul 02, 2010 17:42
ok, here's what i ended up with:
Warning: main() [function.main]: open_basedir restriction in effect. File(/root/subdomains/name/httpdocs/../../../httpdocs/b2news/blogs/conf/_config.php) is not within the allowed path(s): (/root/subdomains/name/httpdocs:/tmp) in /root/subdomains/name/httpdocs/index.php on line 45
Warning: main(/root/subdomains/name/httpdocs/../../../httpdocs/b2news/blogs/conf/_config.php) [function.main]: failed to open stream: Operation not permitted in /root/subdomains/name/httpdocs/index.php on line 45
Fatal error: main() [function.require]: Failed opening required '/root/subdomains/name/httpdocs/../../../httpdocs/b2news/blogs/conf/_config.php' (include_path='.:./pear:/usr/share/pear4') in /root/subdomains/name/httpdocs/index.php on line 45
whichs makes me wonder if using the server path instead of what i've got will work....
*edit
Removed extraneous path info ;)
¥
14 yabba Jul 02, 2010 17:47
Nope, it'll still fail.
You can *possibly* get by it by creating a .htaccess ( in subdom httpdocs ) with the following
php_value safe_mode = Off
or a php.ini ( in subdom httpdocs ) with the following :
safe_mode = Off
If not then you can either ask your host or, if you're able, change your sub dom's "home" folder to "~/root/httpdocs/" which is how I run my shared subdoms ... but there's only me that has ftp access to my blogs ;)
¥
15 dubird Jul 02, 2010 18:13
Neither one worked, so guess I'll see if my host will do it. I doubt they will, because I seem to remember asking them about turning safe mode off before and they wouldn't, but no harm in asking again. Thanks for your help!
16 yabba Jul 02, 2010 18:31
Good luck with your hosts ;)
¥
17 dubird Jul 03, 2010 04:04
For the record, thought I'd share what I had to do to fix this, since my subdomain folders were not in the same as my base domain files were.
Ended up having to switch PHP mode from Apache to FastCGI, then make sure there was a stub file in the subdomain folder. Neither the .htaccess file or php.ini worked on my server. Just an extra something someone else can try if they are having the same problem I did. ^_^
hi Merlin
You can try visit this url
http://forums.b2evolution.net/viewtopic.php?t=20811&highlight=subdomain
or this
http://manual.b2evolution.net/MultipleDomains
good luck