Site slow or down


My site is very slow and sometimes it’s down since the last week.
I disabled the plugins and I optimized the tables of the database.
Is there any relation with the Ubuntu update?
Is there any relation with PHP? In the web panel I see the php version 5.3 but in shell when I run the commando php -v it returns versions 5.2.
Please, help me!

Thanks in advance,