Upgraded WP and Theme, but upgrading BP causes Out of Memory error

Today, I upgraded my WordPress version, as well as my Studio theme version. I then went to upgrade BuddyPress. The download worked fine, but as soon as I click Activate, I received a Fatal error: Out of memory. I use 1and1 hosting (for many, many websites) and have not had this issue before. I have tried to manually install BuddyPress instead of automatically, but that still results in the Fatal error. I also created a php.ini file with this in it:

memory=64MB

upload_max_filesize=64M;

post_max_size=64M;

And that will not work. I really hope that someone can help me troubleshoot this problem that has already occupied hours of my dad today.

Thanks!

SOLVED: I didn’t add the php.ini file in the /admin/ folder, but once I did it, voila! It worked.