reference.tex:
\renewcommand{\bibname}{References}
\bibliographystyle{plain}
\bibliography{ref}
ref.bib:
@article{patel2011performance,
title={Performance analysis of content management systems-joomla, drupal and wordpress},
author={Patel, Savan K and Rathod, VR and Prajapati, Jigna B},
journal={International Journal of Computer Applications},
volume={21},
number={4},
pages={39--43},
year={2011},
publisher={Citeseer}
}
@inproceedings{patel2011joomla,
title={Joomla, Drupal and WordPress-a statistical comparison of open source CMS},
author={Patel, Savan K and Rathod, V R and Parikh, Satyen},
booktitle={Trendz in Information Sciences and Computing (TISC), 2011 3rd International Conference on},
pages={182--187},
year={2011},
organization={IEEE}
}
@inproceedings{mirdha2014comparative,
title={Comparative analysis of open source content management systems},
author={Mirdha, Aakanksha and Jain, Apurva and Shah, Kunal},
booktitle={Computational Intelligence and Computing Research (ICCIC), 2014 IEEE International Conference on},
pages={1--4},
year={2014},
organization={IEEE}
}
@misc{shreves2011open,
title={Open source cms market share. White paper, Water \& Stone},
author={Shreves, Ric},
year={2011}
}
I was able to get all my references sorted out in the beginning, but later i was not able to get the same. (I did search the same question but didn't get an exact answer!)

\nocite{*}to your doc, then run latex, bibtex, latex, latex in order to show everything from your bib file. – daleif Apr 13 '16 at 13:58