W
W
Whiteweb2015-06-21 11:07:41
linux
Whiteweb, 2015-06-21 11:07:41

Can anyone tell me the command /etc/init.d/php5-fpm restart does not work?

/etc/init.d/php5-fpm restart does not work, but service php5-fpm restart works. Can someone tell me where to look, or there is a debugging.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
Nazar Mokrinsky, 2015-06-21
@nazarpc

while service php5-fpm restart works

Because it should be so, they made a command especially for you that hides the differences in init systems (considering that you didn’t even specify the version of Ubuntu, which is very important).
Use the canonical service and don't fool around.
If you wish, read what init systems are, where they have configs and formats of these configs after the question will disappear by itself.

P
Puma Thailand, 2015-06-21
@opium

add -x to bash script to output debug information

O
oia, 2015-06-21
@oia

sudo apt-get --reinstall install php5-common php5-fpm and then it should work fine

E
Ergil Osin, 2015-06-22
@Ernillew

Because /etc/init.d/ has long been deprecated and can simply be thrown away, it is kept for historical compatibility.
Use service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question