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-19, 20:12:47

Author Topic: [URGENT] php5Xm stopped working after upgrade to Apache 2.4  (Read 10143 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Now all of pages with:

Quote
    <FilesMatch \.php$>
        SetHandler x-httpd-php52 .php
    </FileMatch>

Shows Internal Server Error ;(

I use PHP 5.6.10 in php-fpm mode from remi as main which works fine.

Running /script/fixweb does not help...
« Last Edit: 2015-07-01, 11:11:39 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #1 on: 2015-07-01, 08:24:42 »
Try 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'.
..:: 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: php5Xm stopped working after upgrade to Apache 2.4
« Reply #2 on: 2015-07-01, 08:26:46 »
Try 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'.

Now it displays blank page when trying to list phpinfo using php5Xm

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #3 on: 2015-07-01, 09:23:29 »
I found this issue. But not work in certain server only.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #4 on: 2015-07-01, 09:25:18 »
Need update to fix wrong .htaccess.

Change:
from:
Code: [Select]
<FilesMatch \.php$>
    SetHandler x-httpd-php52 .php
  </FileMatch>
to:
Code: [Select]
<FilesMatch \.php$>
    SetHandler x-httpd-php52
  </FileMatch>
..:: 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: php5Xm stopped working after upgrade to Apache 2.4
« Reply #5 on: 2015-07-01, 10:16:11 »
Changed but still Internal Server Error 500

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #6 on: 2015-07-01, 10:17:07 »
Changed but still Internal Server Error 500
Try 'chown root.root /'.
..:: 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: php5Xm stopped working after upgrade to Apache 2.4
« Reply #7 on: 2015-07-01, 10:19:24 »
Still Error 500...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #8 on: 2015-07-01, 10:29:01 »
Still Error 500...
Open '/etc/suphp.conf' and then change 'errors_to_browser=false' to 'errors_to_browser=true' to know more info about error.
..:: 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: php5Xm stopped working after upgrade to Apache 2.4
« Reply #9 on: 2015-07-01, 10:50:25 »
Still Error 500...
Open '/etc/suphp.conf' and then change 'errors_to_browser=false' to 'errors_to_browser=true' to know more info about error.

I got it already and nothing...

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

;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-php51="php:/opt/php51m/custom/php-cgi.sh"
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 other version like php53
;;; 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: php5Xm stopped working after upgrade to Apache 2.4
« Reply #10 on: 2015-07-01, 10:57:38 »
No issue related to ownership/permissions in php and .htaccess file?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline opotoiki

  • Senior Member
  • *
  • Posts: 155
  • Karma: +0/-0
    • View Profile
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #11 on: 2015-07-01, 11:00:17 »
I used apache24 with php55u, working very well
belajar yang banyak, masih goblok soalnya...

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #12 on: 2015-07-01, 11:00:48 »
No issue related to ownership/permissions in php and .htaccess file?.

No - sadly no log is written :(

[root@online php52]# ls -l
total 4.0K
-rw-r--r-- 1 admin admin 16 Jan 22  2014 index.php
[root@online php52]# cat .htaccess
<FilesMatch \.php$>
    SetHandler x-httpd-php52
  </FileMatch>

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php5Xm stopped working after upgrade to Apache 2.4
« Reply #13 on: 2015-07-01, 11:01:22 »
I used apache24 with php55u, working very well

As main or secondary ? We are are talking about secondary PHP - main PHP is working fine.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [URGENT] php5Xm stopped working after upgrade to Apache 2.4
« Reply #14 on: 2015-07-01, 12:16:50 »
Just tested on my Virtualbox machine. Main php works everytime, but secondary always shows Internal Server Error 500.

Quote
[root@c44-49 etc]# sh /script/fixphp

- For help, type '/script/fixphp [--help|-h]'
- No argument supplied. Defaulting to localhost (master) servers

Fixing php.ini/php-fpm.conf/php5.fcgi/.htaccess
- '/etc/php.ini' at 'localhost'
- Fix 'extension_dir' path in php.ini at 'localhost'
- '/etc/php-fpm.d/default.conf' at 'localhost'
- '/home/kloxo/client/php5.fcgi' at 'localhost'
- '/home/admin/tester.pl/.htaccess' ('admin') at 'localhost'
- '/home/kloxo/client/admin/php.ini' at 'localhost'
- '/home/kloxo/client/admin/php5.fcgi' at 'localhost'
- '/home/kloxo/client/admin/prefork.inc' at 'localhost'
- '/etc/php-fpm.d/admin.conf' at 'localhost'

*** Process Time: 00:00:00:00.770 (dd:hh:mm:ss:xxxxxx) ***

[root@c44-49 etc]# sh /script/fixweb

- For help, type '/script/fixweb [--help|-h]'
- No argument supplied. Defaulting to localhost (master) servers

Fixing Web server config
- 'defaults' pages at 'localhost'
- remove all domains configs at 'localhost'
- 'tester.pl' ('admin') at 'localhost'

*** Process Time: 00:00:00:00.755 (dd:hh:mm:ss:xxxxxx) ***

[root@c44-49 etc]# curl -s --head http://tester.pl
HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Wed, 01 Jul 2015 10:25:17 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 2104
Connection: keep-alive

Quote
A. Kloxo-MR: 7.0.0.b-2015070101
   - 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: c44-49.icpnet.pl
C. Services:
   1. MySQL: MariaDB-server-10.0.20-1.el6.x86_64
   2. PHP:
      - Branch: php-cli-5.4.32-1.el6.remi.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.42-1.ius.el6
        * php55m-5.5.26-1.ius.el6
        * php56m-5.6.10-1.ius.el6
      - Used: --Use PHP Branch--
   3. Httpd: httpd24u-2.4.12-5.ius.el6.x86_64
      - PHP Type: [unknown]
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.13.0-f.6.mr.el6.x86_64
   6. Nginx: nginx-1.9.2-1.el6.ngx.x86_64
   7. Cache: --uninstalled--
   8. Dns: pdns-3.3.3-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:         64425       1664      62761         31        107        682
   -/+ buffers/cache:        873      63551
   Swap:          199          0        199
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/sda3        16G  6,8G  7,7G  47% /
« Last Edit: 2015-07-01, 12:23:02 by Spacedust »

 


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

Page created in 0.066 seconds with 18 queries.

web stats analysis