[Security tips inside] How to check if the server is hacked?

I want to bring an old topic to light again which give a brief on the security risk for the apps installed on the subpaths.

So is installing the apps on sub-paths bad practice ?