Re: HOWTO: Install PHP7 on CentOS 7
Posted: Wed Oct 12, 2016 11:51 am
Technically, yes, you should but it's unlikely to to remove in 7.baijianpeng wrote:Today I tried your above steps again, when I run the following command, I got error:SS88 wrote: I don't know if you have done this but I updated the commands and removed "yum -y remove php" and now everything works as expected.
Did I missed something?Code: Select all
# service php-fpm stop Redirecting to /bin/systemctl stop php-fpm.service Failed to stop php-fpm.service: Unit php-fpm.service not loaded.
Thank you.
PS: I think, "service ..." is a command on CentOS 6.x, right? On CentOS 7, you should use "systemctl ... ", right? Why you still use "service ... " command on CentOS7?
When you issue "service" it states: Redirecting to /bin/systemctl - so it works correctly.
If it fails, you can skip that step because it's removed, relinked to php 7 and added back to systemctl