I wasn't completely correct in my last post. It's called "PHP extensions as (shared) modules".
Did you compile apache/PHP yourself ? It might be neccessary to recompile PHP but that depends on how the existing apache2 and PHP have been installed.
I need the output of the phpinfo script to tell you more.
Save the page with your browser and post the file as attachment (rename it to .txt). There's a file input on the reply page.
I'd suggest to enable the two extensions with php.ini globally so you don't need to use dl. To do that set the extension_dir variable in php.ini to the directory where the extension files are (/usr/lib/php4) and then enable the two extensions by adding the two lines
extension=mysql.so
extension=domxml.so
There are sections/examples in the php.ini file that show you where to put these lines.
Thomas