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-20, 15:01:06

Author Topic: [RESOLVED] php5Xm stopped working  (Read 5248 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
[RESOLVED] php5Xm stopped working
« on: 2015-06-17, 14:17:22 »
It tries to download php files instead of executing them ;(
« Last Edit: 2015-06-17, 16:18:41 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [CRITICAL] php5Xm stopped working
« Reply #1 on: 2015-06-17, 14:22:10 »
Try 'sh /script/restart-web -y'. But better execute cleanup after update Kloxo-MR rpm.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [CRITICAL] php5Xm stopped working
« Reply #2 on: 2015-06-17, 14:41:19 »
Try 'sh /script/restart-web -y'. But better execute cleanup after update Kloxo-MR rpm.

Restarting does not help. I'm updating to latest version.

It happened with almost no reason :(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [CRITICAL] php5Xm stopped working
« Reply #3 on: 2015-06-17, 14:51:13 »
No error/warning if execute 'sh /script/restart-web -y'?.

You can change php-fpm with 'sh /script/set-php-fpm php56m'.

Try 'pkill -9 php-fpm' before restart-web.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [CRITICAL] php5Xm stopped working
« Reply #4 on: 2015-06-17, 14:53:50 »
No error/warning if execute 'sh /script/restart-web -y'?.

You can change php-fpm with 'sh /script/set-php-fpm php56m'.

Try 'pkill -9 php-fpm' before restart-web.

No errors.

I use php 5.6 from remi which works well + php52m/php53m/php54m/php55m/php56m from you.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [CRITICAL] php5Xm stopped working
« Reply #5 on: 2015-06-17, 15:02:35 »
To clarify, is it problem with phpXYm or 'php branch'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [CRITICAL] php5Xm stopped working
« Reply #6 on: 2015-06-17, 15:03:38 »
Only with php5Xm :( php-branch (remi) works fine.

I don't know what's wrong.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [CRITICAL] php5Xm stopped working
« Reply #7 on: 2015-06-17, 15:32:19 »
Did mean using 'secondary php' with modified .htaccess or select phpXYm in 'php used'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [CRITICAL] php5Xm stopped working
« Reply #8 on: 2015-06-17, 15:34:20 »
Did mean using 'secondary php' with modified .htaccess or select phpXYm in 'php used'?.
Update and cleanup didn't helped ;(

Using as secondary php with modified .htaccess. It was working fine this morning now it's not. It tries to download php files like there would be no apache config.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [CRITICAL] php5Xm stopped working
« Reply #9 on: 2015-06-17, 15:37:20 »
Did mean using 'secondary php' with modified .htaccess or select phpXYm in 'php used'?.
Update and cleanup didn't helped ;(

Using as secondary php with modified .htaccess. It was working fine this morning now it's not. It tries to download php files like there would be no apache config.

There are something with /etc/suphp.conf. Disable chroot with ';chroot=/home/*/'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [CRITICAL] php5Xm stopped working
« Reply #10 on: 2015-06-17, 15:40:32 »
Did mean using 'secondary php' with modified .htaccess or select phpXYm in 'php used'?.
Update and cleanup didn't helped ;(

Using as secondary php with modified .htaccess. It was working fine this morning now it's not. It tries to download php files like there would be no apache config.

There are something with /etc/suphp.conf. Disable chroot with ';chroot=/home/*/'.

Mine was disabled already (old version) and still not working:

Quote
[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=true

[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"
x-httpd-php56="php:/opt/php56m/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 php56
;;; it's make possible running 'multiple php' on server!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [CRITICAL] php5Xm stopped working
« Reply #11 on: 2015-06-17, 15:45:13 »
With enable chroot will be error 500 in 2015061601. Fix in 2015061701.

For your issue, try disable 'secondary php' and then enable again.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [CRITICAL] php5Xm stopped working
« Reply #12 on: 2015-06-17, 15:48:28 »
With enable chroot will be error 500 in 2015061601. Fix in 2015061701.

For your issue, try disable 'secondary php' and then enable again.

My config:

Quote
A. Kloxo-MR: 7.0.0.b-2015061601
   - Web: hiawatha-9.13.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.41-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.6 (Final) x86_64
   - Hostname: xxx.pl
C. Services:
   1. MySQL: MariaDB-server-10.0.19-1.el6.x86_64
   2. PHP:
      - Branch: php-5.6.10-1.el6.remi.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.41-1.ius.el6
        * php55m-5.5.25-1.ius.el6
        * php56m-5.6.9-1.ius.el6
      - Used: --Use PHP Branch--
   3. Httpd: httpd-2.2.29-2.mr.el6.x86_64
      - PHP Type: [unknown]
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.2-1.el6.ngx.x86_64
   7. Cache: --uninstalled--
   8. Dns: pdns-3.3.2-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:         24022      23771        250        149        809      12592
   -/+ buffers/cache:      10369      13652
   Swap:         2047         10       2037
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/md2         15G  9.9G  4.1G  71% /

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [CRITICAL] php5Xm stopped working
« Reply #13 on: 2015-06-17, 16:11:29 »
Look like something wrong with 'php type'. It's not related to php itself but how to apache handle to php.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [CRITICAL] php5Xm stopped working
« Reply #14 on: 2015-06-17, 16:15:57 »
Got it back working - I've runned /script/fixweb and it throwed Error 500, then I've commented the line with chroot (it got restored from /opt folder) and it's back working.

I'm still on old tpl's for Apache (before Apache 2.4).

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.052 seconds with 18 queries.

web stats analysis