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-05-05, 07:58:38

Author Topic: PHP7 not working  (Read 4304 times)

0 Members and 1 Guest are viewing this topic.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
PHP7 not working
« on: 2017-02-08, 08:09:48 »
Quote
<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
   #SetHandler x-httpd-php71
</FilesMatch>
When I choose php70 or 71 my website go blank for that particular domain. All other options work fine. I have the exact same site and setup move to another domain within the same VPS and it works fine.

Any idea?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP7 not working
« Reply #1 on: 2017-02-08, 08:12:43 »
Try update Kloxo-MR 7 with 'yum clean all; yum update -y; sh /script/cleanup; sh /script/fix-skeleton'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: PHP7 not working
« Reply #2 on: 2017-02-08, 13:57:35 »
So it's not just one domain now. It's all of the domains. But PHP70 work and the only one that's not working is PHP71.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP7 not working
« Reply #3 on: 2017-02-08, 14:03:09 »
Inform here 'cat /etc/suphp.conf; cat /etc/httpd/conf.d/suphp2.conf'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: PHP7 not working
« Reply #4 on: 2017-02-08, 16:35:09 »
[global]
logfile=/var/log/httpd/suphp_log
loglevel=info
webserver_user=apache
docroot=/
;; MR - chroot still not work!
;chroot=/home/*/
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
;; MR -- trouble if true for usedir (~user)
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-php51="php:/usr/bin/php51m-cgi"
x-httpd-php52="php:/usr/bin/php52m-cgi"
x-httpd-php53="php:/usr/bin/php53m-cgi"
x-httpd-php54="php:/usr/bin/php54m-cgi"
x-httpd-php55="php:/usr/bin/php55m-cgi"
x-httpd-php56="php:/usr/bin/php56m-cgi"
x-httpd-php70="php:/usr/bin/php70m-cgi"

;; Handler for CGI-scripts
x-suphp-cgi="execute:!self"
### MR -- read /usr/local/lxlabs/kloxo/file/apache/conf.d/suphp.conf.original fo                                                                                                             r full description ###

<IfModule !mod_suphp.c>
        LoadModule suphp_module modules/mod_suphp.so
</IfModule>

suPHP_Engine On

suPHP_AddHandler x-httpd-php
suPHP_AddHandler x-httpd-php51
suPHP_AddHandler x-httpd-php52
suPHP_AddHandler x-httpd-php53
suPHP_AddHandler x-httpd-php54
suPHP_AddHandler x-httpd-php55
suPHP_AddHandler x-httpd-php56
suPHP_AddHandler x-httpd-php70
suPHP_AddHandler x-suphp-cgi

DirectoryIndex index.php


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP7 not working
« Reply #5 on: 2017-02-08, 17:03:14 »
Remember, no guarantee your website running well under php 5.x will be running well under php 7.0.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: PHP7 not working
« Reply #6 on: 2017-02-08, 17:12:03 »
So does that mean PHP71 is working but working on my website? It seems like all the domains on the vps is not working under PHP71. It works with PHP70. I would imagine wordpress work with PHP71 but it's not working.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP7 not working
« Reply #7 on: 2017-02-08, 17:17:05 »
Better asking to wordpress support or learn about wordpress specification.

In this moment, better using php 5.6.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: PHP7 not working
« Reply #8 on: 2017-02-08, 17:30:13 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP7 not working
« Reply #9 on: 2017-02-08, 17:59:42 »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline amitkumar

  • Valuable Member
  • *
  • Posts: 121
  • Karma: +1/-1
  • Gender: Male
    • View Profile
    • webquicksolution
Re: PHP7 not working
« Reply #10 on: 2017-02-09, 08:13:06 »
Wordpress recommends PHP 7
https://wordpress.org/about/requirements/

You can use wordpress on any php version .

They suggest php 7 because of improvement of features .

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP7 not working
« Reply #11 on: 2017-02-09, 08:56:17 »
Php 7.0 and 7.1 is different thing.

I am still prepare to use php 5.6 because already exists some plugins like ioncube, apcu and memcached.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline amitkumar

  • Valuable Member
  • *
  • Posts: 121
  • Karma: +1/-1
  • Gender: Male
    • View Profile
    • webquicksolution
Re: PHP7 not working
« Reply #12 on: 2017-02-09, 09:42:15 »
Right sir i am only using php5.6 because its perfect. one server having php5.2 with wordpress and its working fine.

Offline kriballz

  • Junior Member
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: PHP7 not working
« Reply #13 on: 2017-02-11, 03:13:52 »
Don't forget to check your coding of your themes and plugins, because wordpress is running well on PHP 7 with default themes ;)

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.047 seconds with 18 queries.

web stats analysis