chmod isn’t working or unsure about permissions
I have an DigiCertGlobalRootCA.crt.pem (SSL Certificate) that's preventing my dynamic website from working because of the file permissions. I tried chmod 644 in bash to change the file permissions to no avail. Any idea how to go about doing this?
Azure Database for MySQL
Azure App Service
-
Silvia Wibowo • 5,126 Reputation points • Microsoft Employee
2024-12-30T00:28:21.8433333+00:00 Hi @Ricardo , I understand that you've changed SSL certificate file permission to 644 but your website is still having issues accessing the certificate.
Please check the corresponding folder permissions: /, /etc, /etc/ssl, /etc/ssl/certs -> make sure that all of them is owned by root:root and permission is 755.
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
-
Ricardo • 5 Reputation points
2024-12-30T01:53:52.11+00:00 Hi @Silvia Wibowo, thank you for your response.
No, my struggle is with changing the permissions from 755 to 644. I can not do it using the CHMOD in Bash/SSH. Therefore I keep getting an error when accessing my dynamic website.
(Warning: failed loading cafile stream: `/site/wwwroot/config/DigiCertGlobalRootCA.crt.pem' in /home/site/wwwroot/classes/connect.php)
Any thoughts? Thank you so much for your help!
-
Silvia Wibowo • 5,126 Reputation points • Microsoft Employee
2024-12-30T03:23:30.5433333+00:00 Hi @Ricardo , did you try using sudo?
sudo chmod 644 /site/wwwroot/config/DigiCertGlobalRootCA.crt.pem
-
Ricardo • 5 Reputation points
2024-12-30T04:34:41.25+00:00 Hi @Silvia Wibowo , I just tried it, and it didn't work.
(-bash: sudo: command not found)
I am starting to wonder if it is due to Azure Admin restrictions and need to contact tech support.
This is only one issue I am dealing with. The other issue is related to php.ini. But that is a question for another day. Do you know how I can get in touch with one-on-one tech support?
-
Silvia Wibowo • 5,126 Reputation points • Microsoft Employee
2024-12-31T03:36:35.8933333+00:00 Hi @Ricardo , what Azure service do you use to host your website? How did you access the bash shell?
-
Ricardo • 5 Reputation points
2024-12-31T08:42:02.4866667+00:00 Hi @Silvia Wibowo , I currently have Premium v2 P1V2. (Aside: Currently Deploying my website manually (FTPS) using FileZilla.
-
Silvia Wibowo • 5,126 Reputation points • Microsoft Employee
2025-01-02T21:19:32.0733333+00:00 Hi @Ricardo , for app service, there are specific steps for setting certificate in your code. Please follow this guide: Load certificate in Linux/Windows containers
-
Ricardo • 5 Reputation points
2025-01-11T04:09:06.9733333+00:00 @Silvia Wibowo thank you for your assistance, after a few days of struggles and help from ChatGPT, I got it to work. I appreciate all your help. Thx
-
Silvia Wibowo • 5,126 Reputation points • Microsoft Employee
2025-01-13T07:29:30.6966667+00:00 Hi @Ricardo , here's the summary of your issue and solution.
Issue:
- I have an DigiCertGlobalRootCA.crt.pem (SSL Certificate) that's preventing my dynamic website from working because of the file permissions. I tried chmod 644 in bash to change the file permissions to no avail.
- Azure App Service Plan SKU: Premium v2 P1V2.
- Currently Deploying my website manually (FTPS) using FileZilla.
Solution:
- For Azure App Service, there are specific steps for setting certificate in your code. Please follow this guide: Load certificate in Linux/Windows containers.
Result:
- After a few days of struggles and help from ChatGPT, I got it to work.
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
-
Ricardo • 5 Reputation points
2025-01-13T08:23:12.52+00:00 Honestly, ChatGPT gave me the answer and solved my issues.
-
Silvia Wibowo • 5,126 Reputation points • Microsoft Employee
2025-01-13T22:50:02.0333333+00:00 Hi @Ricardo , you can inform the solution here to help the community who has similar issue as yours.
-
Laxman Reddy Revuri • 1,755 Reputation points • Microsoft Vendor
2025-01-16T14:47:40.4066667+00:00 Hi @Ricardo
You can share this solution to help others in the community who may be facing a similar issue. -
Laxman Reddy Revuri • 1,755 Reputation points • Microsoft Vendor
2025-01-17T08:45:33.64+00:00 Hi @Ricardo
Glad to know that your issue has been resolved. And please sharing the solution, which might be beneficial to other community members reading this thread.
Sign in to comment