You should not use xampp for a live system. It's only designed for development and testing. I doubt that it will end well.
Thank you for your reply can i go for lamp stack is that better
https://medium.com/better-programming/how-to-install-lamp-stack-on-ubuntu-db77ac018116
can you suggest which one is better for live system as i am new in production side.
Yes - just use the stuff that comes with Ubuntu.