• Discussion
  • restart apache or php with command line linux

I need to restart apache and php by command line linux

How should I do it since the installation has different routes?

    colvengroup
    Hello, the following command is the command to restart apache/php
    Note that 74 is replaced with your php version
    /etc/init.d/httpd restart

    /etc/init.d/php-fpm-74 restart

      2 years later