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, 19:08:34

Author Topic: Internal Server Error  (Read 2867 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Internal Server Error
« on: 2014-04-09, 16:33:59 »
Every time /script/cleanup is ran it creates a new .htaccess file with the following below. It creates an Internal Server Error for the hosted domains right after. If I delete the htaccess file the site works again. I have ran yum update and everything is updated. I've tried also sh /script/php53s-installer; sh /script/fixlxphpexe; sh /script/cleanup.

Here's what's added to the htaccess file:


###Start Kloxo PHP config Area
### Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
### begin content - please not remove this line

### MR -- attention
### 1. Move '#<Ifmodule !mod_php5.c>' until '#</Ifmodule>' on
###    above '###Start Kloxo PHP config Area'
### 2. Remove # in front of '#<Ifmodule !mod_php5.c>' and '#</Ifmodule>'
###    on point (1)
### 3. Remove # in front of 'AddHandler x-httpd-php52' to activate secondary-php
###    on point (1)
### 4. Or Remove # in front of 'AddHandler x-httpd-php' to activate primary-php
###    on point (1) if select suphp_worker/_event for primary-php

#<Ifmodule !mod_php5.c>
    #AddHandler x-httpd-php52 .php
    #AddHandler x-httpd-php .php
#</Ifmodule>

<Ifmodule mod_php5.c>
    php_value upload_max_filesize 16M
    php_value max_execution_time 180
    php_value max_input_time 180
    php_value memory_limit 64M
    php_value post_max_size 32M
    # php_flag register_globals
    php_flag display_errors
    php_flag file_uploads on
    php_flag log_errors
    php_flag output_buffering off
    php_flag register_argc_argv on
    # php_flag magic_quotes_gpc
    # php_flag magic_quotes_runtime
    # php_flag magic_quotes_sybase
    php_flag mysql.allow_persistent off
    # php_flag register_long_arrays
    php_flag allow_url_fopen on
    php_flag cgi.force_redirect on
    php_flag enable_dl on
</Ifmodule>

### end content - please not remove this line

###End Kloxo PHP config Area

« Last Edit: 2014-04-09, 16:36:23 by Joe »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Internal Server Error
« Reply #1 on: 2014-04-09, 16:43:42 »
Your website not related to php53s. This php53s using by Kloxo-MR only.

Your website using php-branch (see 'webserver configure') or one of 'Php Used' if PHPm series (PHP for next 'multiple php').

Sadly, at this moment, PHPm series not able installing via panel. Need install from ssh like 'sh /script/php53m-installer', 'sh /script/php54m-installer' and 'sh /script/php55m-installer'.

..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: Internal Server Error
« Reply #2 on: 2014-04-09, 17:05:38 »
The selected php branch I'm using is php 5.1.6 because I have older scripts that won't work with newer php. How do I resolve the problem exactly? It worked fine in previous 6.50 kloxo version but the new 6.51 is causing problems.

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: Internal Server Error
« Reply #3 on: 2014-04-09, 17:09:12 »
Do I run sh /script/phpm-installer for php 5.1.6 version?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Internal Server Error
« Reply #4 on: 2014-04-09, 18:08:42 »
Php 5.1.x is unsupport in 6.5.1 because too old. As the same as 6.5.0, still support 5.2.x.

Try this custom:

1. copy '/home/phpini/tpl/htaccess.tpl' to ''/home/phpini/tpl/custom.htaccess.tpl'
2. modified custom file:
from:
Code: [Select]
### begin content - please not remove this lineto:
Code: [Select]
<?php
    
if ($domain === 'domain.com') {
        return;
    }
?>

### begin content - please not remove this line
where change 'domain.com' to your domain
3. run 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web';
..:: 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
Click Here

Page created in 0.042 seconds with 18 queries.

web stats analysis