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-28, 18:56:03

Author Topic: 500 error to use .htacces for php 7.0.  (Read 5467 times)

0 Members and 1 Guest are viewing this topic.

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
500 error to use .htacces for php 7.0.
« on: 2016-11-11, 08:57:33 »
I inserted the next code in .htacces.

Options +ExecCGI
<FilesMatch \.php$>
       SetHandler fcgid-script
</FilesMatch>

FCGIWrapper /usr/bin/php70 .php

I got error message.

.htaccess: Invalid command 'FCGIWrapper', perhaps misspelled or defined by a module not included in the server configuration

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error to use .htacces for php 7.0.
« Reply #1 on: 2016-11-11, 13:55:44 »
Check again. Is it 'FCGIWrapper /usr/bin/php70 .php' or 'FCGIWrapper /usr/bin/php70m-cgi .php' ?
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: 500 error to use .htacces for php 7.0.
« Reply #2 on: 2016-11-12, 07:56:02 »
I added "FCGIWrapper /home/kloxo/client/php70.fcgi .php"


I also added "FCGIWrapper /usr/bin/php70m-cgi .php"

But the same error

« Last Edit: 2016-11-12, 07:59:25 by azzureal »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error to use .htacces for php 7.0.
« Reply #3 on: 2016-11-13, 01:13:57 »
Inform here 'sh /script/sysinfo; php70m-cli -v'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: 500 error to use .htacces for php 7.0.
« Reply #4 on: 2016-11-13, 11:27:27 »
[root@localhost ~]# sh /script/sysinfo; php70m-cli -v
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016100902
   - Web: hiawatha-10.4.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: localhost.localdomain
C. Services:
   1. MySQL: MariaDB-server-10.0.28-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56w-cli-5.6.27-1.w6.x86_64
        - Multiple:
          * php52m-
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.27-1.ius.el6
          * php70m-7.0.12-1.w6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.41-2.el6.x86_64
     - Nginx: nginx-1.11.5-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: awstats
D. Memory:

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error to use .htacces for php 7.0.
« Reply #5 on: 2016-11-13, 11:30:14 »
What's information from 'php70m-cli -v' ?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: 500 error to use .htacces for php 7.0.
« Reply #6 on: 2016-11-13, 15:20:01 »
Thanks.


[root@localhost ~]# php70m-cli -v
PHP 7.0.12 (cli) (built: Oct 15 2016 19:45:29) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error to use .htacces for php 7.0.
« Reply #7 on: 2016-11-13, 16:30:07 »
Inform here the content of your .htaccess.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: 500 error to use .htacces for php 7.0.
« Reply #8 on: 2016-11-14, 03:55:35 »
<FilesMatch \.php$>
  SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /usr/bin/php70m-cgi .php
###Start Kloxo PHP config Area

### begin content - please not remove this line

#<IfModule mod_rewrite.c>
#       ## MR -- authentically for letsencrypt for webroot-based
#       RewriteRule /\.|^\.(?!well-known/) - [F]
#</FilesMatch>

### 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 /usr/bin/php-cgi .php
#FCGIWrapper /usr/bin/php52m-cgi .php
#FCGIWrapper /usr/bin/php53m-cgi .php
#FCGIWrapper /usr/bin/php54m-cgi .php
#FCGIWrapper /usr/bin/php55m-cgi .php
#FCGIWrapper /usr/bin/php56m-cgi .php
#FCGIWrapper /usr/bin/php70m-cgi .php

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error to use .htacces for php 7.0.
« Reply #9 on: 2016-11-14, 04:15:37 »
No 'Options +ExecCGI' above '<FilesMatch \.php$>'?

And what's about change 'php70m-cgi' to 'php56m-cgi'?
« Last Edit: 2016-11-14, 04:17:19 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: 500 error to use .htacces for php 7.0.
« Reply #10 on: 2016-11-15, 08:34:29 »
The same error

Options +ExecCGI
<FilesMatch \.php$>
  SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /usr/bin/php70m-cgi .php

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error to use .htacces for php 7.0.
« Reply #11 on: 2016-11-15, 10:47:49 »
Give me your ssh and KLoxo-MR panel access. I want to know what's happens.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: 500 error to use .htacces for php 7.0.
« Reply #12 on: 2016-11-16, 04:38:00 »
I sent it by message

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error to use .htacces for php 7.0.
« Reply #13 on: 2016-11-16, 05:09:13 »
Read message.

The problem is you don't enable 'secondary php' in 'webserver configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.032 seconds with 18 queries.

web stats analysis