Iām trying to install SuiteCRM 8.6 to my website which is on a shared hosting provider (Siteground). I have Wordpress installed so I want to install SuiteCRM to https://mydomain.tld/crm. Iāve done the following:
Downloaded SuiteCRM 8.6 ZIP to my computer
Using the Siteground file manager, uploaded the ZIP to the public_html folder
Using Siteground file manager, extracted the ZIP
Using Siteground file manager, renamed āSuiteCRM-8.6.0ā folder to ācrmā
Using Siteground file manager, I set file permissions on ācrmā folder to 755 and ensure this is applied recursively.
I get 403 errors when trying to access mysite.tld/crm. Iām not sure how to install on Siteground.
Your cache folder seems to be not writable by Apache webserver (as it should). Make sure youāve run these commands from the your hosterās command line (ssh):
sudo chown -R www-data:www-data . #the user name your webserver uses.
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod 775 config_override.php 2>/dev/null
A pop-up window will appear where you can customize the permissions for your website, file, or folder. If you are changing the permissions of a folder and you want to apply them to the subfolders and files, select Recursive. Once ready, click Confirm.
You say youāre running on the same domain as your website, so then create a subdomain (crm.mydomain.tld), and set the full path to your subdomainās base folder plus /crm/public, for example, /home/username/public_html/domains/crm.mysite.tld/crm/public to be the DocumentRoot - so that youāre not using the website domain mysite.com which is in use by your website www.mysite.tld.
Then, browse to your subdomain, and it will show you the web installer.
I want the url for suitecrm to be www.mysite.tld/crm, not crm.mysite.tld.
There is nothing that explains how to launch the pre-check page. I thought the UI installer would be to launch a script at www.mysite.tld/crm from my web browser. There is no index.html or index.php in this location.
Your hosterās tech support should help you to make it so your Apache web server will have www.mysite.tld/crm to be served from www.mysite.tld/crm/public or /home/username/public_html/crm/public.
These steps are close to, yet not exactly, what you need.
How to change my document root folder using an .htaccess file?
By default, your main website is loaded from the public_html folder of your account. The public_html directory is also called web root folder or document root folder. If you would like to keep your siteās files in a subfolder of the public_html, and do not want the subfolder to appear as a part of the URL to your website, you can mask the subfolder from the URL by placing the following directives in the .htaccess file inside the public_html folder:
In the above lines you should replace the following:
domain-name.tld ā Type your own domain name folder ā Type the name of the subfolder which has the test/development website
If there is no .htaccess file in the public_html folder you can create one using Site Tools > Site >File Manager. Then, type your domain name in a browser and you should see the website which is in your subfolder.
Thank you. I just found www.mysite.tld/crm/public. I think I understand it now. I can access www.mysite.tld/crm/public and see the pre-check page. If Iām ok using the url www.mysite.tld/crm/public will this still work without doing the document root setup?
Setting the document root essentially redirects www.mysite.tld/crm to www.mysite.tld/crm/public.
Last questionā¦ what is your recommendation? Creating a separate host like crm.mysite.tld and use document root so that www.mysite.tld/crm is redirected to crm.mysite.tld/public?
Itās late but Iāll do the recommended document root setup tomorrow and start the install.
Iād do the separate subdomain crm.mysite.tld, itās simpler and safer having your crm app run in its own subdomain and in a different directory, than your website app.
I hope you got https certificate for your https://crm.mysite.tld.
You need to download and place that certificate on your web server.
Once you have it in server then do Apache configuration and set server root and domain name.
You could find lots of tutorial online about it.
Itās not clear what .htaccess should be for a default installā¦ even if I keep the url as https://crm.mysite.tld
Suite CRM is installed in /public_html/. As I understand the requirement, I need to make /public_html/public the document root. Not sure how this is done with .htaccess.