Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-26-2013, 10:32 AM   #1
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
server question; how does file hierarchy work?

i mean like the way Magento is set up.

I want to run a project with many subdomains with custom fronts and images, using everything else the same as the root domain. Magento does this fantastic, is this easy with just the htaccess or a complete different filesystem?

anybody?
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 10:52 AM   #2
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
Come again?
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:07 AM   #3
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
Ha!
I issume you dont know how magento works. besides me not being very clear ;-)
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:13 AM   #4
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
What does server question have to do with how magento works!? You suggesting using htaccess only tells me you would run apache web server. Subdomains are easy to setup depending on what access you have to this server, if it has a panel of some sort (cpanel, webmin, plesk, etc.), else use ssh and edit the webserver config to add virtual hosts.
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:27 AM   #5
paffie
Confirmed User
 
Industry Role:
Join Date: Mar 2013
Posts: 116
Quote:
Originally Posted by Zealotry View Post
What does server question have to do with how magento works!? You suggesting using htaccess only tells me you would run apache web server. Subdomains are easy to setup depending on what access you have to this server, if it has a panel of some sort (cpanel, webmin, plesk, etc.), else use ssh and edit the webserver config to add virtual hosts.
Correct. Apache allows you to setup unlimited vhosts, just make each subdomain it's own vhost, and use the same config file on each one, so you connect to the Same database tables.... That way i suppose you can run unlimited subdomains with the Same content, but a different template...
__________________
Need a VPS? I use Ramnode, great uptime, friendly support and only $62/year (after their lifelong coupon) for an openVZ VPS => [email protected], 512Mb ram, 512 Mb swap, 120 Gb SSD, 1Gbps port, 2 Tb bandwith, 1 IPv4, 16 IPv6, weekly backups
paffie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:29 AM   #6
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
If you use the same config file for each virtual host, you will end up serving the same thing in different subdomains. What's the point? it is your scirpt that would need to connect to a database, not your virtual host. That does not even make sense. Maybe you mean script config, not webserver config?
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:51 AM   #7
paffie
Confirmed User
 
Industry Role:
Join Date: Mar 2013
Posts: 116
Zealotry, that was wat i meanth, duplicate the magneto-config, not the vhost (i think two identical vhosts would not work, since i think the Servername directive has to be unique... Never tried it tough).
I was using my ipad (with auto-correct), and it was pretty difficult for me (a non-native english speaker) to find the correct words to describe my sollution...

i've quickly turned on my laptop, it's a lot easyer to write a reply that way...

The way i understood the original question was: Is it possible to have exacty the same products in different magneto-shops. Each shop should be reachable as a different subdomain, everything should be hosted on the same server...

The way i would solve it:
1) i would use the cloudflare nameservers, and make an A-record for each subdomain, and point it to the ip of my server (in case one of the subdomains gets very popular, and needs his own host, it makes it a lot easyer to switch if you made a-records to begin with)
2) i would probably use a LAMP-stack (Linux, Apache, Mysql, Php), and make a vhost file for every single subdomain (place it in /etc/apache2/sites-available, softlink it in sites-enabled, restart apache2). Give every subdomain its own folder on your server (Use the ServerName directive in the vhost file)
3) install magneto once, copy it to every subdomain folder... Now you have exactly the same magneto shop in every subdomain....
4) i've never used magneto, but it probably works with templates, like most other scripts available on the web today... now, you can either edit the default template, so every subdomain gets its unique look-and-feel, or, if the choice of the template is not stored in the database, but in a config-file, you can even just change that said config-file for each subdomain, and use the basic features of the script to switch templates....

In the end, i'm not completely sure if i understand your question correctly, since i don't see any advantages to this approach... But on the other hand, if you question was just to setup different stores on different subdomains, it's exactly the same first and second step, but then install magneto on each subdomain, using his own database...

Last edited by paffie; 06-26-2013 at 11:53 AM..
paffie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:56 AM   #8
blazin
Confirmed User
 
Join Date: Aug 2002
Posts: 2,781
Magento handles this for you out the box... I can't be bothered to look it up but you just need the one Magento install and it will handle the rest. All the Vhosts will point to the same directory.

Refer to the Magento multishop configuration documentation for more information.
__________________
I don't endorse a god damn thing......
blazin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:57 AM   #9
paffie
Confirmed User
 
Industry Role:
Join Date: Mar 2013
Posts: 116
Quote:
Originally Posted by blazin View Post
Magento handles this for you out the box... I can't be bothered to look it up but you just need the one Magento install and it will handle the rest. All the Vhosts will point to the same directory.

Refer to the Magento multishop configuration documentation for more information.
I did not know that... Never used the script... If this is the case, everything should be a lot easyer than i said it would be
paffie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 12:00 PM   #10
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,078
I think the OP is asking how to emulate what Magento does without actually installing Magento.

I think.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 01:04 PM   #11
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
I would not use cloudflare. Well, last time I used it, it totally sucked. I suggest you go with nginx instead of apache. Your plan seems like one that would get lots of traffic.
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2013, 11:59 PM   #12
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
Quote:
Originally Posted by sarettah View Post
I think the OP is asking how to emulate what Magento does without actually installing Magento.

I think.

.
Bingo!

I have been working with Magento since day 1, i know how it works haha.

I was asking how they did the multistore thing, with the fallback system on each skin/theme. We have a clubclothing website and we'd like the clubs to have their own subdomain under one script, using only different images/frontpages than default. Indeed emulating what Magento does.

I asked "server" guys as this might be something technical, not scripting.
By now i do know it is setup with htaccess/mod_rewrite routines together with other code.

Thanks for all the - not needed - serverreplies;-). Some of those were answers to questions i would be ashamed to ask after so many years:-p

I'll try to be more clear next time.
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-27-2013, 12:23 AM   #13
facialfreak
Confirmed User
 
facialfreak's Avatar
 
Join Date: Feb 2005
Location: Montreal
Posts: 3,018
This thread delivers! :p
facialfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-27-2013, 01:11 AM   #14
paffie
Confirmed User
 
Industry Role:
Join Date: Mar 2013
Posts: 116
Quote:
Originally Posted by Zealotry View Post
I would not use cloudflare. Well, last time I used it, it totally sucked. I suggest you go with nginx instead of apache. Your plan seems like one that would get lots of traffic.
I've been using cloudflare for over a year now... They saved my ass a couple of times, so it's not very likely i'll ever drop them ;-)

I've experimented with nginx a couple of times, worked really fast for static content... I reverse proxyd everything but requests to static pages to an apache server listening to another port... (some of my homemade scripts rely on htaccess rather intensively, i was not in the mood to rewrite all those linex to nginx conf-files)


I stopped my approach after the server load became to high (i'm using two mid-level VPS's, and their load was close to 20 if i remember correctly... To bad my VPS's have 2 and 4 Vcpu cores... my host had to kill my instances a couple of times because the stability of his system was in jeopardy... So i decided to go to the classic LAMP again)
paffie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.