David -- many thanks!
This seems to have done the job.
I was considering commenting the php_flag statements out but didn't dare since I'm not into php had no idea whether this would cause any harm. After your reassuring words I tried & the site is running again and Moodle seems to work fine.
/ Peter
Installing and upgrading help
php_flag in .htaccess causes error 500
This discussion has been locked so you can no longer reply to it.