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-28, 01:24:40

Author Topic: Apache + PHP 5.3 : mod_suphp not found  (Read 5615 times)

0 Members and 1 Guest are viewing this topic.

Offline dpnux

  • Junior Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Apache + PHP 5.3 : mod_suphp not found
« 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?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #1 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
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline dpnux

  • Junior Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #2 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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #3 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).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline dpnux

  • Junior Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #4 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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #5 on: 2013-04-25, 23:39:14 »
mod_suphp a long time does not work in Kloxo-MR.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #6 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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline dpnux

  • Junior Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #7 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. :)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache + PHP 5.3 : mod_suphp not found
« Reply #8 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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


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

Page created in 0.031 seconds with 18 queries.

web stats analysis