How to restart PHP on centos

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."

Most recent

×