how to name the folders for multisite in drupal locally? - drupal

i am creating multisite in drupal 6 in my local xampp server,could anyone help me to name the subfolders?

Have a look at the MultiSite HowTo's at Drupal. There is a massive collection for many different versions and environments. There is also a link to "Multi-Sites Using XAMPP on Windows XP" (can be used for any win versin)

You should name the sites folders the same as you would in production.
example.com
example2.com
....
Then make entries in your hosts file on your computer.
notepad C:\Windows\System32\Drivers\etc\hosts
127.0.0.1 localtest.example.com
127.0.0.1 localtest.example2.com
Then you can build the sites locally using the names localtest.example.com and when you move the site to a production server it will work exactly the same with www.example.com

Related

Problems with XAMPP and Wordpress Multiste

Hi i have a huge problem wth XAMPP and would appreciate any help,
I've installed XAMPP on Windows 10 and followed the instructions here: Moving WordPress Multisite from Live Server to Localhost Safely.
After following the tutorial the main domain works. However the mapped domains and subdomains don't.
I have a very complex Wordpress Multisite Network where i use three different topdomains on one install. All these topdomains also have their own subdirectories. Although they are all installed under the dtopdomain and visible in /sites directory.
Any advice on how to proceed in order to get this to work?

Parallels Plesk shows Default Page

I uploaded Wordpress files from the old server to Parallels Plesk in the httpdocs directory and deleted the index.html but when I open the site it still shows the default page of the parallels plesk panel.
How can I solve that?
Best Regards
First of all make sure that domain name is resolvable to correct IP address.
Try rebuilding the Apache configuration files for the domain:
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.com
Check possible redirection in .htaccess file.

Wordpress on WAMP: Need to change site looking for assets on localhost

I have a wordpress site hosted on WAMP on my local PC. I want other people on my network to view this website but when I tested it from another PC none of the stylesheets, scripts etc are being loaded. I troubleshooted it and found this is because it's looking for those files on localhost. How can I change it to look for those files relative to the folder? Thanks
What you have done is a bit like moving the site to another domain. Because WP records the domain name in its database when you install it, it thinks its domain is localhost.
Now you are getting to it by lets say using your ip address 192.168.0.10 this is considered a new domain name and when it attempts to server various resources it is still using the original domain name of localhost it cannot find those resources on the other PC's.
You can find out what you need to do here on the worpress site Changing the site url
I solved this by using my IP address as the site path in Wordpress/Settings/General

Drupal 7 Multiple sites under subdirectories in server root?

I have a drupal installation in root/httpdocs and want to make a copy of it for development purposes in root/testsite. I have created the folder, copied the website files from httpdocs to testsite and setup a domain pointing to that folder. However, when I visit the page I get "This webpage is not available".
When I try to ping it, I get "unknown host".
Can anyone point to the problem? .htaccess? dns?
You need multiple virtual hosts.
If your using a localhost see: Creating Multiple Virtual Sites on a WAMP Server Installation
Or for a Debian solution see: Hosting multiple websites with Apache2

Drupal Multisite, MAMP and SVN Best Practices?

I successfully set-up Drupal Multisites with:
site1.domain.com
site2.domain.com
site3.domain.com
using Virtualhosts and editing the etc/hosts with MAMP on my localhost. I then deployed it using SVN (it deploys automatically) on the live site.
The Problem: when I type "Site1.domain.com" because it goes to my localhost instead of my live site. Is there anyway to avoid this? (apart from renaming the subdomain, because it speeds up deployment)
Just check your virtual host settings in httpd.conf file, are you using IP address to redirect them?
And if its directing to your localhost, just check your host file, if might be redirecting because of that

Resources