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-20, 15:05:58

Author Topic: [Solved] PHP Not Configure Properly - Surprise Solution  (Read 7245 times)

0 Members and 1 Guest are viewing this topic.

Offline henry

  • Valuable Member
  • *
  • Posts: 127
  • Karma: +1/-0
    • View Profile
    • Low Cost Internet Marketing Products
I tried to restore backupbuddy file into a domain but failed. It said contact the hosting for a proper PHP configuring.

I read the previous thread here.

Subject: Problem With PHP

Code: [Select]
http://forum.mratwork.com/kloxo-mr-technical-helps/problem-with-php/
I followed the solution to change the PHP type to suphp and yes it worked.

However, I didn't proceed to restore the file as Mr.Mustafa mentioned better to use php-fpm.

Mr.Mustafa said " 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)."

Then, I was trying to open a thread to put the info with sh /script/sysinfo.

However, I was too fast to paste a wrong command using the following execution.

sh /script/upcp

And my current info:

Code: [Select]
#  sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016030202
   - Web: hiawatha-10.1.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: unknown.lowcostebuilder.com
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.x86_64
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Used: --Use PHP Branch--
   3. Web Used: apache
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: --uninstalled--
     - Httpd: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
      - spam: bogofilter
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           512        431         80          3          0        256
   -/+ buffers/cache:        175        336
   Swap:          256        110        145
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/simfs       50G  2.1G   48G   5% /

Note: I was running all this with a new VPS server and trying to install the first domain. So, I din bother if wrong because I can just reinstall at will.

Thank you for attention
Sharing is caring!

( Forum has many interesting ads, you know what to do, get those ads that are interested to you. Cheers!)

Offline eastman

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: [Solved] PHP Not Configure Properly - Surprise Solution
« Reply #1 on: 2016-03-28, 13:58:25 »
I have the same problem.
I can't use php-fpm because when i want - i have 503 error.

I tried everything - change to suphp and cgi and once again to php-fpm and nothing. Only works on suphp, but with php-fpm i have error 503.

sh /script/fixweb-all - nothing... PHP-FPM is only a version that truly works fast but doesn't works for me.

The problem arose after the update has been made recently. The previous update was made in December and the server work using php-fpm.

The second thing I noticed is that I do not work now restart scripts.

I can not anywhere in the logs to discern the cause of the problem.

Code: [Select]
sh /script/sysinfo
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016032701
   - Web: hiawatha-10.1.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: aria.atebox.com
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.x86_64
   2. PHP:
      - Branch: php56u-cli-5.6.19-1.ius.el6.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-1.ius.el6
        * php55m-5.5.33-1.ius.el6
        * php56m-5.6.19-1.ius.el6
        * php70m-7.0.4-1.w6
      - Used: php
   3. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.9.12-1.el6.ngx.x86_64
     - Httpd: httpd24u-2.4.18-3.ius.el6.x86_64
       - PHP Type: suphp_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
      - spam: spamassassin
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7870       7481        388         61        759       4702
   -/+ buffers/cache:       2019       5850
   Swap:         1023          0       1023
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1       196G  129G   58G  69% /


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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [Solved] PHP Not Configure Properly - Surprise Solution
« Reply #2 on: 2016-03-28, 14:03:02 »
I have the same problem.
I can't use php-fpm because when i want - i have 503 error.

I tried everything - change to suphp and cgi and once again to php-fpm and nothing. Only works on suphp, but with php-fpm i have error 503.

sh /script/fixweb-all - nothing... PHP-FPM is only a version that truly works fast but doesn't works for me.

The problem arose after the update has been made recently. The previous update was made in December and the server work using php-fpm.

The second thing I noticed is that I do not work now restart scripts.

I can not anywhere in the logs to discern the cause of the problem.

Code: [Select]
sh /script/sysinfo
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016032701
   - Web: hiawatha-10.1.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: aria.atebox.com
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.x86_64
   2. PHP:
      - Branch: php56u-cli-5.6.19-1.ius.el6.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-1.ius.el6
        * php55m-5.5.33-1.ius.el6
        * php56m-5.6.19-1.ius.el6
        * php70m-7.0.4-1.w6
      - Used: php
   3. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.9.12-1.el6.ngx.x86_64
     - Httpd: httpd24u-2.4.18-3.ius.el6.x86_64
       - PHP Type: suphp_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
      - spam: spamassassin
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7870       7481        388         61        759       4702
   -/+ buffers/cache:       2019       5850
   Swap:         1023          0       1023
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1       196G  129G   58G  69% /


*** Process Time: 00:00:00:02.2673 (dd:hh:mm:ss:xxxxxx) ***
Still trouble if change to 'php-fpm_event' after this latest update?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline eastman

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: [Solved] PHP Not Configure Properly - Surprise Solution
« Reply #3 on: 2016-03-29, 16:39:03 »
still.

Offline eastman

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: [Solved] PHP Not Configure Properly - Surprise Solution
« Reply #4 on: 2016-03-31, 00:19:59 »
it is planned for an update that will fix this problem?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [Solved] PHP Not Configure Properly - Surprise Solution
« Reply #5 on: 2016-03-31, 14:18:09 »
Latest Kloxo-MR 7.0 already fixed this issue. Try change to 'fcgid_event' and then change back to 'php-fpm-event'.

But, make sure use latest Kloxo-MR 7.0.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline eastman

  • Junior Member
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: [Solved] PHP Not Configure Properly - Surprise Solution
« Reply #6 on: 2016-04-01, 10:04:33 »
which version I need to have? (i have 7.0.0.b-2016032701 and probably there is no a newer version) ?

I tried almost everything and I always have error 500.
Maybe its problem with php or httpd?

Code: [Select]
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016032701
   - Web: hiawatha-10.1.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: aria.atebox.com
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.x86_64
   2. PHP:
      - Branch: php56u-cli-5.6.19-1.ius.el6.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-1.ius.el6
        * php55m-5.5.33-1.ius.el6
        * php56m-5.6.19-1.ius.el6
        * php70m-7.0.4-1.w6
      - Used: php
   3. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.9.13-1.el6.ngx.x86_64
     - Httpd: httpd24u-2.4.18-3.ius.el6.x86_64
       - PHP Type: fcgid_event
   4. WebCache: varnish
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: varnish-3.0.7-1.el6.x86_64
   5. Dns: none
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
      - spam: spamassassin
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7870       3579       4291        322        420        957
   -/+ buffers/cache:       2201       5669
   Swap:         1023          0       1023
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1       196G  129G   58G  69% /


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


/var/log/php-error.log
Code: [Select]
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: sysvsem: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: sysvshm: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: tidy: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/wddx.so' - /opt/php54s/usr/lib/php/modules/wddx.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/xmlreader.so' - /opt/php54s/usr/lib/php/modules/xmlreader.so: undefined symbol: dom_node_class_entry in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/xmlrpc.so' - /opt/php54s/usr/lib/php/modules/xmlrpc.so: undefined symbol: php_XML_GetErrorCode in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: xmlwriter: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/xsl.so' - /opt/php54s/usr/lib/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0
[01-Apr-2016 09:06:43 Europe/London] PHP Warning:  PHP Startup: zip: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0

/var/log/httpd/error.log
Code: [Select]
[Fri Apr 01 03:43:23 2016] [core:notice] [pid 4045] [log.c(1537):] [AH00094: Command line: '/usr/sbin/httpd']
[Fri Apr 01 03:46:00 2016] [core:error] [pid 4045] [mpm_unix.c(154):] [AH00046: child process 4049 still did not exit, sending a SIGKILL]
[Fri Apr 01 03:46:00 2016] [core:error] [pid 4045] [mpm_unix.c(154):] [AH00046: child process 4051 still did not exit, sending a SIGKILL]
[Fri Apr 01 03:46:01 2016] [suexec:notice] [pid 14242] [mod_suexec.c(101):] [AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)]
[Fri Apr 01 03:46:01 2016] [auth_digest:notice] [pid 14260] [mod_auth_digest.c(236):] [AH01757: generating secret for digest authentication ...]
[Fri Apr 01 03:46:01 2016] [mpm_event:notice] [pid 14260] [event.c(2860):] [AH00489: Apache/2.4.18 (Red Hat) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 configured -- resuming normal operations]
[Fri Apr 01 03:46:01 2016] [core:notice] [pid 14260] [log.c(1537):] [AH00094: Command line: '/usr/sbin/httpd']
[Fri Apr 01 03:51:29 2016] [core:error] [pid 14260] [mpm_unix.c(154):] [AH00046: child process 14305 still did not exit, sending a SIGKILL]
[Fri Apr 01 04:02:58 2016] [suexec:notice] [pid 2715] [mod_suexec.c(101):] [AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)]
[Fri Apr 01 04:02:58 2016] [auth_digest:notice] [pid 2826] [mod_auth_digest.c(236):] [AH01757: generating secret for digest authentication ...]
[Fri Apr 01 04:02:58 2016] [mpm_event:notice] [pid 2826] [event.c(2860):] [AH00489: Apache/2.4.18 (Red Hat) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 configured -- resuming normal operations]
[Fri Apr 01 04:02:58 2016] [core:notice] [pid 2826] [log.c(1537):] [AH00094: Command line: '/usr/sbin/httpd']

after the change (in kloxo panel) I always doing extra command..
sh /script/fixweb; sh /script/fixphp; sh /script/fix-chownchmod; /etc/init.d/httpd restart; /etc/init.d/nginx restart; /etc/init.d/varnish restart;
« Last Edit: 2016-04-01, 10:06:44 by eastman »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [Solved] PHP Not Configure Properly - Surprise Solution
« Reply #7 on: 2016-04-01, 10:14:00 »
Don't use 'webcache' like varnish if you don't know how to optimizing it. Webcache setting in Kloxo-MR just default/simple.

There are look like something wrong with your php.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.045 seconds with 18 queries.

web stats analysis