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, 16:10:47

Author Topic: PHP Problems  (Read 4916 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
PHP Problems
« on: 2014-04-10, 15:47:35 »
I thought my problems with the latest kloxo upgrade from 6.5.0 to 6.5.1 was related to older php version I was using. However, php is broke no matter what version I use.

If I call a phpinfo.php page with:

<?php

phpinfo();

?>

All it displays when I call the page is the code instead of detailed php information:

<?php

phpinfo();

?>

I read your latest announcment and tried follow with different php types and still php is broken:

cd /
rm -f *.rpm
yum clean all
yum replace mratwork-release --replace-with=mratwork-testing
yum update kloxomr
sh /script/php53s-installer
sh /script/fixlxphpexe php53s
sh /script/restart

sh /script/cleanup

and then go to 'switch program' to re-update web and go to 'webserver configure' to re-update php-type.



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Problems
« Reply #1 on: 2014-04-10, 16:19:41 »
Inform here your 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: PHP Problems
« Reply #2 on: 2014-04-10, 16:24:31 »
A. Kloxo-MR: 6.5.1.b-2014041003

B. OS: CentOS release 5.10 (Final) i686

C. Apps:
   1. MySQL: mysql55-5.5.36-1.ius.el5
   2. PHP: php-5.1.6-44.el5_10
   3. Httpd: httpd-2.2.27-1.el5
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.4-1.mr.el5
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el5
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el5

D. Php-type (for Httpd/proxy): mod_php_ruid2

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:           256        247          8          0          0         51
   -/+ buffers/cache:        195         60
   Swap:          256        169         86

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Problems
« Reply #3 on: 2014-04-10, 16:34:32 »
Kloxo-MR 6.5.1.b modified php.ini/.htaccess/php5.fcgi based on php 5.2/5.3/5.4/5.5. If didn't php version, Kloxo-MR think as php version 5.4+.

If you found appear php code when access, try switch php-branch to other (let say php-fpm_event) and then switch back to mod_php_ruid2. After that, inform here your 'dir -l /etc/httpd/conf.d'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: PHP Problems
« Reply #4 on: 2014-04-10, 16:46:20 »
Under Php branches this is all that is listed. I don't even see an option to select  php-fpm_event.

php_(as_5.1.6)
php52_(as 5.2.17)
php53_(as 5.3.3)
php53u_(as 5.3.28)
php54_(as 5.4.26)

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: PHP Problems
« Reply #5 on: 2014-04-10, 16:51:42 »
What is the difference between php used and branch settings? I only show php54m available under php used setting? I still have no idea what difference is between phpm, phps. phpu? Why the m. s, u at the end?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Problems
« Reply #6 on: 2014-04-10, 16:58:47 »
Need install 'multiple php' first and then you can choose one of 'multiple php' as alternative for 'standard' php (aka php-branch). Sadly, it's only work in php-fpm_event/_worker.

Better click 'help' in panel for 'detail' info.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: PHP Problems
« Reply #7 on: 2014-04-10, 17:57:01 »
Kloxo-MR 6.5.1.b modified php.ini/.htaccess/php5.fcgi based on php 5.2/5.3/5.4/5.5. If didn't php version, Kloxo-MR think as php version 5.4+.

If you found appear php code when access, try switch php-branch to other (let say php-fpm_event) and then switch back to mod_php_ruid2. After that, inform here your 'dir -l /etc/httpd/conf.d'.

Now I get an internal server error when calling phpinfo.php

total 68
-rw-r--r-- 1 root root  392 Apr  9 12:23 README
-rw-r--r-- 1 root root   87 Apr 10 11:51 __version.conf
-rw-r--r-- 1 root root  104 Apr 10 11:48 fastcgi.conf
-rw-r--r-- 1 root root  104 Apr 10 11:48 fcgid.conf
-rw-r--r-- 1 root root  227 Apr 10 11:48 php.conf
-rw-r--r-- 1 root root  674 Mar 22 13:42 php.conf.rpmnew
-rw-r--r-- 1 root root  227 Apr  9 10:13 php.conf.rpmsave
-rw-r--r-- 1 root root  566 Dec  5  2005 proxy_ajp.conf
-rw-r--r-- 1 root root  104 Apr 10 11:48 proxy_fcgi.conf
-rw-r--r-- 1 root root  308 Apr  9 16:42 rpaf.conf
-rw-r--r-- 1 root root  279 Apr 10 11:48 ruid2.conf
-rw-r--r-- 1 root root  789 Apr 10 11:51 ssl.conf
-rw-r--r-- 1 root root  104 Apr 10 11:48 suphp.conf
-rw-r--r-- 1 root root  104 Apr  9 10:13 suphp.conf.rpmsave
-rw-r--r-- 1 root root  352 Apr 25  2012 webalizer.conf
-rw-r--r-- 1 root root  299 Sep  9  2004 welcome.conf
-rw-r--r-- 1 root root 1963 Apr 10 11:51 ~lxcenter.conf

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: PHP Problems
« Reply #8 on: 2014-04-10, 19:18:09 »
Well I tried different php combinations and the only one that works is php branch with php54 with php type as php-fpm-event. How do I get it to work with an older php version without getting an INTERNAL SERVER ERROR? I have too many pages and scripts not supporting newer php versions. I would like to get php52 working.
« Last Edit: 2014-04-10, 19:21:38 by Joe »

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: PHP Problems
« Reply #9 on: 2014-04-10, 20:28:20 »
I finally got php52 working but it will only work with php type fcgid_event. It gives an Internal Server Error if any other php type is selected. It will not work with modphp_ruid2. Why?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Problems
« Reply #10 on: 2014-04-11, 04:27:35 »
Possible php.ini not match. It's different with fcgid_event/_worker where using per-user php.ini (not generic php.ini inside /etc).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.056 seconds with 19 queries.

web stats analysis