Help - Search - Members - Calendar
Full Version: Installing PHP CLI with CentOS 5 + WHM/CPanel
The Planet Forums > System Administration > Web Hosting
lanec
I am trying to find if there is an automated way to install PHP with CLI turned on through WHM. I am trying to use a web app that requires it on but the instructions I have found require me compiling Apache outside of WHM which I am not comfortable doing since I host many sites on this server.

Is this something I should be opening a support ticket for from inside of Orbit?
James Jhurani
I'm not positive if this will give you the desired results, but in WHM, go the the link "configure suexec and php". Once there, make sure your version of php is using DSO, and not CGI. Once it is set to DSO, log into the server via ssh and type "php -v". It should read something similar to:

[root@core ~]# php -v
PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58)
Copyright © 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2007 Zend Technologies
[root@core ~]#
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.