How to restart PHP on centos

Written by andrea helaine
  • Share
  • Tweet
  • Share
  • Email

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.

Skill level:
Moderate

Other People Are Reading

Instructions

    Apache

  1. 1

    Open a terminal or connect to CentOS using SSH.

  2. 2

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

  3. 3

    Type "apachectl restart" and press "Enter."

    Lighttpd

  1. 1

    Open a terminal or connect to CentOS using SSH.

  2. 2

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

  3. 3

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

Tips and warnings

  • Linux is case-sensitive.
  • Make sure no users are doing critical work on the web server when you restart it.

Don't Miss

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.