View Full Version : suphp fast cgi
riverdance
03-08-2011, 06:22 AM
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: support@hostingkwaliteit.com
zEitEr
03-08-2011, 06:46 AM
Hello,
I can help.
riverdance
03-08-2011, 06:48 AM
Thank you,
When can you do it?
Lien Meyvaert
MSN: support@hostingkwaliteit.com
zEitEr
03-08-2011, 07:06 AM
I send you an email, PM is disabled by you.
riverdance
03-08-2011, 07:13 AM
My PM is not off
zEitEr
03-08-2011, 07:20 AM
http://www.directadmin.com/forum/private.php?do=newpm&u=18238
riverdance has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.
zEitEr
03-08-2011, 07:21 AM
You can contact me, see my signature.
riverdance
03-08-2011, 07:36 AM
Hello Alex,
I do it from this way
http://help.directadmin.com/item.php?id=197
Is that good?
Only i dont know if the php,ini permissions is only for admin
riverdance
03-08-2011, 07:45 AM
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
riverdance
03-08-2011, 07:53 AM
systemphpinfo.php
safe_mode off
Is that good?
zEitEr
03-08-2011, 08:17 AM
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.
riverdance
03-08-2011, 08:35 AM
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
zEitEr
03-08-2011, 08:40 AM
Why don't you google (http://tinyurl.com/4htponq)?
Top position in google is for Setup a per-user php.ini to allow open_basedir with suPhp, see the link.
riverdance
03-08-2011, 09:56 AM
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
zEitEr
03-08-2011, 10:14 AM
I don't see anything wrong in those lines. But they don't make any sense by themselves.
Herbert
03-10-2011, 08:45 AM
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.
riverdance
03-11-2011, 12:55 AM
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.
Oke, Thank you Herbert
riverdance
03-11-2011, 04:00 AM
Oke all, thank you for helping me.
Its work now.
Thanks to Herbert alot
riverdance
03-12-2011, 12:55 AM
phpinfo.php says:
Configure Command:
'./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:
CGI/FastCGI
Configuration File (php.ini) Path:
/usr/local/etc/php5/cgi
Loaded Configuration File:
/home/admin/domains/my domain.com/php.ini
But when a do php -v in SSH, its says:
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?
zEitEr
03-14-2011, 03:28 AM
http://www.directadmin.com/forum/showpost.php?p=198820&postcount=11
riverdance
03-14-2011, 11:58 PM
PHP 5.2.17 (cgi-fcgi) (built: Mar 11 2011 11:26:24)
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.
Herbert
03-15-2011, 08:02 AM
PHP 5.2.17 (cgi-fcgi) with SuPHP is running..
I installed it for riverdance with php.ini for every user..
I checked on 11-03-2011 and everthing is working ok.
When u login as root or admin then u get alway's PHP CLI
i'm installed also custom templates for automatic create php.ini in account map.
Everybody knows its 1 á 2 hours work on a standard system, and now she don't belive it its working.
The same with ATmail.. there was a error with logs.
cp: cannot stat `/var/www/html/atmail/logs/*': No such file or directory
I tell when ATmail don't have make log then there is nothing to copy.
ATmail used /var/log/exim/mainlog and not in /var/www/html/atmail/logs/
I explain that many times, riverdance think she have to reinstall ATmail or DirectAdmin for get log files back to /var/www/html/atmail/logs/
Maby can someone explain it to riverdance :)
zEitEr
03-15-2011, 09:47 AM
Not me, not for free. Send me a PM, if you want it.
nobaloney
03-16-2011, 12:15 PM
But when a do php -v in SSH, its says:
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?
Because when you log in from the command line you get php running on the command line. That's what cli means:
Command Line Interface
To see the version information when running under CGI (Common Gateway Interface) you'll need to write a short php webpage which prints out the version information, and call it from your browser.
Jeff
Herbert
03-16-2011, 01:53 PM
Hello Jeff,
She do that, look at this replay: http://www.directadmin.com/forum/showpost.php?p=199155&postcount=21
Everything is ok
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.