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

后端 未结 5 1536
萌比男神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:08

    Type aptitude to start the package manager. There you can see which applications are installed.

    Use / to search for packages. Try searching for apache2 and php5 (or whatever versions you want to use). If they are installed, they should be bold and have an i in front of them. If they are not installed (p in front of the line) and you want to install them (and you have root permissions), use + to select them and then g (twice) to install it.

    Word of warning: Before doing that, it might be wise to have a quick look at some aptitude tutorial on the web.

提交回复
热议问题