suphp fast cgi

riverdance

Verified User
Joined
Feb 27, 2009
Messages
123
Location
Belgium
Hello all,

Can somone help me instal suphp fast cgi. So that all user have a php.ini, but not the permissions, only admin need to change that when it need.
I cant, i thit it on a old machine, end all fail.


I will do it on my VPS server.

And yes i wil pay for it.


Thank you,


Lien Meyvaert

MSN: [email protected]
 
Last edited:
Well its done,

Only when what is see is in php -v

PHP 5.2.17 (cli) (built: Mar 8 2011 16:07:25)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.


I dont see cgi

When i do ./build versions its says


Latest version of PHP5 (CGI): 5.2.17
Installed version of PHP5 (CGI): 5.2.17

Latest version of suPHP: 0.7.1
Installed version of suPHP: 0.7.1
 
OK, even if you install a PHP-CGI, directadmin will install PHP-CLI, the last is required for directadmin itself and some other programs. So you need to see output of phpinfo() through Apache to make sure you've got PHP-CGI.

The guide, the link you've posted above, is a good one. But it does not set any individual PHP.INI.
 
How set any individual PHP.INI. ?


Thanks Alex



erver API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/etc/php5/cgi
Loaded Configuration File /usr/local/etc/php5/cgi/php.ini

That what php info say
 
Why don't you google?

Top position in google is for Setup a per-user php.ini to allow open_basedir with suPhp, see the link.
 
Becous emy english is not good.


A thit thos code:


cd /usr/local/directadmin/data/templates
cp virtual_host2*.conf custom
cd custom


That oke?

Still see in top apache using users
 
I don't see anything wrong in those lines. But they don't make any sense by themselves.
 
Hello,
u can contact me on info @ hmnet (dot) nl
-
Mail mij maar even, het is een half uurtje werk + de eigen php.ini voor de users.
 
phpinfo.php says:

Configure Command:

Code:
'./configure' '--prefix=/usr/local/php5' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-config-file-path=/usr/local/etc/php5/cgi' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--enable-gd-native-ttf' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'


Server API:

Code:
CGI/FastCGI


Configuration File (php.ini) Path:

Code:
/usr/local/etc/php5/cgi


Loaded Configuration File:

Code:
/home/admin/domains/my domain.com/php.ini



But when a do php -v in SSH, its says:


Code:
PHP 5.2.17 (cli) (built: Mar 11 2011 11:27:30)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.


Its says PHP 5.2.17 (cli)


Im running fast CGI?

Why it says cli with php -v?
 
Back
Top