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, 22:22:46

Author Topic: Problem With PHP  (Read 1666 times)

0 Members and 1 Guest are viewing this topic.

Offline raglow

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Problem With PHP
« on: 2013-08-17, 00:37:29 »
Hey all! I've spent all day trying to get things going well and finally got everything running... except for one small (or large?) problem. The server doesn't appear to install PHP by default?

I just tried to run a PHP script and it came out in cleartext, so I went into the component information to find:

"package php is not installed"

I am using Apache as my web service, on CentOS6 and the latest version of Kloxo-MR as per the link at the top of the forums.

Can someone please explain how to get PHP installed and working here? After spending all day on this I'm a bit worried about breaking something by messing around now, :p.

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: Problem With PHP
« Reply #1 on: 2013-08-17, 01:01:45 »
inform here 'sh /script/sysinfo' to know what's your server and give more specific about "package php is not installed" becuase so many php packages.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline raglow

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Problem With PHP
« Reply #2 on: 2013-08-17, 01:11:41 »
The script you requested returned:

A. Kloxo-MR: 6.5.0.f-2013081602

B. OS: CentOS release 6.4 (Final) i686

C. Apps:
1. MySQL: mysql-5.5.29-1.el6.i686
2. PHP: php53u-5.3.27-1.ius.el6.i686
3. Httpd: httpd-2.2.25-1.el6.i686
4. Lighttpd: --uninstalled--
5. Nginx: --uninstalled--
6. Qmail: qmail-toaster-1.0-1.3.27.mr.el6.i686
- with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.i686
7: Dns: bind-9.9.3-4.P2.el6.i686

D. Php-type (for Httpd/proxy):

E. Memory:

Mem: total (512) | used (226) | free (285)
Cache/buffer: used (158) | free (353)
Swap: total (512) | used (0) | free (511)

----------------------

The "package php is not installed" is what I see under the "Components" listing in Kloxo-MR. I'm pretty new to VPS's in general, and especially to Linux, so this is all new territory for me, :p.

I did run the command "yum reinstall php53-fpm" which reinstalled the PHP version listed above, but that doesn't appear to have done anything (at least as far as I can tell).
« 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: Problem With PHP
« Reply #3 on: 2013-08-17, 01:42:14 »
Options of 'Components' in panel not accurate. This option still the same like Kloxo official (you can say also 'Kloxo Classic') options.

With 'sh /script/sysinfo'. you can see '2. PHP: php53u-5.3.27-1.ius.el6.i686' where php already installed and from 'php53u' branch.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline raglow

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Problem With PHP
« Reply #4 on: 2013-08-17, 02:00:11 »
Quote from: "MRatWork"
Options of 'Components' in panel not accurate. This option still the same like Kloxo official (you can say also 'Kloxo Classic') options.

With 'sh /script/sysinfo'. you can see '2. PHP: php53u-5.3.27-1.ius.el6.i686' where php already installed and from 'php53u' branch.

Yeah, what's odd, though, is that it doesn't appear to be working. For example, here's one of the files hosted on it:

http://myfaucets.tk/test.php

That just loads up the text itself, rather than the PHP output. Also, in the "Component" listing it has a red dot next to PHP, as seen in the attached image. I've tried running "sh /script/restart-all" and it shows that PHP is running, but there's still no luck.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline raglow

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Problem With PHP
« Reply #5 on: 2013-08-17, 02:12:56 »
To add on, I just found that in Services, this shows up:

php-fpm    php-fpm    Php Fastcgi Process Manager

It shows that the process is running. But still, none of my sites will allow PHP files -- they just display the text as if it's a .txt file.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline raglow

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Problem With PHP
« Reply #6 on: 2013-08-17, 02:19:54 »
Can't edit messages, :p. I think I fixed it (I'm not 100% though so I'll keep messing with it). In case anyone wants to know what I did so far:

Web - Mail - Database ---> Webserver Config
PhpType ---> suphp

At least the script I tested out now loads properly. I'm going to give the server a reboot and test some more scripts. But this makes me hopeful!
« 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: Problem With PHP
« Reply #7 on: 2013-08-17, 02:42:19 »
At this moment, php-fpm_event is the best choice for most websites because faster and secure. Nginx-proxy (nginx in front and apache in backend) as optimize choice (if possible, choose nginx but remember .httaccess not work).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline raglow

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Problem With PHP
« Reply #8 on: 2013-08-17, 02:47:08 »
Quote from: "MRatWork"
At this moment, php-fpm_event is the best choice for most websites because faster and secure. Nginx-proxy (nginx in front and apache in backend) as optimize choice (if possible, choose nginx but remember .httaccess not work).

Ah, thanks for the heads-up on the types. I'd *love* to go with Nginx, but one of the sites I use is Joomla and I've found it ridiculously hard to figure out how to handle the forwarding (for SEO URL's) on that; there are a lot of mod_rewrite rules in my config as it is, :p.

Also, I forgot to say, I really do appreciate you taking the time to assist me. I can't express how happy I am that things are working now!
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.039 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM