0

Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.

I need to edit this file line 30.

1 Answers1

0

If you are following the installation instructions from moodle.com you may have missed a small, but essemtial point. Their command line

cd /var/www/html/moodle sudo vim config.php

realloy should be broken into correct separate lines, as:

cd /var/www/html/moodle
sudo vim config.php

The sudo part of the second command will prompt you for your password, and grant you root privileges for the editing of the "config.php" file. This could have been done in a single line command with

cd /var/www/html/moodle && sudo vim config.php

Charles Green
  • 21,339