Moodle needs all these. No harm in reinstalling. That (a little modified) comes from the Ubuntu step by step guide.
Installing and upgrading help
PHP error on fresh install
This discussion has been locked so you can no longer reply to it.