How to check the presence of php and apache on ubuntu server through ssh

后端 未结 5 1555
萌比男神i
萌比男神i 2021-02-02 06:18

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

5条回答
  •  佛祖请我去吃肉
    2021-02-02 07:05

    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 ..
    

提交回复
热议问题