Cannot install

I am using Wordpress 3.5.1 and buddypress 1.7. I tried to install BuddyPress Media Plugin both by using the admin plugin console and by FTP but I get the error message

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 7680 bytes) in /home/angelam/public_html/wp-admin/includes/media.php on line 849

What am I doing wrong?



Just solved it. I added this line to wp-config.php at the bottom and it uploaded fine now.

define('WP_MEMORY_LIMIT', '64M');