How to restart PHP on centos

Written by andrea helaine | 13/05/2017

PHP is an interpreted language designed to create dynamic websites. CentOS is a free and opensource enterprise class Linux operating system based on RHEL (RedHat Enterprise Linux.) PHP is integrated with the web server running on the server. In order to restart PHP, you need to restart the server it is attached to. The two most popular web servers on Centos are Apache and Lighttpd.

Open a terminal or connect to CentOS using SSH.

Type in "su" and press 'Enter." Type in your administrator password and press "Enter."

Type "apachectl restart" and press "Enter."

Open a terminal or connect to CentOS using SSH.

Type in "su" and press 'Enter." Type in your administrator password and press "Enter."

Type "/etc/init.d/lighttpd restart" and press "Enter."

Tip

Linux is case-sensitive.

Warning

Make sure no users are doing critical work on the web server when you restart it.

Tips and warnings

  • Linux is case-sensitive.
  • Make sure no users are doing critical work on the web server when you restart it.
Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.