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-27, 08:00:09

Author Topic: Web / PHP Selector for Domain  (Read 5628 times)

0 Members and 1 Guest are viewing this topic.

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Web / PHP Selector for Domain
« on: 2016-01-29, 12:32:08 »
Hi,

I am using Kloxo-MR 7 and i had

Multiple PHP Ready:   php52m php53m php54m php55m php56m php70m

But when i go to client account, on (Web / PHP Selector for domain)

1.
On PHP Selected i only have --Default-- i can i have all the PHP listed here?

2.
Web Selected ?
What is this ? back-end and front-end ?

Thanks


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Web / PHP Selector for Domain
« Reply #1 on: 2016-01-29, 12:37:18 »
1. Web selected already work but php selected still in progress. Apache or proxy (like nginx-proxy), use 'secondary php' approach. Read .htaccess in document root of each domain (example: /home/admin/domain.com/.htaccess)
2. If using proxy (like nginx-proxy), select 'front-end' mean php execution by front web server (like nginx) and select 'back-end' mean php execution by back web server (apache).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Web / PHP Selector for Domain
« Reply #2 on: 2016-01-29, 15:06:03 »
I dont have that file when i create a new domain...

Can you give me the syntax of .htaccess for select PHP?

Thanks

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Web / PHP Selector for Domain
« Reply #3 on: 2016-01-29, 15:13:05 »
Try 'sh /script/fixskeleton; sh /script/fixphp' to create new .htaccess.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Amney

  • Senior Member
  • *
  • Posts: 208
  • Karma: +0/-0
  • ????????.
    • View Profile
    • ????????? ??????
Re: Web / PHP Selector for Domain
« Reply #4 on: 2016-02-02, 20:05:32 »
Try 'sh /script/fixskeleton; sh /script/fixphp' to create new .htaccess.
it doesn't help

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Web / PHP Selector for Domain
« Reply #5 on: 2016-02-03, 01:17:21 »
For 'php selected' (still in progress), you can select php version for each website. So, you can select 'php56m' for website1, 'php55m' for website2 and so on.

Alternatively, for web proxy (like nginx-proxy or hiawatha-proxy; after select 'Enable Multiple PHP As Secondary PHP' under 'webserver configure') you can select php version for each website with add certain parameter in .htaccess file.

In .htaccess under document root of each domain, you can see not for 'select php version':
Code: [Select]
###Start Kloxo PHP config Area

### begin content - please not remove this line

### MR -- using php version different with default php
### 1. Using suphp
### - Copy between '#<FilesMatch \.php$>' to '#</FilesMatch>' and
###   then remove '#' from '#<FilesMatch', '#</FilesMatch>' and one of '#SetHandler'

#<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
#SetHandler x-httpd-php55
#SetHandler x-httpd-php56
#SetHandler x-httpd-php70
#</FilesMatch>

### OR

### 2. Using fcgid
### - Copy from '#Options' to '#FCGIWrapper' and
###   then remove '#' for one of '#FCGIWrapper'

#Options +ExecCGI
#<FilesMatch \.php$>
# SetHandler fcgid-script
#</FilesMatch>
#FCGIWrapper /home/kloxo/client/php.fcgi .php
#FCGIWrapper /home/kloxo/client/php52.fcgi .php
#FCGIWrapper /home/kloxo/client/php53.fcgi .php
#FCGIWrapper /home/kloxo/client/php54.fcgi .php
#FCGIWrapper /home/kloxo/client/php55.fcgi .php
#FCGIWrapper /home/kloxo/client/php56.fcgi .php
#FCGIWrapper /home/kloxo/client/php70.fcgi .php

### end content - please not remove this line

###End Kloxo PHP config Area

So, if you want 'php70m' as php version for website, you can add:
Code: [Select]
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /home/kloxo/client/php70.fcgi .php

###Start Kloxo PHP config Area

### begin content - please not remove this line

### MR -- using php version different with default php
### 1. Using suphp
### - Copy between '#<FilesMatch \.php$>' to '#</FilesMatch>' and
###   then remove '#' from '#<FilesMatch', '#</FilesMatch>' and one of '#SetHandler'

#<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
#SetHandler x-httpd-php55
#SetHandler x-httpd-php56
#SetHandler x-httpd-php70
#</FilesMatch>

### OR

### 2. Using fcgid
### - Copy from '#Options' to '#FCGIWrapper' and
###   then remove '#' for one of '#FCGIWrapper'

#Options +ExecCGI
#<FilesMatch \.php$>
# SetHandler fcgid-script
#</FilesMatch>
#FCGIWrapper /home/kloxo/client/php.fcgi .php
#FCGIWrapper /home/kloxo/client/php52.fcgi .php
#FCGIWrapper /home/kloxo/client/php53.fcgi .php
#FCGIWrapper /home/kloxo/client/php54.fcgi .php
#FCGIWrapper /home/kloxo/client/php55.fcgi .php
#FCGIWrapper /home/kloxo/client/php56.fcgi .php
#FCGIWrapper /home/kloxo/client/php70.fcgi .php

### end content - please not remove this line

###End Kloxo PHP config Area
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline noob

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • KombatHost
Re: Web / PHP Selector for Domain
« Reply #6 on: 2016-02-18, 17:29:25 »
i have problem when activated php7.
i was enabled php7 from webserver configure, and enabled multiple php as secondary php.
i add line:
<FilesMatch \.php$>
   SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /home/kloxo/client/php70.fcgi .php

to .htaccess, but got 500 error.

when i check into: `/home/kloxo/client/` folder, there's no php70.fcgi (another php like: php52, php53, php54, php55, php56 exists).

how to fix it?
http://kombathost.com | Your ultimate webhosting

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Web / PHP Selector for Domain
« Reply #7 on: 2016-02-18, 18:09:50 »
It's still missing php70.fcgi. For awhile, copy /home/kloxo/client/php56.fcgi to php70.fcgi and then modifed content of php70.fcgi where change '56' to '70'.

Will be fixed in next release.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline noob

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • KombatHost
Re: Web / PHP Selector for Domain
« Reply #8 on: 2016-02-19, 07:40:40 »
great. work perfectly. thanks
http://kombathost.com | Your ultimate webhosting

 


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

Page created in 0.035 seconds with 19 queries.

web stats analysis