Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-25, 23:03:18

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LotsOfQ

Pages: 1 ... 28 29 [30] 31
436
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-16, 07:36:15 »
Just curious, is it possible to turn on register_globals with this?

Like:

directory1 php52 register_globals = on
directory2 php55 register_globals = on
directory3 php54 register_globals = off

Can we do that with htaccess?

437
Kloxo-MR Technical Helps / Re: email pipe to php
« on: 2015-04-16, 07:30:53 »
Please let me know your finding because I really in need of it.

438
Kloxo-MR Technical Helps / Re: email pipe to php
« on: 2015-04-15, 17:56:01 »
I think we might misunderstand this. What I am trying to do is pipe all email that to to myemailbox@mydomain.com to a php script in an app.

This is how I did it with cPanel >> Forwarders >> Add Forwarder

Address to Forward: myemailaddress@domain. com

Advanced Options: >> Pipe to a program:      |/home/username/public_html/scriptdirectory/script.php

So that's how I was able to set it up and it was running. Now I am moving to Kloxo-MR and can't figure out how.

439
Kloxo-MR Technical Helps / Re: email pipe to php
« on: 2015-04-15, 17:23:44 »

Is this right?

| php -q /home/lxadmin/mail/domains/mydomain.com/myaccountusername/myscript.php/.qmail

440
Kloxo-MR Technical Helps / Re: email pipe to php
« on: 2015-04-15, 16:41:11 »
I am not exactly sure what you mean. Can you give me a little more details?


| php -q /home/username/domaindir/script.php
/home/lxadmin/mail/domains/<domain>/<account>/.qmail

???

441
Kloxo-MR Technical Helps / email pipe to php
« on: 2015-04-15, 15:31:20 »
How to do pipe an email to a php script? On cPanel it's very simple but on Kloxo-MR. I am having trouble with it. I'm not use to it yet. So far this is what I am doing.

Mail Forward / Aliases >> Add Forword

emailaddress@domain.com
| php -q /home/username/domaindir/script.php

Am I missing something?

442
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-15, 13:34:47 »
Work perfectly!!! Thank you so much. You're best!

443
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-15, 13:01:28 »
Quote
total 28
drwxr-xr-x 20 root root 4096 Apr 12 04:53 configs
drwxr-xr-x  6 root root 4096 Apr 15 10:50 php52m
drwxr-xr-x  6 root root 4096 Apr 14 13:05 php53m
drwxr-xr-x  6 root root 4096 Apr 14 13:05 php54m
drwxr-xr-x  6 root root 4096 Apr 12 04:50 php54s
drwxr-xr-x  6 root root 4096 Apr 15 10:51 php55m
drwxr-xr-x  6 root root 4096 Apr 15 10:52 php56m
PHP 5.3.29 (cli) (built: Aug 14 2014 11:50:05)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
[global]
logfile=/var/log/httpd/suphp_log
loglevel=info
webserver_user=apache
docroot=/
env_path=/bin:/usr/bin
umask=0022
min_uid=48
min_gid=48

; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false

;Send minor error messages to browser
errors_to_browser=false

[handlers]
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php-cgi"
x-httpd-php52="php:/opt/php52m/custom/php-cgi.sh"
x-httpd-php53="php:/opt/php53m/custom/php-cgi.sh"
x-httpd-php54="php:/opt/php54m/custom/php-cgi.sh"
x-httpd-php55="php:/opt/php55m/custom/php-cgi.sh"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"

;;; MR -- for using php52 just enough add 'AddHandler x-httpd-php52 .php' on .htaccess.
;;; The same way for php53 until php55
;;; it's make possible running 'multiple php' on server!
### MR -- read /usr/local/lxlabs/kloxo/file/apache/conf.d/suphp.conf.original for full description ###

LoadModule suphp_module modules/mod_suphp.so

suPHP_Engine On

#AddHandler x-httpd-php .php
#AddHandler x-httpd-php .php .php4 .php3 .phtml

