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-23, 20:29:24

Author Topic: PHP Configure  (Read 24116 times)

0 Members and 1 Guest are viewing this topic.

Offline ar1246

  • Senior Member
  • *
  • Posts: 271
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Web Hosting | Web Design Murah
PHP Configure
« on: 2015-02-23, 03:20:34 »
Pak di panel kan ada menu PHP Configure

Code: [Select]
Multiple PHP Ready:   php52m php53m php54m php55m php56m
Multiple PHP Ratio
0:6:0:0:0

Multiple PHP Ratio disini maktudnya gmn pak? apakah seperti sskala prioritas?
Versi PHP ada 5, angka nya juga ada 5 disekat dengan ":"
Angka 6 maksudnya apa, dan apakah bisa dipecah misal jadi 1:2:3:0:0 (sesuai prioritas user) ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Configure
« Reply #1 on: 2015-02-23, 04:11:15 »
Sekarang 'multiple php' belum jalan. Bila nantinya sudah jalan, dimungkinkan setiap website memakai versi php sendiri-sendiri. Isian ratio adalah perbandingan alokasi setiap versi yang digunakan (mulai versi 5.2 sampai 5.6). Jadi, jika '0:6:0:0:0' artinya hanya php 5.3 yang dialokasikan.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ar1246

  • Senior Member
  • *
  • Posts: 271
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Web Hosting | Web Design Murah
Re: PHP Configure
« Reply #2 on: 2015-02-26, 20:35:43 »
Dimengerti Pak (y)

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #3 on: 2015-05-27, 11:14:20 »
 :) kalau hanya ingin mengaktifkan php 5.2 di kloxoMR 7 bisa enggak ya...... sudah coba2 tapi blm berhasil

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #4 on: 2015-05-27, 11:24:31 »
[root@ns10 ~]# sh /script/sysinfo

A. Kloxo-MR: 7.0.0.b-2015052703
   - Web: hiawatha-9.13.0-f.6.mr.el6.x86_64
   - PHP: php53s-5.3.29-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.6 (Final) x86_64
   - Hostname: ns10.e-vps.org
C. Services:
   1. MySQL: mysql55-5.5.43-1.ius.el6.x86_64
   2. PHP:
      - Branch: php53u-5.3.29-1.ius.el6.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
   3. Httpd: httpd-2.2.29-2.mr.el6.x86_64
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.1-1.el6.ngx.x86_64
   7. Cache: varnish-3.0.7-1.el6.x86_64
   8. Dns: nsd-4.1.2-1.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2048       1259        788         75          0       1024
   -/+ buffers/cache:        234       1813
   Swap:         1024        147        876
E. Disk Space:
   Filesystem         Size  Used Avail Use% Mounted on
   /dev/ploop24152p1   50G   28G   19G  60% /

Offline opotoiki

  • Senior Member
  • *
  • Posts: 155
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #5 on: 2015-05-27, 12:13:05 »
1. admin > webserver configure > php branch > php52_ > update
2. admin > webserver configure > php used > --Use PHP Branch-- > update

di ssh,
yum remove php php53u php54 php55u php56u -y
« Last Edit: 2015-05-27, 12:17:56 by opotoiki »
belajar yang banyak, masih goblok soalnya...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Configure
« Reply #6 on: 2015-05-27, 12:33:00 »
1. Pastikan di 'admin > servers > localhost > php configure > enable multiple php' tidak dipilih
2. Pilih php yang dikehendaki di pilih pada 'php used' (sebaiknya yang tipe phpXYm, misalnya 'php53m') di 'webserver configure'. Ini untuk memilih 'php default'
3. Pastikan semua php diinstall pada 'multiple php install'  di 'webserver configure'
4. Kembalikan 'php branch' ke versi semula (php54)
5. Jika ingin suatu website memakai php versi tentu, pelajari .htaccess di document root. Methode ini (sementara) hanya jalan di apache dan proxy saja.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #7 on: 2015-05-30, 02:05:19 »
ok works

tapi pas mau instal ioncube di php 52
conflik ama php 53

web muncul eror

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http:

The following error was encountered:

    Connection to ip xxxxxxxx Failed

The system returned:

    (111) Connection refused

The remote host or network may be down. Please try the request again.

Your cache administrator is webmaster.
Generated Fri, 29 May 2015 23:54:40 GMT by cache4 (squid/2.7.STABLE9)
« Last Edit: 2015-05-30, 02:09:52 by jueliyahwijaya »

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #8 on: 2015-05-30, 02:25:56 »
A. Kloxo-MR: 7.0.0.b-2015052801
   - Web: hiawatha-9.13.0-f.6.mr.el6.x86_64
   - PHP: php53s-5.3.29-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.6 (Final) x86_64
   - Hostname: ns10.e-vps.org
C. Services:
   1. MySQL: mysql55-5.5.43-1.ius.el6.x86_64
   2. PHP:
      - Branch: php52-5.2.17-102.mr.el6.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php56m-5.6.9-1.ius.el6
   3. Httpd: httpd-2.2.29-2.mr.el6.x86_64
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2048       1235        812         10          0        690
   -/+ buffers/cache:        544       1503
   Swap:         1024          0       1024
E. Disk Space:
   Filesystem         Size  Used Avail Use% Mounted on
   /dev/ploop24152p1   50G   29G   19G  61% /

kalau mau instal ulang tanpa merusak data bisa enggak ya....
spesial thanks buat Pak mustafa ramadhan  :)

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #9 on: 2015-05-30, 02:42:59 »
*** Restart services - BEGIN ***

Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
-------------------------------------------------------------------

Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
-------------------------------------------------------------------

Stopping named:                                            [  OK  ]
Starting named:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [FAILED]
Starting httpd: httpd.event: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.d/rpaf.conf: Cannot load /etc/httpd/modules/mod_rpaf-2.0.so into server: /etc/httpd/modules/mod_rpaf-2.0.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
-------------------------------------------------------------------


*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

- For help, type '/script/restart-mail [--help|-h]'
-------------------------------------------------------------------

Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
-------------------------------------------------------------------

Execute fixlxphpexe for php53s...
Stopping kloxo-phpcgi:                                     [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
-------------------------------------------------------------------

Stopping php-fpm:                                          [FAILED]
Starting php-fpm: /etc/php-fpm.conf:1: parser error : Start tag expected, '<' not found
[global]
^
May 29 20:38:42.067862 [ERROR] fpm_conf_init_main(), line 522: failed to load configuration file: failed to parse conf file
                                                           [FAILED]
-------------------------------------------------------------------
*** Restart services - END ***


*** Process Time: 00:00:06:55.415981 (dd:hh:mm:ss:xxxxxx) ***

[root@ns10 ~]# php -v
PHP 5.2.17 (cli) (built: Jun  4 2014 15:59:54)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@ns10 ~]#

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #10 on: 2015-05-30, 02:47:20 »
udah di coba semua swich program, pake hiawata restart service tidak ada eror, tapi web tetep gak jalan

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #11 on: 2015-05-30, 02:54:37 »
perintah terahir sebelum error

yum install php52-ioncube*
Loaded plugins: fastestmirror, priorities, protectbase, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * atomic: www3.atomicorp.com
 * base: mirrors.loosefoot.com
 * extras: mirrors.loosefoot.com
 * mratwork-epel: mirror.oss.ou.edu
 * mratwork-ius-stable: dfw.mirror.rackspace.com
 * updates: mirrors.loosefoot.com
587 packages excluded due to repository priority protections
0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package php52-ioncube.x86_64 0:4.2-1.mr.el6 will be installed
--> Processing Dependency: php52-ioncube(zend-abi) = 20090626 for package: php52-ioncube-4.2-1.mr.el6.x86_64
--> Processing Dependency: php52-ioncube(api) = 20090626 for package: php52-ioncube-4.2-1.mr.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php52-ioncube-4.2-1.mr.el6.x86_64 (mratwork-release-version-arch)
           Requires: php52-ioncube(zend-abi) = 20090626
Error: Package: php52-ioncube-4.2-1.mr.el6.x86_64 (mratwork-release-version-arch)
           Requires: php52-ioncube(api) = 20090626
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Configure
« Reply #12 on: 2015-05-30, 03:31:41 »
Penting sekali pakai php versi 5.2 dan perlu ioncube juga untuk itu?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #13 on: 2015-05-30, 04:31:13 »
iya enggak tau kenapa ada beberapa themes dan plugin di wp yang work di kloxo 7 + php 52,

tapi kalau sekarang prioritas server on ama web normal, uji coba mengembalikan ke setingan php 53 dan php 54 tetep web eror sepertinya service php fpm dan service http tidak berjalan normal

ada langkah cepat tidak ya untuk mengembalikan ke setingan default fia ssh, sudah coba via panel configurasi php + swich program,  web belum on

Offline jueliyahwijaya

  • Junior Member
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: PHP Configure
« Reply #14 on: 2015-05-30, 04:33:53 »
kalau instal ulang data hilang tidak ya...

 


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

Page created in 0.078 seconds with 21 queries.

web stats analysis