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, 12:50:43

Author Topic: Server not parsing .html as PHP  (Read 7088 times)

0 Members and 1 Guest are viewing this topic.

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Server not parsing .html as PHP
« on: 2014-08-21, 14:27:00 »
I added AddType application/x-httpd-php .php4 .php .php3 .php2 .phtml .htm .html in my php.conf.

But server can't parsing html as PHP.

First time form Kloxo orogianl.
I setted up the same with Kloxo conf, but not parsing.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server not parsing .html as PHP
« Reply #1 on: 2014-08-21, 14:30:36 »
Depend on your webserver. Inform here 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Server not parsing .html as PHP
« Reply #2 on: 2014-08-21, 14:33:04 »
Here..

A. Kloxo-MR: 7.0.0.b-2014082002

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.39-1.ius.el6.x86_64
   2. PHP: php53u-5.3.28-5.ius.el6.x86_64
   3. Httpd: httpd-2.2.27-1.mr.e6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.7.b-1.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.8.2-0.23.rc1.el6_5.1.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server not parsing .html as PHP
« Reply #3 on: 2014-08-21, 14:41:19 »
Change:
Code: [Select]
#ReverseProxy ^/.* http://127.0.0.1:30080/ 90 keep-alive
ReverseProxy !\.(pl|cgi|py|rb|shmtl) http://127.0.0.1:30080/ 90 keep-alive

To:
Code: [Select]
ReverseProxy ^/.* http://127.0.0.1:30080/ 90 keep-alive
#ReverseProxy !\.(pl|cgi|py|rb|shmtl) http://127.0.0.1:30080/ 90 keep-alive

in /opt/configs/hiawatha/tpl/custom.defaults.conf.tpl and custom.domains.conf.tpl and then run fixweb
« Last Edit: 2014-08-21, 14:54:28 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Server not parsing .html as PHP
« Reply #4 on: 2014-08-21, 14:52:16 »
For me?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server not parsing .html as PHP
« Reply #5 on: 2014-08-21, 14:54:44 »
Yes
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Server not parsing .html as PHP
« Reply #6 on: 2014-08-21, 14:57:36 »
You comment is for NetMajom

http://forum.mratwork.com/kloxo-mr-technical-helps/all-system-crashed!/

My problem is parshing .html  as PHP.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server not parsing .html as PHP
« Reply #7 on: 2014-08-21, 14:59:55 »
It's related to your 'I added AddType application/x-httpd-php .php4 .php .php3 .php2 .phtml .htm .html in my php.conf.'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Server not parsing .html as PHP
« Reply #8 on: 2014-08-21, 15:29:02 »
I  can't find  /opt/configs/hiawatha/tpl/custom.defaults.conf.tpl and custom.domains.conf.tpl files.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server not parsing .html as PHP
« Reply #9 on: 2014-08-21, 15:53:46 »
Copy from defaults.conf.tpl and domains.conf.tpl.

It's 'custom rule' of Kloxo-MR where Kloxo-MR will read custom file if exists in config process.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Server not parsing .html as PHP
« Reply #10 on: 2014-08-22, 15:46:44 »
I think it's work. But not work html as php.
When I added 'AddType application/x-httpd-php .html .htm' in my php.conf, browser show download message.
It was ok in my kloxo original system.



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server not parsing .html as PHP
« Reply #11 on: 2014-08-22, 21:06:45 »
Kloxo Official not support proxy (like nginx-proxy). Your issue related to how to web-frontside tell to web-backside what's file to process (in your context is php file but extension html).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Server not parsing .html as PHP
« Reply #12 on: 2014-08-23, 02:00:57 »
Thanks your quick reply.

I added the following in php.conf.
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

But not work.

Is there rule for MR?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server not parsing .html as PHP
« Reply #13 on: 2014-08-23, 02:17:24 »
Your trick is not absolutely work without telling to webserver (nginx and apache for nginx-proxy).

Have you try modified custom.defaults.conf.tpl and custom.domains.conf.tpl?.
« Last Edit: 2014-08-23, 05:35:17 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Server not parsing .html as PHP
« Reply #14 on: 2014-08-23, 03:31:54 »
Yes I made and modified both.

I just use only apache for webserver without nginx-proxy.
« Last Edit: 2014-08-23, 03:34:59 by azzureal »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.066 seconds with 18 queries.

web stats analysis