Jump to content

Search the Community

Showing results for tags 'multisite'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







  1. Hello, i need help i dont know what happen but i get this error Its an multipage installation with one core and many languages. EN Version is ok but the DE version always error 500 also if i try to login to the backend. Exception: You do not have permission to execute this module - ProcessPageView (in /homepages/17/pathtosite/wire/core/Modules.php line 1225 Errorlog: 2016-11-26 11:13:37 guest http://de.mypage.com/?/ Error: Exception: You do not have permission to execute this module - ProcessPageView (in /homepages/17/pathtosite/wire/core/Modules.php line 1225) 2016-11-26 11:13:57 guest http://de.mypage.com/?/ Error: Exception: You do not have permission to execute this module - ProcessPageView (in /homepages/17/pathtosite/wire/core/Modules.php line 1225) #0 /homepages/17/pathtosite/wire/core/Modules.php(1130): ProcessWire\Modules->getModule('ProcessPageView') #1 /homepages/17/pathtosite/index.php(53): ProcessWire\Modules->get('ProcessPageView') #2 {main} 2016-11-26 11:14:34 guest http://de.mypage.com/?/ Error: Exception: You do not have permission to execute this module - ProcessPageView (in /homepages/17/pathtosite/wire/core/Modules.php line 1225) #0 /homepages/17/pathtosite/wire/core/Modules.php(1130): ProcessWire\Modules->getModule('ProcessPageView') #1 /homepages/17/pathtosite/index.php(53): ProcessWire\Modules->get('ProcessPageView') #2 {main} 2016-11-26 11:14:51 guest http://de.mypage.com/?/ Error: Exception: You do not have permission to execute this module - ProcessPageView (in /homepages/17/pathtosite/wire/core/Modules.php line 1225)
  2. Hi all I've built a website that contains 3 OnePagers. The structure is: - home (landingpage with links to sites a, b and c) -- site a -- site b -- site c -- other pages... Home has the main domain, let's call it main.com. the three pages are main.com/site-a, main.com/site-b and main.com/site-c. I'm looking for a way to have site a to c with their own domains, like site-a.com, site-b.com, site-c.com. these domain names should be visible in the url-bar of the browser (not main.com/site-a). Is there a way to do that? I want to keep it a single Processwire installation, not having three different ones (I know how to do that). Your help is very much appreciated. Thanks
  3. I run all processwire sites with multi-language support as it is a must these days. While developing a site, I sometimes need to try some things on a separate instance, implement them and if it all works fine and is properly tested, I push the development version to a production one, so I do some development staging basically, which is better than playing with the production version directly. Let's say I have a multi-site instance with "site" dir containing the production version, and a "site-dev" as a development version, which is a copy of the site's code and a separete database. So the only thing in common now is the "wire" dir. One thing does not work in this scenario, which is the multi-language support, namely the translations are not taken into account. This is my "site-dev-3" example: As you can see, the "site" part of path is removed and I am left with "-dev-3", which obviously is not a correct path. This is my index.config.php file which should be set properly: function ProcessWireHostSiteConfig() { return array( /* * Some Examples (you should remove/replace them if used). * Just note that the values must begin with 'site-'. * */ 'hostname.com:8881' => 'site-dev-1', 'hostname.com:8882' => 'site-dev-2', 'hostname.com:8883' => 'site-dev-3' /* * Default for all others (typically /site/) * */ '*' => 'site' ); } Is there anything else I am missing regarding the language support so all translations are properly picked up?
  4. Hi there, most of the data comes from the pw main instance. There are also sub-pages (multiple sites, e.g. sub1.pwmain.instance.net, sub2.pwmain.instance.net and so on) each with its own database. In addition to independent entries, it should be possible to select or update data records here referenced from the main instance (pwmain.instance.net). These links (Page-References to pwmain.instance, e.g. ASM-Select) should be able to be reda and updated from the second (site-sub)database. I tried this approach, with a hook and it looks something like this... ready.php Then, it was possible to choose the entries directly from main-db and save in the site-sub database, so this is how I call an entry in home.php (on site-sub) Without grabbing the id, it would show only the entry from the current "site-sub" domain (test_select_main_db). That just doesn't seem optimal. That's why I kindly ask for your opinion! Why am I doing this? For different users I only need the view of their own saved datasets/links, each of them gets separate access to their own subpage (e.g. sub3.pwmain.instance.net). Every sub-user will choose from the same data-pool and can create (autocomplete, create-new and so on), don't worry about the person, who would fix some possible typos here .. On the other hand: I've tried to map the whole thing in just one database, looks pretty good, especially using the admin-restrict-branch module with its great options. But the thought of getting a separate view on the fronted for each user and their own entries is giving me a headache... Help please, I'm totally stuck, .. What do you think would be the better way?
  5. Hi, I'm looking at how I might achieve the following with Processwire: A low-bandwidth version of a website, on a subdomain (eg text.mydomain.com), where the content/database is exactly the same as the top level domain, but a new set of templates is used so the site is stripped back to just very simple CSS/low quality images. I'm looking and trying to work out what might be best — is it multi-site from the same database? Multi-instance? API? Any guidance or experience of a similar setup would be much appreciated.
  6. Hello everyone, I recently started using ProcessWire and already manage to accomplish several things on my own, but I keep asking myself a lot of questions, among which the following: After installing a multiple sites version (first method), everything works for now as desired, but I realize that all the files seem accessible by all the domains. Let's say that site1.com can access the asset files, template or other ressources of site2.com folders and vice versa by specifying only and for example: site1.com/path_to_a_site2_folder/one_file or site2.com/path_to_a_site1_folder/one_file Would you know if there is a simple way to prohibit this kind of behavior in order to clearly distinguish each site and thus ensure the confidentiality and separation of content? I prefer to avoid the entities to be considered as a single set by crawlers and prevent access the elements belonging to each domain from another domain. Thanks for your help. Sébastien.
  7. Hi everybody! I have been reading about Multisite, but it kinda bugs me that every topic talks about having both admin and database same for multiple sites. I have a project where customer tests it by adding content to the site, while I still need to do some changes here and there in code, maybe some in database. If something crashes for a while, customer can't keep testing, which is a bit problematic. Is there any way that I could have two separate versions of one site ("production" and development) that share the same database, but are otherwise independent? Just the thought of having to migrate database every time I want to show client something new gives me anxiety ?
  8. Hi community, I am wondering if its possible to display languages based on what host/domain has been requested. The use case is the following: I have one installation of PW - and within this installation I set up 5 different languages (default, english, spanish, french, dutch). Now I have 3 different domains (domainA.com, domainB.com, domainC.com) and I want to decide which languages to make available based on what domain has been navigated to. For example: domainA.com - default (domainA.com) - english (domainA.com/en) domainB.com - default (domainB.com) - french (domainB.com/fr) - dutch (domainB.com/nl) domainC.com - default (domainC.com) - dutch (domainC.com/nl) So what I want to achieve is making only these particular languages selectable in the language switcher on the frontend. Since all pages share the same templates and overall site structure I don't see the benefits of running this installation as a multisite setup or would it be better to do so? But I assume that this would be difficult to handle since the default language might change as well. (On the french version of the page, french should be the default language and so on). Any suggestions how to accomplish that? Thanks!
  9. Hi guys Is it possible to have a PW site display content from another PW site? I've been reading about ProcessWire's Multi-site options and I don't think either is a way forward for me. Both PW sites are separate installs with separate databases but crucially they are on the same VPS. So I'm hoping that's a good thing. Basically, Site A has approx 100 reviews consisting of these fields Reviewer name Review Date Instead of setting up the fields onto Site B and duplicating work and creating 100 pages, I want to *somehow* get site B to use a selector to fetch the necessary content from Site A. In future, if I need to update the reviews, I can goto the 'source' Site A to do this.
  10. I know it is possible to have a different domain name for each language of a site. For exemple: monsite.com (for French) mysite.com (for English) I know also that we can have several sites in one installation with the help of Soma's Multisite module. I have a company who has four independent sites (four different companies under a same umbrella). The new design and structure of those sites will be practically identical. There will be different administrators for each site, but a lot of data will be shared, so using Soma's module seems to be a good idea. The problem is that those 4 sites have different names for the French and English version. compagnieUn.com (for French) companyOne.com (for English) compagnieDeux.com (for French) companyTwo.com (for English) etc. Will we shoot ourselves in our feet to develop with just one installation? Would it be preferable to make those sites able to talk to each other instead? Your input would be very much welcome!
  11. I have a question about Multiple Site implementation, and how to possible "share" modules between them. First, required reading: https://processwire.com/api/modules/multi-site-support/ I'm dealing with Option #1. The way this works is that in the root directory of a site, there is an index.config.php file that denotes what domain is mapped to which site-*/ directory. The project I am working on has three site-*/ directories, each with their own site-*/modules/ directory. What has happened is that a lot of the modules from site to site are the same. I was wondering if there was any way to "share" modules between sites in the Multiple Site setup, via symlink or alias, or potentially if there was some roadmapped feature that @ryan has planned to solve this issue. Either way, any help/pointers would be appreciated!
  12. Wondering if anyone can help me get past a sticking point. I'm setting up a Processwire instance in a multiple site setup (using Soma's multisite) to run several related websites. I am getting stuck on the tagging system that I am using (adapted from a standalone PW site I'm running). I have the tags themselves set up as Pages, and the Tags field on the related pages is and ASMselect field that populates based on the pages underneath /tags/ in the tree. This system works fine on the standalone site. Where I am running into issues, is with trying to use them with the multisite setup. Specifically, choosing the proper subset of pages for tags on the ASMselect input tab. I want to choose only the tag pages for the site in question. My tree is laid out like this: Multisite / | site1.com | subsections | site2.com | subsections | Tags | site1.com | tagA | tagB | site2.com | tagC So far, the best I've been able to do is to use 'parent.has_parent=/tags/' in the Custom Find or Selector String portion of the Selectable Pages section of the input. This gives me the options of choosing tagA, tagB, or tagC on a page under site1.com. What I'd like to find is a selector that allows me to only see tagA, tagB as options from a page under site1.com and only tagC on a page under site2.com. Elsewhere in my php templates, I'm using $page->rootParent->title to set the proper scope and URLs for things, but I have not found a way to get that to work in this field input setup. I am trying to avoid creating specific fields and templates for each site, as unified templates were part of the purpose of going with a multisite install. Thanks in advance for any ideas.
  13. Hi all, Just a quick question, when using the multisite module is there anything different that needs to be done in order to setup HTTPS for each of the domains its serving? Would a single SSL certificate for the main domain be enough to cover the others aswell or would you need multiple ceritficates one for each domain the mutlisite setup uses?
  14. Hello, I am new to PW and learning this great tool for web development. I have already created a site for portfolio showcase using PW Same site templates will be used for different portfolio showcase with different sites / domain and different database. For all the sites front end design/display will be same. So, in future if I wan to modify display of sites, I have to edit template file [ i.e. /site/template/file.php ] for each domain, which is not a good solution. I want a solution where I will modify at single place and that will be reflected in every domain / site. Is there any way to achieve this ? Please guide
  15. Hi! I've been working over a number of sites into processwire, but I have come across a strange bug I cannot wrap my head around. I'm using method #1. Single wire directory, multiple site- directories with index.config.php and config.php set up properly. I've had no problem setting domains in the configs up until this point. www and root domains are loading perfectly. However I tried to add a subdomain value 'new.domain.com' and I have put the bits in all the right spots. I get a 500 Internal Server Error. If I change the subdomain to something else, same deal. Only domain.tdl and www.domain.tdl entries are working. Any thoughts? I'm using the latest stable 3.X branch.
  16. I'm wondering if anyone else has attempted this before. I've setup a basic test multisite installation that effectively includes the master site and 3 others subsites using either the basic or intermediate template. I can't remember which and there might even be a mix of both among them, but I don't think that should cause an issue. What I want to achieve is a Home tab in the navigation menu on each of the subsites that links directly to the Home page of the master site. Is it possible to do that within the processwire admin or is it something that is going to have to be hardcoded into the template file. If the latter, do I go about that as I cannot see anything that appears to relate to the navigation in each of the site directories. i.e. Is it possible to add a menu item to the left of the subsite "Home" page now named About that is simply a link named "Home" that redirects to the Home page of the master website? Any thoughts would be greatly appreciated.
  17. Hello, I need to redirect the old paths after migration to a multisite PW installation. There are 3 domains and small differences between paths i.e. old path: domain-2/?text new path: domain-2/text or domain-2/new_text I try it via .htaccess (in the root direction) with an 301 redirect: redirect 301 domain/old_path domain/new_path -> generates an 500 server error What is wrong? How to do that?
  18. Hello, I am using Antti Peisa's Multisite module. For those people who are not familiar with it. Here is the link: http://modules.processwire.com/modules/multisite/. It works like this: It gets the current URL that visits the page via $config->httpHost and then redirects to a page who has the same name (e.g. get it via: $pages->get('/www.multi-site.com/')). The problem: $config->httpHost is locally something like "multi-site.local" and the redirection does not work because the ".com" url is hardcoded as page name. So I thought: Why not solve this problem by replacing the value of $config->httpHost in a module via: $this->wire->config->httpHost = str_replace('.local', '.com', wire('config')->httpHost); Is this a good way of doing this? And if yes: How can I say that my module loads first in the booting process? Are there any dangers with this approach? If so: any better ideas? I am not a great programmer Thank you!
  19. Hello, I'm about to suggest a CMF/CMS for a scalable project in my company and I really need your input here to get PW on board. The idea is simple - Build a main website - www.acme.com - And than build independent but related websites using the subdomains - product.acme.com / something.acme.com - Each subdomain will have their own website and staff team. What do I need? - All the websites should be able to have their own backend. The reason for that is because the staff from product.acme.com will be different from acme.com. So, I don't want a staff from product.acme.com to be able to "see" the acme.com backend. - To be able to setup independent pages design/features for each sub-domain. ===== It's something like google.com and their sub-domains. You have adwrods.google.com / maps.google.com / translator.google.com and so on. They keep their main brand visible - google.com - and add their different products from subdomains. In my case, the subdomains will only host another simple website. How would you approach this project? Please let me know if you need more clarification. Best regards, Zilli
  20. I am using the Multisite.module to run several (similar/related) websites off a single PW-site and database. Adding new sites was as simple as adding the domain to the config box, and a top level page of the same name. However, since an upgrade of PW, I now also have to update my site/config.php file with each extra domain, i.e. $config->httpHosts = array( 'mydomain.com', // our primary hostname 'related.mydomain.com', // related website ); Otherwise the site will throw a 404 page not found. Leaving a blank httpHosts will allow all hostnames, but causes a warning in the back-end Unrecognized HTTP host:'mydomain.com' - Please update your $config->httpHosts setting in /site/config.php Can anyone advise how best to update Multisite.module?
  21. perhaps this is the wrong subforum, perhaps there are better waays to do this, but I wanted to share some thoughts regarding multi sites together with multiple robots.txt If you are running multiple sites with one PW setup you can't place multiple robots.txt files into your root. As long as all robots.txt files are identical there is no problem with it. You can stop reading right here. In my robots.txt I wanted to include a link to the current sitemap, e.g. Sitemap: http://www.domain.com/sitemap.xml I put each robots.txt into the "site-" directories. Search engines expect the robots.txt file directly in the root so I added some lines to my htaccess file (for each domain you have to do this) # domain 1 RewriteCond %{REQUEST_URI} /robots\.txt RewriteCond %{HTTP_HOST} www\.domain\. [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /site-domain/robots.txt [L] # domain 2 RewriteCond %{REQUEST_URI} /robots\.txt RewriteCond %{HTTP_HOST} www\.domain\-2\. [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /site-domain-2/robots.txt [L] Another possible approach: create a PW page within each site
  22. Hello All, So I've launched my first PW site: http://www.neighborhoodsewerdrain.com - yea! Next challenge: We have an 11 county service area in south east Michigan. My boss would like the site to function in such a way as to "localize" the site depending on where the user is located. So, if the user clicked on a Google AdWords ad targeted at Macomb County, the URL would be "www.neighborhoodsewerdrain.com/macomb/". From there, I'd like to pull in dynamic content specific to that region, like a local phone number, the words "Macomb County" wherever I want to drop them in the content (most likely using Hanna Code or code in the template). Further, once the user enters through the above sample URL, I'd like to prepend "/macomb/" to the root domain as the user visits other pages, which will keep the content localized. This would be ideal so as not to have to manage 11 different versions of each page. I've begun to experiment with URL Segments and PHP switch statements. I'm sure it's going to get a bit more complicated than that. So, if anyone can point me in the right direction with suggestions on how to pull this off, it would be most appreciated Thanks!
  23. This question follows on from the discussion that starts here. A screenshot of the page tree is attached. On the subsite, the content of About displays OK, but all the subpages of About only display the page title. Template code is: <?php /** * NPL Page template * */ if(count($page->includePage)>0) $page = $page->includePage; $outMain = '<h1>'.$page->title.'</h1>'; $outMain .= $page->body; include("./npl-main.inc.php");
  24. My organization is looking at moving our various websites to a CMS. As we have probably 20 - 30 sites, I want to do a multisite setup, using the multisite module, so that we don't need to maintain so many duplicate user accounts for our content editors. I'm wondering how I'm supposed to hook into $page->rootParent to get it to return its appropriate child. I'm thinking I'll setup the page tree so that Home is just a dummy page, and all my real sites' homepages will be its direct children. That way I think I should be able to make the change to the rootParent method universal without having issues. How could I accomplish this? Am I making some horrible mistake which I have been unable to percieve thus far? Thanks.
  25. Hi, I'm trying to set up a multisite with following specifications: 2 different URLs I have to reach the backend via the two URL's (eg. http://example-firstsite.com/processwire/ and http://example-secondsite.com/processwire/) so that i can create different user / editor roles witch only get "their content" I want to use the nearly same template-files on both sites I want to use only one core I want to share some content between the sites I want to have a "child-page based database for persons" witch I can query and use on both sites with it's own url I tried to use apeisa Plugin Multisite but had to recognize that it´s not possible to use it without having a "master-site" Can you give me any advices how to set PocessWire up to comply with the requirements? Many greets, Jens alias DV-JF.
  • Create New...