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
-
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.
-
Depend on your webserver. Inform here 'sh /script/sysinfo'.
-
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
-
Change:
#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:
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
-
For me?
-
Yes
-
You comment is for NetMajom
http://forum.mratwork.com/kloxo-mr-technical-helps/all-system-crashed!/
My problem is parshing .html as PHP.
-
It's related to your 'I added AddType application/x-httpd-php .php4 .php .php3 .php2 .phtml .htm .html in my php.conf.'
-
I can't find /opt/configs/hiawatha/tpl/custom.defaults.conf.tpl and custom.domains.conf.tpl files.
-
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.
-
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.
-
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).
-
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?
-
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?.
-
Yes I made and modified both.
I just use only apache for webserver without nginx-proxy.
-
Is there any solution?
I need to use .html as PHP.
-
I am waiting to solve this problem
Pleade let me know someone know how to use.