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:32:16

Author Topic: Site showing PHP source-code after updating PHP  (Read 3399 times)

0 Members and 1 Guest are viewing this topic.

Offline Vikalp_C

  • Junior Member
  • *
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Site showing PHP source-code after updating PHP
« on: 2016-12-28, 14:09:20 »
Hello, I have a CentOS 6.8 64 bit VPS with Kloxo-MR 6.5.0.f installed.
I am currently running php version 5.3.29.

Code: [Select]
[root@server conf]# php -v
PHP 5.3.29 (cli) (built: Aug 14 2014 14:15:02)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies

I have to install an application that requires atleast PHP 5.4+.
So I went to Web-Mail-Database --> Webserver config --> changed PHP branch to php54_(as_5.4.45)

Restarted httpd, but after doing this all my PHP based websites are showing PHP source-code instead of parsing them. What is to be done now?

Please help.

Thank you.

Offline amitkumar

  • Valuable Member
  • *
  • Posts: 121
  • Karma: +1/-1
  • Gender: Male
    • View Profile
    • webquicksolution
Re: Site showing PHP source-code after updating PHP
« Reply #1 on: 2016-12-28, 14:20:05 »
Give this info here
 run 'sh /script/sysinfo '

try to reboot server

Offline Vikalp_C

  • Junior Member
  • *
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Site showing PHP source-code after updating PHP
« Reply #2 on: 2016-12-28, 14:21:51 »
Code: [Select]
[root@server ~]# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2016111301

B. OS: CentOS release 6.8 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.53-1.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.centos6.x86_64
   3. Httpd: httpd-2.2.31-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
   7. Dns: bind-9.9.7-1.mr.el6.x86_64

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          4024        424       3599          8          0        246
   -/+ buffers/cache:        178       3845
   Swap:         4060         72       3987

Haven't tried rebooting the server though..

Offline amitkumar

  • Valuable Member
  • *
  • Posts: 121
  • Karma: +1/-1
  • Gender: Male
    • View Profile
    • webquicksolution

Offline Vikalp_C

  • Junior Member
  • *
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Site showing PHP source-code after updating PHP
« Reply #4 on: 2016-12-28, 15:56:51 »
Thanks.
I changed the PHP to 5.4 then ran
Code: [Select]
sh /script/fix-all
That did the trick.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.031 seconds with 21 queries.

web stats analysis