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

后端 未结 5 1538
萌比男神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 06:48

    How to tell on Ubuntu if apache2 is running:

    sudo service apache2 status
    
    /etc/init.d/apache2 status
    
    ps aux | grep apache
    

提交回复
热议问题