Thread moved to "Web Servers" section, since this is not really a PHP coding question.
And was the extension already loaded, or did you have to uncomment it first? If you did, did you restart Apache after that?
You can also try loading the extension like this, on top of your script: