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-04-19, 04:52:45

Author Topic: Is suphp okay now?  (Read 11587 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Is suphp okay now?
« Reply #15 on: 2013-02-02, 16:33:32 »
Missing suphp config on your system.

Follow this:

1. select suphp_worker/_event in 'website config' and better select 'php' (because already as 5.3 and php53u have a problem with centos 6)
2. try reinstall suphp with 'yum reinstall mod_php'
3. Modified code inside /home/apache/etc/suphp.conf from:
Code: [Select]
...
x-httpd-php="php:/usr/bin/php-cgi"
x-httpd-php52="php:/usr/local/lxlabs/ext/php/bin/php_cgi"
...
to:
Code: [Select]
...
x-httpd-php="php:/usr/bin/php-cgi"
; x-httpd-php52="php:/usr/local/lxlabs/ext/php/bin/php_cgi"
x-httpd-php52="php:/usr/local/lxlabs/ext/php/etc/lxphpcgi.sh"
...
4. copy /home/apache/etc/suphp.conf to /etc/suphp.conf and to /usr/local/lxlabs/kloxo/file/apache/etc/suphp
5. Rename /etc/httpd/conf.d/suphp.conf to /etc/httpd/conf.d/suphp.nonconf
6. Copy /home/apache/etc/conf.d/suphp52.conf to /etc/httpd/conf.d/suphp52.conf
7. Add in most top in .htaccess on domain root dir with 'AddHandler x-httpd-php .php' (using suphp for primary-php) or 'AddHandler x-httpd-php52 .php' (using suphp for secondary-php)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Anik

  • Senior Member
  • *
  • Posts: 189
  • Karma: +0/-0
    • View Profile
    • http://www.feirox.com
Re: Is suphp okay now?
« Reply #16 on: 2013-02-03, 14:04:11 »
Code: [Select]
5. Rename /etc/httpd/conf.d/suphp.conf to /etc/httpd/conf.d/suphp.nonconf
There is no suphp.conf file in that directory.

Code: [Select]
7. Add in most top in .htaccess on domain root dir with 'AddHandler x-httpd-php .php' (using suphp for primary-php) or 'AddHandler x-httpd-php52 .php' (using suphp for secondary-php)
If i don't add anything i see some creeped page. sometimes white, sometimes red, sometimes source code, sometimes un formatted html etc.
I want to use suphp as primary so added 'AddHandler x-httpd-php .php' but got 500 error.
This 'AddHandler x-httpd-php52 .php' worked but is it using as secondary?

Page creation time is little slow. (1-2Sec)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Having Kloxo-MR useful? Then support the development. Consider buying a server from the author. http://hostspectra.com

Offline Anik

  • Senior Member
  • *
  • Posts: 189
  • Karma: +0/-0
    • View Profile
    • http://www.feirox.com
Re: Is suphp okay now?
« Reply #17 on: 2013-02-03, 14:15:59 »
I think system is still using php-fpm as primary php. how to use suphp as only one?

and how to decrease the page creation time?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Having Kloxo-MR useful? Then support the development. Consider buying a server from the author. http://hostspectra.com

Offline Anik

  • Senior Member
  • *
  • Posts: 189
  • Karma: +0/-0
    • View Profile
    • http://www.feirox.com
Re: Is suphp okay now?
« Reply #18 on: 2013-02-03, 22:28:53 »
so you recommend me to use php-fpm instead of suphp?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Having Kloxo-MR useful? Then support the development. Consider buying a server from the author. http://hostspectra.com

Offline quacos

  • Junior Member
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Is suphp okay now?
« Reply #19 on: 2013-04-08, 17:01:15 »
Same here. On a freshly installed Kloxo MR, I see just PHP sources with suphp.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


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

Page created in 0.03 seconds with 21 queries.

web stats analysis