MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: dpnux on 2013-04-25, 00:50:14

Title: Apache + PHP 5.3 : mod_suphp not found
Post by: dpnux on 2013-04-25, 00:50:14
Hi,

I am trying to use Apache, suphp and PHP 5.3. Secondary PHP is disabled and permission was also done with FIXALL. This is what I'm getting in when trying to restart all services

Code: [Select]
[root@local01 ~]# sh /script/restart-all
Stopping kloxo: Waiting for the process to die.....
Stopped kloxo

Starting kloxo: 11
Started kloxo

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/suphp.conf: Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
[root@local01 ~]#

and sysinfo says

Code: [Select]

A. Kloxo-MR: 6.5.1.a-2013042301

B. OS: CentOS release 5.9 (Final) i686

C. Apps:
   1. MySQL: mysql-5.0.95-5.el5_9
   2. PHP: php53-5.3.3-13.el5_8
   3. Httpd: httpd-2.2.24-1.el5
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.22.mr.el5
   7. Dns: bind-9.9.2-3.P2.el5

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:           502        402         99          0         55        234
   -/+ buffers/cache:        112        390
   Swap:         1023          0       1023


This is development version installed on my vbox but alas my production server has same problem to activate suPHP for PHP 5.3. I want PHP running as user and can write file / permission without being apache group or 775 permission. Do I miss some configuration / installed package to make it possible?
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: MRatWork on 2013-04-25, 01:47:21
Error 'Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so' look like suphp rpm unsuccessful install.

Try:
Code: [Select]
# try install again suphp - make sure on 'web server configs' where php-type as mod_suphp_event/_worker
yum install mod_suphp

# to make sure set config like initial configs for web server
sh /script/cleanup

# fix web configs
sh /script/fixweb

# restart services
sh /script/restart-all
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: dpnux on 2013-04-25, 05:02:39
yum install mod_suphp doesn't work while using PHP 5.3 branch. Conflict between php53-common and php-common.

So, I tried to use php53u as php branch and suphp as php type. This combination is running as expected including writing to file / folder as user.
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: MRatWork on 2013-04-25, 09:24:41
Much better using php52, php53u and php54 (taken from IUS) instead from other (example from CentAlt and others).
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: dpnux on 2013-04-25, 23:28:58
After several hours, 500 internal server error came up. Because the production is slave server, I tried fix it (fixweb and fixphp) from master terminal. It back to normal for seconds and 500 internal server error keeps coming back.

I got stuck and choose fcgid_event for moment so website beneath it could be serve. I also tried to upgrade the master to the latest final release via yum update but not yet solving the problem.
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: Viking on 2013-04-25, 23:39:14
mod_suphp a long time does not work in Kloxo-MR.
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: Spacedust on 2013-04-26, 00:35:37
Quote from: "dpnux"
After several hours, 500 internal server error came up. Because the production is slave server, I tried fix it (fixweb and fixphp) from master terminal. It back to normal for seconds and 500 internal server error keeps coming back.

I got stuck and choose fcgid_event for moment so website beneath it could be serve. I also tried to upgrade the master to the latest final release via yum update but not yet solving the problem.

Do you have more than 300-350 virtual hosts ? Then it's mod_fastcgi problem. See my posts. You must compile your own mod_fastcgi package.
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: dpnux on 2013-04-27, 01:47:40
Quote from: "Spacedust"
Do you have more than 300-350 virtual hosts ? Then it's mod_fastcgi problem. See my posts. You must compile your own mod_fastcgi package.

I just have 2 virtual hosts on that slave server for this moment. I will try to compile and maybe reload the server if didn't solve. :)
Title: Re: Apache + PHP 5.3 : mod_suphp not found
Post by: Spacedust on 2013-04-27, 02:23:04
Quote from: "dpnux"
Quote from: "Spacedust"
Do you have more than 300-350 virtual hosts ? Then it's mod_fastcgi problem. See my posts. You must compile your own mod_fastcgi package.

I just have 2 virtual hosts on that slave server for this moment. I will try to compile and maybe reload the server if didn't solve. :)

Use php_fpm it works great.