I have install php7.0 and some it extention, but when I type "sudo service php7.0 restart", what I found is

"Failed to restart php7.0.service: Unit php7.0.service failed to load: No such file or directory."

and I check in service list sudo service --status-all and I was not found "php7.0"

is there anyone can help?

  • are you sure that the service should be named php7.0 ? .... have you tried any other names? – jsotola Apr 21 '18 at 23:12
  • This really has nothing to do with Raspberry Pi – Ingo Apr 22 '18 at 8:02
  • use sudo service apace2 restart and see what happens – Sohan Arafat Oct 27 '19 at 16:20

You expect it to run on apache? Then you need to install apache2 with libapache2-mod-php7.0 and then you start it with apache2. If what you want to control is if php7.0 will be enabled on apache2 then I think what you need to use is a2enmod and a2dismod.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.