Is my directory structure possibly a problem?

Discussion in 'Troubleshooting' started by chaos0001, Mar 18, 2014.

  1. chaos0001

    chaos0001 New Member

    Joined:
    Mar 4, 2014
    Messages:
    4
    I tend to ramble, I highlighted my main questions in blue in case anyone wants to skip the background info ...

    Mostly aMember works great for me even tho I suspect I have a weird setup. I've got a few small issues which I could probably brute force my way through but I'd like to have things setup optimally as possible with as little affect on my users as possible. And I'm hoping to hand off admin to a non-developer. I'm having issues accessing the session variables, and using single signon for wordpress & amember, and an odd behaviour with the wordpress text plugin where one works perfectly and the other doesn't. After reading thru the documentation and forums, I've come to the conclusion that the way I have things setup may be the problem, but I wanted confirmation before I go rearranging it.

    My server is setup like this - everything is on the same physical server
    /public_html
    /public_html/mainsite (where my main site is located - I use .htaccess rewrite to redirect mydomain.com to that sub dir)
    /public_html/mainsite/amember (where amember 4.3.6 is installed)
    /public_html/mainsite/amem-content (where I store some protected content)
    /public_html/-blog (where wordpress is installed & referenced as blog.mydomain.com)
    /public_html/-forums (where phpbb is installed & referenced as forums.mydomain.com)
    and some other dirs and subdomains not pertinent to what I am doing with amember

    but I read on one of the forums that the domain had to be the same. The domains are all mydomain.com and I've been looking at the cookies since I read that. But I didn't quite understand the discussion saying that www.mydomain.com and mydomain.com are different domains. They are the same domain and even tho I force the use of www in my .htaccess file my amember cookie is still set for mydomain.com, which is fine by me.

    It's late and I'm rambling bottom line is the question, in order to have single signon do I need to move wordpress and phpbb under the mainsite directory structure physically? And part 2 is do I need to move my main site into the public_html directory?

    (I hate that, but amember which I just bought and totally setup in a couple days - except for some design customizations is 100 times better than what I was using so I will move things if that is what it takes.)
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    I would be inclined put aMember in /public_html and then folder protect 'amem-content' main blog directory and main forum directory.

    OR put aMember in '/public_html', site into 'mainsite' and create a directory '/public_html/member-content', folder protected, and put everything that requires logging into in that folder.

    The file, and folder, moving is probably easier using cPanel.
  3. chaos0001

    chaos0001 New Member

    Joined:
    Mar 4, 2014
    Messages:
    4
    I think I am going to do a mix of your two suggestions since my main site is in 'mainsite' and the blog is in '-blog' and forum is in '-forum' all under /public_html/ already, I'll pull 'amember' and the protected 'member-content' up to public_html since it's in its own dir already. I've moved wordpress and phpbb and others around from server to server to directory to domain I might as well practice moving amember around. Thank you for helping me wrap my head around that. But I won't be using cpanel for moving files it drives me nuts I'm an ftp girl. Anyway thank you again.
  4. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Just make sure aMember is all on its own, in its own directory, as its .htaccess file can make other things 'confused'.

    After the moves remember to check the protection settings.
  5. chaos0001

    chaos0001 New Member

    Joined:
    Mar 4, 2014
    Messages:
    4
    Will do. I've been over the move info multiple times. If I'm careful, it won't be a blip on the radar for my members. Any advice beyond the guide and those 2 reminders? It seems pretty straightforward.

Share This Page