Cannot edit config.inc.php: Can't open file for writing

Created:

2017-07-27 17:08:15 UTC

Modified:

2017-08-16 16:55:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot edit config.inc.php: Can't open file for writing

Applicable to:

  • Plesk for Linux

Symptoms

Cannot edit 'config.inc.php' while following instructions from article #213918245

"/usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.inc.php" E212: Can't open file for writing

Cause

Immutable bit is set for the file.

Resolution

1. Login to the server over SSH

2. Remove the immutable bit:

# lsattr /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.inc.php
----i--------e- /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.inc.php


# chattr -i /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.inc.php

Have more questions? Submit a request
Please sign in to leave a comment.