If I donāt change my .htaccess file, I have 500- Internal server error, and if I changed it to /suitecrm/public, I get this kind of screen. Please see screenshot.
2022-07-14 09:46:46 UTC [apache][core:crit] [pid 8024] (13)Permission denied: [client 112.205.146.22:23678] AH00529: /home/u23458-nf9jx9mile1e/www/crm.nxx.ph/public_html/suitecrm/public/legacy/cache/themes/suite8/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ā/home/u23458-nf9jx9mile1e/www/crm.nxx.ph/public_html/suitecrm/public/legacy/cache/themes/suite8/css/ā is executable, referer: https://crm.nxx.ph/legacy/index.php?module=Home
Itās not complaining about something inside htaccess, itās complaining about the inability to read the htaccess fileā¦
And all the other missing CSS and images and labels point to the same root cause.
If you go in Admin / Schedulers, what do the crontab instructions say, exactly? From those instructions we can get to know the user name under which your web server is running. This will allow you to set the correct ownerships.
Sometimes permissions have to be reapplied. If your settings werenāt correct when SuiteCRM created some cache directories, they might still there with incorrect permissions.
If youāre still seeing undefineds, something is still wrong.
I donāt know why you mention 644, and 755, where did you get that from? Itās best to follow the guides.
And please pay attention to file and directory ownerships. Permissions donāt mean anything without ownerships.
I would start by going in Admin / Schedulers and looking at the crontab instructions at the bottom. This will tell us the user name that your web server is running under. Then we can check the correct ownerships based on that.
the 644 and 755 were applied by the Siteground guys. I believe I made them all 755.
To Setup Crontab
In order to run SuiteCRM Schedulers, edit your web server userās crontab file with this command:
sudo crontab -e -u u2348-nf9jx9mile1e
⦠and add the following line to the crontab file:
cd /home/customer/www/crm.nii.ph/public_html/suitecrm/public/legacy; php -f cron.php > /dev/null 2>&1
Not setting up crontab, I just need the username that is written in the instructions. Then you can check if that is the same user that owns files and directories.
I can see u2348-nf9jx9mile1e everywhere. But just to be sure, I think I should just run it all over again
I should be doing that in inside suitecrm folder?
sudo chmod -R 775 cache custom modules themes data upload - only cache is visible from suitecrm folder. Does it mean I have to go find custom (inside public/legacy) and so on and so forth, and execute sudo chmod command 1 by 1? Though I found out that custom, modules, themes, data and upload are all inside public/legacy, and can be executed simultaneously.
edit:
I went ahead and did the commands above. I still get this error:
Is that SuiteCRM v8? I didnāt guess that, so Iāve been working with the guide from v7.
Did you follow the v8 guide at all? The permissions instructions given there (which are different)?
Also: did you use the installer package downloaded from SuiteCRM site? Or some other method like Softaculous install, or some CPanel menu option, or pulling from git?
Tried to follow the guide, but canāt keep up with the permissions until your instructions earlier made it clear. Iāll follow the permissions needed in the V8 documentation.
Didnāt use any Softaculous, or cPanel. Itās no longer available in Siteground. This is download, extract, and run the installer just like the documentation.
I donāt know, then. The only thing that occurs to me is to start over, but doing everything correctly and in order. Itās possible that running the installer with broken permissions left your system in a really weird half-installed stateā¦
After re-applying all the permissions above once again, and making sure .htaccess files have RewriteBase /suitecrm/public/legacy and doing another round of Quick Repair, it finally worked