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-03-29, 13:21:47

Author Topic: 500 Internal Server Error appeared on view php files  (Read 18852 times)

0 Members and 1 Guest are viewing this topic.

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Quote
I have CentOS 6.3 (64 bit) on KVM VPS
I'm using kloxo-mr 6.5.0.c.2013021701 by nginx-proxy + bind

I've configured my webserver as follows:
Php Branch : php54_(as_5.4.11)
Php Type : php-fpm_event
Enable Php 5.2 (use Lxphp) As Secondary Php
Apache Memory Optimize : default
Mysql Convert : to-myisam
I've tryed:
Code: [Select]
sh /script/fix-chownchmodand
Servers > Webserver Config > Fix 'ownership' And 'permissions'

In kloxo official I already tried this instruction by mustafaramadhan: http://forum.lxcenter.org/index.php?t=msg&th=18036 but don't try it on kloxo-mr yet!

I imagined that this problem is solved in the kloxo-mr  :|
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal Server Error appeared on view php files
« Reply #1 on: 2013-02-17, 21:17:58 »
For suphp, this issue related to ownership and or permissions. For others, it's related to php itself.

Try switch to php (that mean php 5.3 on Centos 6) and try 'sh /script/fixweb; service php-fpm; service httpd restart; service nginx restart'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: 500 Internal Server Error appeared on view php files
« Reply #2 on: 2013-02-17, 21:38:42 »
Thanks,

I try it by selecting "php_(as_5.3.21)" as Php Branch from Webserver Config.
Then try ssh without any error

Now when I try to view php files, browser download it instead show it!

In Advanced PHP Config I used follow settings:
Enable Dl = 0
Allow Url Fopen = 0
Allow Url Include = 0
Magic Quotes Gpc = 1
Disable Functions : symlink,shell_exec,exec,proc_close,proc_open,popen,pclose,system,dl,passthru,escapeshellarg,escapeshellcmd,readfile,show_source
Magic Quotes Sybase = 0
Safe Mode = 1
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal Server Error appeared on view php files
« Reply #3 on: 2013-02-17, 21:50:56 »
Don't use safe-mode because useless and will be remove for php next release.

Also disable magic_quote.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: 500 Internal Server Error appeared on view php files
« Reply #4 on: 2013-02-17, 22:05:17 »
I disabled them but browser still download php files instead show them!
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal Server Error appeared on view php files
« Reply #5 on: 2013-02-17, 22:11:08 »
What's php-type?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: 500 Internal Server Error appeared on view php files
« Reply #6 on: 2013-02-17, 22:19:36 »
As I said on first post, Php Type : php-fpm_event
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal Server Error appeared on view php files
« Reply #7 on: 2013-02-17, 22:24:01 »
Result for running 'php-fpm -v'?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: 500 Internal Server Error appeared on view php files
« Reply #8 on: 2013-02-17, 22:34:32 »
After try running 'yum update', this message display on php files by "The page is temporarily unavailable" title:
Quote
The page you are looking for is temporarily unavailable.
Please try again later.  
Quote from: "MRatWork"
Result for running 'php-fpm -v'?
# php-fpm -v (after switch again to php54 from 5.3 by this instruction)
Code: [Select]
PHP 5.4.11 (fpm-fcgi) (built: Jan 17 2013 13:25:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal Server Error appeared on view php files
« Reply #9 on: 2013-02-17, 22:43:58 »
So. still appear '500 error'?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: 500 Internal Server Error appeared on view php files
« Reply #10 on: 2013-02-17, 22:53:21 »
Quote from: "MRatWork"
So. still appear '500 error'?
No, a page with follow content:
Code: [Select]
<html>
<head>
<title>The page is temporarily unavailable</title>
<style>
body { font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body bgcolor="white" text="black">
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
The page you are looking for is temporarily unavailable.<br/>
Please try again later.
</td>
</tr>
</table>
</body>
</html>
Also now httpd stopped:
[attachment=0:3rwb9utt]Untitled-2.png[/attachment:3rwb9utt]
# service httpd restart
Code: [Select]
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal Server Error appeared on view php files
« Reply #11 on: 2013-02-17, 23:28:15 »
Try 'service httpd status'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: 500 Internal Server Error appeared on view php files
« Reply #12 on: 2013-02-17, 23:40:12 »
# service httpd status
Code: [Select]
httpd.event is stopped
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal Server Error appeared on view php files
« Reply #13 on: 2013-02-18, 00:00:24 »
It's something with httpd config. Try switch to other webserver (when using httpd/nginx/nginx-proxy, try lighttpd) and switch back to previous.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: 500 Internal Server Error appeared on view php files
« Reply #14 on: 2013-02-18, 00:13:25 »
After that, httpd changes to started but pages of site still were "temporarily unavailable"
So I try to 'service httpd restart' but httpd stopped again!

# service httpd restart
Code: [Select]
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.078 seconds with 21 queries.

web stats analysis