MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: azzureal on 2014-08-21, 14:27:00

Title: Server not parsing .html as PHP
Post by: azzureal 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.
Title: Re: Server not parsing .html as PHP
Post by: MRatWork on 2014-08-21, 14:30:36
Depend on your webserver. Inform here 'sh /script/sysinfo'.
Title: Re: Server not parsing .html as PHP
Post by: azzureal 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
Title: Re: Server not parsing .html as PHP
Post by: MRatWork 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
Title: Re: Server not parsing .html as PHP
Post by: azzureal on 2014-08-21, 14:52:16
For me?
Title: Re: Server not parsing .html as PHP
Post by: MRatWork on 2014-08-21, 14:54:44
Yes
Title: Re: Server not parsing .html as PHP
Post by: azzureal 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.
Title: Re: Server not parsing .html as PHP
Post by: MRatWork 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.'
Title: Re: Server not parsing .html as PHP
Post by: azzureal 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.
Title: Re: Server not parsing .html as PHP
Post by: MRatWork 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.
Title: Re: Server not parsing .html as PHP
Post by: azzureal 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.


Title: Re: Server not parsing .html as PHP
Post by: MRatWork 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).
Title: Re: Server not parsing .html as PHP
Post by: azzureal 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?
Title: Re: Server not parsing .html as PHP
Post by: MRatWork 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?.
Title: Re: Server not parsing .html as PHP
Post by: azzureal on 2014-08-23, 03:31:54
Yes I made and modified both.

I just use only apache for webserver without nginx-proxy.
Title: Re: Server not parsing .html as PHP
Post by: azzureal on 2014-08-23, 15:36:47
Is there any solution?
I need to use .html as PHP.
Title: Re: Server not parsing .html as PHP
Post by: azzureal on 2014-08-24, 08:06:42
I am waiting to solve this problem
Pleade let me know someone know how to use.