How can I check whether apache is installed with php and mysql on Ubuntu server through ssh?
Also if it is installed, in which directory?
And if in case some ot
You could inspect the available apache2 modules:
$ ls /usr/lib/apache2/modules/
Or try to enable the php module, if you have the appropriate access:
$ a2enmod Which module would you like to enable? Your choices are: actions alias asis ... ... php5 proxy_ajp proxy_balancer proxy_connect ..