linux - Unable to do an apache restart on a web server through ssh -


i using hosted apache linux web server , restart in order update php.ini file.

i tried service httpd restart through ssh terminal , got command not found

do have suggestions on how ?

i issued whereis service , got /sbin/service /usr/share/man/man8/service.8.gz.

not sure if helps, new appreciated.

to restart apache2

apache2ctl restart 

more on this: http://httpd.apache.org/docs/2.2/programs/apachectl.html

assuming server on ubuntu try

/etc/init.d/apache2 restart 

Comments