Read only file - certbot

I ran this command as a su: chmod +rwx on this file snap/certbot/3643/lib/python3.8/site-packages/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf/httpd.conf

It produced this output: chmod: changing permissions of 'httpd.conf': Read-only file system

My web server is (include version): Apache/2.4.57 (Debian)

The operating system my web server runs on is (include version): debian 12

My hosting provider, if applicable, is: OVH

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.9.0

I need to change this file but have difficulties to do it, does anyone know how to do it ?

Can you explain exactly why you're trying to change a file that looks to be used by internal Certbot tests? Especially since it's in a "centos" folder and you're running Debian? I suspect that it isn't the httpd.conf that you're really looking for.

4 Likes

Hi peter,
thank you for your fast reply
We are trying to update the "AllowOverride" from the httpd.conf file - changing "none" to "All" in order for our website to run its .htaccess file

1 Like

I'm pretty sure that changing the httpd.conf within certbot's internal test files won't help you. You need to find the actual httpd.conf that your web server is using.

6 Likes

When looking for other "httpd.conf" files in our VM, the 2 only path that we have are those one : /snap/certbot/3643/lib/python3.8/site-packages/certbot_apache/_internal/tests/testdata/centos7_apache/apache/httpd/conf/httpd.conf
and /snap/certbot/3643/lib/python3.8/site-packages/certbot_apache/_internal/tests/testdata/gentoo_apache/apache/apache2/httpd.conf

However the "apache2" one do not contain a row with "AllowOverride", that's why I was looking for editing the "httpd/conf" one

Multiple things can go better here:

  • You're running Debian, not CentOS7 or Gentoo;
  • Those files are indeed from internally used testdata which are NOT used in the actual usage of Certbot;
  • Certbot does not NOT use AllowOverride for other things than those testdata files (which were not important to begin with, see the point above); thus: you should not look at Certbot to try to fix your problem with regard to AllowOverride.

I suggest you submit your problem to a different community such as the Debian or Apache support channels, because this is not Certbot nor Let's Encrypt related.

3 Likes

I found the solution to my problem and it was not certbot related in fact.
Thank you for your answer and thank you Peter for your replies
have a great day

2 Likes