6/24/2023 0 Comments Drupal 9 multisiteIf everything has worked, you can now go to /install.php (don't forget the "install.php" part, or you'll just get a lot of error messages) and go through the installation for your second Drupal site.If your hosting company won't allow you SSH access: you can accomplish the previous step by uploading a specially configured text file see here for instructions.Here, is the name of the directory you deleted in the previous step. SSH into your site, and type this (filling in the correct information, of course): ln -s /home//public_html/ /home//public_html/.Delete the directory in public_html that was created when you added the new domain or subdomain.Also create a directory in public_html/sites/ named files. Upload the modified settings.php to the directory for your new site (public_html/sites/).Whatever is in the settings.php for your original Drupal site, don't change it for the second site.) (Note: your hosting company might require something other than "localhost" there. If your new database has the same user as your original Drupal database, the only thing you have to change is the at the end of the line. 'username' => ‘ username_with_access_to_database', If there are other differences between the configuration in your file and this example below, use the settings in your file: Make a copy of the settings.php file for your main Drupal install (it should be in public_html/sites/default) and modify the things in bold, in order to put in the new database, username and password.FTP to your site (or SSH, if you prefer and your hosting company permits it) and create in public_html/sites a new directory with the full name of your new site:.(Do NOT try to circumvent the symlink step by creating the document root for your subdomain in sites/. ): in cPanel, go to Subdomains, add your subdomain, and for Document Root, create a directory directly in in public_html. This will create a directory in public_html/mysecondproject. ): log into cPanel, go into Domain Manager and add a domain as an addon (NOT parked). If you're using a new domain name for your second site (e.g. Create a user (or use the same user you assigned to your main Drupal install) who has full permissions to the database.
0 Comments
Leave a Reply. |