suPHP_AddHandler x-httpd-php
suPHP_AddHandler x-httpd-php52

DirectoryIndex index.php

444
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-15, 12:36:32 »
Sorry I was wrong. When I have change php52 then it work fine. But when I change it to php53 that's when it download the page or file.

445
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-15, 12:21:47 »
I think you missed my last post. I am wondering what do I do if I have already have existing .htaccess with code inside.

446
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-15, 12:02:11 »
Ok, so it works. The reason why it didn't the directory already have an .htaccess file with this on it.

Quote
<FilesMatch "\.inc$">
        #Order allow,deny
        #Deny from all
</FilesMatch>

So I did this and it didn't work.
Quote
<Ifmodule !mod_php5.c>
    AddHandler x-httpd-php52 .php
    #AddHandler x-httpd-php .php
</Ifmodule>

<FilesMatch "\.inc$">
        #Order allow,deny
        #Deny from all
</FilesMatch>

But this alone work.

Quote
<Ifmodule !mod_php5.c>
    AddHandler x-httpd-php52 .php
    #AddHandler x-httpd-php .php
</Ifmodule>

How do I have it together?

448
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-15, 11:22:56 »
Yeah, I saw it. That's exactly what I want. I am trying it on my end but not working. Everytime I open a page it start to download it instead. Any idea?

By they way, this is fixed when I switch to php54. http://forum.mratwork.com/kloxo-mr-technical-helps/headers-and-client-library-minor-version-mismatch-headers50173-library50312/

449
Quote
[root@vps3859 ~]# yum list installed php*; dir -l /opt
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * mratwork-epel: mirrors.einstein.yu.edu
 * mratwork-ius-stable: mirror.its.dal.ca
0 packages excluded due to repository protections
Installed Packages
php53u.x86_64                           5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-cli.x86_64                       5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-common.x86_64                    5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-embedded.x86_64                  5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-fpm.x86_64                       5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-gd.x86_64                        5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-imap.x86_64                      5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-intl.x86_64                      5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-ldap.x86_64                      5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-mbstring.x86_64                  5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-mysql.x86_64                     5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-pdo.x86_64                       5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-pear.noarch                      1:1.9.4-3.ius.el6                @mratwork-ius-archive
php53u-pecl-geoip.x86_64                1.0.8-1.ius.el6                  @mratwork-ius-archive
php53u-process.x86_64                   5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-pspell.x86_64                    5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-recode.x86_64                    5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-snmp.x86_64                      5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-soap.x86_64                      5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-tidy.x86_64                      5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-xml.x86_64                       5.3.29-1.ius.el6                 @mratwork-ius-archive
php53u-zts.x86_64                       5.3.29-1.ius.el6                 @mratwork-ius-archive
total 28
drwxr-xr-x 20 root root 4096 Apr 12 04:53 configs
drwxr-xr-x  6 root root 4096 Apr 15 10:50 php52m
drwxr-xr-x  6 root root 4096 Apr 14 13:05 php53m
drwxr-xr-x  6 root root 4096 Apr 14 13:05 php54m
drwxr-xr-x  6 root root 4096 Apr 12 04:50 php54s
drwxr-xr-x  6 root root 4096 Apr 15 10:51 php55m
drwxr-xr-x  6 root root 4096 Apr 15 10:52 php56m

I'm just installed all those version of php right now right before reading this post. I am going to test what you tell me about "Multiple PHP Enable" http://forum.mratwork.com/kloxo-mr-development/multiple-php-enable/

450
Kloxo-MR Development / Re: Multiple PHP Enable
« on: 2015-04-15, 10:52:50 »
Wow... this is perfect if I understand it correctly. Awesome. Just what I needed but never though it was possible. I will test now.

Oh... is it possible to not just apply this to domain but also directory. ex. /home/user/domain/thisdir/.htaccess?

Pages: 1 ... 28 29 [30] 31

MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.032 seconds with 18 queries.

web stats analysis