Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Please post the commands used and the errors seen! Give us 1) ubuntu version 2) commands ran. And of cause you can check is that version is available with apt-cache search php5
apt-cache search php5