I was able to figure out what was the cause of the problem:
1. .htaccess on the main directory had to correctly point php.ini file that should be in use. When this was corrected, all of the errors I mentioned went away.
2. The hosting provider's suggested .htaccess contents were commented out, and I changed to uncomment them all. This caused the right connection to right php.ini file.
Thank you.