How to change php cli to cgi

iLhay

Verified User
Joined
May 28, 2012
Messages
6
Hi all,

I'm a newbie of DirectAdmin and Linux.I'm just installed CentOS 6.2 64 bit and install Direct admin at default settings and DirectAdmin is work properly.

Now, I'm try to change php cli to cgi...I'm try to use custombuild 1.2 and I confing the options.conf like that.

Code:
# nano options.conf
#PHP settings. default_php possible values - 5 or 6, php5_ver - 5.2, 5.3 or 5.4
default_php=5
php5_ver=5.3
php5_cli=no
php5_cgi=yes
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
ioncube=no
zend=no

and I use this command after settings options.conf

Code:
# ./build clean
# ./build update
# ./build all d

after build complete I'm try to use this command

Code:
# php -v
PHP 5.3.13 (cli) (built: May 28 2012 19:17:46)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

Why php version is cli?

What I'm wrong!? Please help me :)


ps.Sorry in my English

Best Regards,
iLhay
 
Good question.
It seems that even if you are running cgi, it still will display cli. I don't know why that is, we also have that on a server which is running cgi mode.
 
Back
Top