Can I fix a mold problem in wall-to-wall carpet myself?
No you can't unless you will buy pro cleaning equipment.  First if your carpet has mold it is settled into the pad.  Carpet has to be rolled up and affected pad replaced.  Subfloor cleaned and dried too.  A pro cleaner would scorch your carpet - you can't get the heat from rental cleaners.