MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: costa1988sv on 2013-02-18, 21:07:25

Title: Php not working
Post by: costa1988sv on 2013-02-18, 21:07:25
The php page is displayed as plain/text
i tried all php version

PHP Warning:  PHP Startup: eAccelerator: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP 5.4.11 (cli) (built: Jan 17 2013 12:40:11)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 21:12:41
Look like php 5.4 from ius repo (Kloxo-MR taken php from this repo) have many issue. Try php53u (when using centos 5) or php (also 5.3 version; when using centos 6)
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 21:14:00
Try xcache instead eAccelerator.
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 21:17:55
i tried 5.2 5.3 5.4 all the same
how i disable eaccelator to see if is the problem
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 21:19:58
Try 'yum remove php*-eaccelerator'.
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 21:21:54
It's look like eaccelerator version not match with php. Xcache more compatible than eaccelerator.
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 21:22:50
Package(s) php*-eaccelerator available, but not installed.
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 21:32:25
in the php.ini i can't fild eaccelerator to disable
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 21:48:02
Look inside /etc/php.d for module ini. Inform here with 'dir /etc/php.d'
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 21:50:46
i find out but nothing changed, still, 500 error, bank page, or plain text
i can give access to see yourself if you have time
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 22:25:33
What the reason to choose '/home/admin/tv' as root dir.

In normal condition will be '/home/admin/<domain>'. When add domain enough no enter on 'document root'
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 22:32:18
the file is found, i deleted index.php and i have index.php with a iframe to a temporary server, but php don't works
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 22:37:35
Try create phpinfo.php with content '<?php phpinfo(); ?>' and then access this file via web.
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 22:47:23
I think it's not relate to your issue, but better running 'yum downgrade apr*'.

Try:
Code: [Select]
sh /script/fixweb
service httpd restart; service nginx restart; service php-fpm restart
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 22:59:28
now phpinfo.php works, but the script tot working
Title: Re: Php not working
Post by: MRatWork on 2013-02-18, 23:07:20
Quote from: "costa1988sv"
now phpinfo.php works, but the script tot working
If phpinfo work that mean php is ok. About your script, it's depend on your need something where not permit by php. It's like exec function. You can see disable_permission in panel dan please compare to your script content.
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 23:28:15
i think is mysql problem, but error _ reporting is not working
Title: Re: Php not working
Post by: costa1988sv on 2013-02-18, 23:45:21
is from mysql the problem, misql and mysqli tot working

/usr/libexec/mysqld, Version: 5.0.96-log (Source distribution). started with:
Tcp port: 0  Unix socket: /var/lib/mysql/mysql.sock
Time                 Id Command    Argument
130218 20:45:42 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.96-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
130218 20:45:43         1 Connect     UNKNOWN_MYSQL_US@localhost as anonymous on
            1 Quit
Title: Re: Php not working
Post by: MRatWork on 2013-02-19, 00:11:54
Have you see '/var/log/mysqld.log' or from 'log manager' from panel?
Title: Re: Php not working
Post by: costa1988sv on 2013-02-19, 00:29:55
130218 20:41:07 [Note] /usr/libexec/mysqld: Normal shutdown

130218 20:41:08 [Note] /usr/libexec/mysqld: Shutdown complete

130218 20:41:08  mysqld ended

130218 20:41:08  mysqld started
^G/usr/libexec/mysqld: File '/var/log/mysqlupdate.log' not found (Errcode: 13)
130218 20:41:08 [ERROR] Could not use /var/log/mysqlupdate.log for logging (error 13). Turning logging off for the whole duration of the MySQL server process. To turn it on aga$
130218 20:41:08 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.96-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
130218 20:45:41 [Note] /usr/libexec/mysqld: Normal shutdown

130218 20:45:42 [Note] /usr/libexec/mysqld: Shutdown complete

130218 20:45:42  mysqld ended

130218 20:45:42  mysqld started

php is not connecting to mysql server
Title: Re: Php not working
Post by: MRatWork on 2013-02-19, 00:34:58
Look like mysql running well but maybe something wrong with php*.mysql and php*.mysqli. Look like php54 not including this module when install or replace from other version.

Try 'yum install php54-mysql php54-mysqli'
Title: Re: Php not working
Post by: costa1988sv on 2013-02-19, 00:39:28
Transaction Check Error:
  file /etc/php.ini from install of php54-common-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-common-5.3.21-1.ius.el5.i386
  file /usr/lib/php/modules/curl.so from install of php54-common-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-common-5.3.21-1.ius.el5.i386
  file /usr/lib/php/modules/fileinfo.so from install of php54-common-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-common-5.3.21-1.ius.el5.i386
  file /usr/lib/php/modules/json.so from install of php54-common-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-common-5.3.21-1.ius.el5.i386
  file /usr/lib/php/modules/phar.so from install of php54-common-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-common-5.3.21-1.ius.el5.i386
  file /usr/lib/php/modules/zip.so from install of php54-common-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-common-5.3.21-1.ius.el5.i386
  file /usr/lib/php/modules/pdo.so from install of php54-pdo-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-pdo-5.3.21-1.ius.el5.i386
  file /usr/lib/php/modules/pdo_sqlite.so from install of php54-pdo-5.4.11-1.ius.el5.i386 conflicts with file from package php53u-pdo-5.3.21-1.ius.el5.i386
Title: Re: Php not working
Post by: MRatWork on 2013-02-19, 00:42:52
if using php53u, run 'yum install php53u-fpm'.

We can't use php-fpm from php53 to php54 and vice-versa.
Title: Re: Php not working
Post by: costa1988sv on 2013-02-19, 00:44:42
i work's thank you very much
Title: Re: Php not working
Post by: MRatWork on 2013-02-19, 00:48:34
There are something wrong with latest version of php54. Install/replace to php54 not including install php54-rpm.
Title: Re: Php not working
Post by: costa1988sv on 2013-02-19, 18:19:38
the error_reporting is not working
 Display Errors is on