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. 2017-11-07, 21:45:37

Author Topic: Apache: shows PHP code  (Read 3627 times)

0 Members and 1 Guest are viewing this topic.

Offline rizwan65

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Apache: shows PHP code
« on: 2013-08-18, 11:37:15 »
Hi
I am using Apache as web server and facing problem
While accessing my sites total PHP code is displayed
What could be the problem

I have converted the webserver from nginx to apache
Regards
Rizwan
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache: shows PHP code
« Reply #1 on: 2013-08-18, 11:50:08 »
What's php-type in 'webserver config'?.

Better update your Kloxo-MR with:
Code: [Select]
yum clean all
yum update
sh /script/cleanup
sh /script/restart-all
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rizwan65

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Apache: shows PHP code
« Reply #2 on: 2013-08-18, 12:04:27 »
Thanks for your prompt reply
Which php type to select
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline rizwan65

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Apache: shows PHP code
« Reply #3 on: 2013-08-18, 12:13:37 »
BTW I have changed to php_fpm_event and the problem is solved
Which php type is best

and another problem
While in mailserver setting when I select Enable Virus Scan
The error:
Alert: simscan_is_not_installed_for_virus_scan
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache: shows PHP code
« Reply #4 on: 2013-08-18, 12:24:37 »
Better choose php-fpm_event.

Viruscan and spamassassin need install packages separately. Try 'yum install clamav-toaster  simscan-toaster' and then 'Enable Virus Scan'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rizwan65

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Apache: shows PHP code
« Reply #5 on: 2013-08-18, 13:13:17 »
Thanks
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache: shows PHP code
« Reply #6 on: 2013-08-18, 13:40:38 »
Better choose nginx-proxy (nginx in front and apache in backend) because will be have advantage of nginx (can handle hight-traffic, prevent for ddos attach for port 80/443) and apache (use .htaccess for 'rewrite rule').
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rizwan65

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Apache: shows PHP code
« Reply #7 on: 2013-08-18, 14:26:53 »
Actually I reverted back from nginx due to un-supported .htaccess
All my sites are using mod rewrite
Will nginx-proxy use mod-rewrite just like apache
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache: shows PHP code
« Reply #8 on: 2013-08-18, 14:49:09 »
Quote from: "rizwan65"
Actually I reverted back from nginx due to un-supported .htaccess
All my sites are using mod rewrite
Will nginx-proxy use mod-rewrite just like apache
Absolutely yes.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rizwan65

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Apache: shows PHP code
« Reply #9 on: 2013-08-18, 20:27:12 »
Thanks Mustafa
Well I have changed the server to nginx-proxy
Now one of my site which is using wordpress is displaying
500 Internal server error
Could you please let me know where can I view the error log for that specific domain
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline rizwan65

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Apache: shows PHP code
« Reply #10 on: 2013-08-18, 20:57:59 »
Thanks solved
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache: shows PHP code
« Reply #11 on: 2013-08-18, 20:58:59 »
All log inside /var/log but you see last log via 'log manager' on panel.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.037 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM