Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th January 2012, 06:57
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Question The Perfect Server - CentOS 6.2 x86_64 With Apache2 [ISPConfig 3] - SUPHP

While performing Step 15 ("Installing Apache2 With mod_php, mod_fcgi/PHP5, And suPHP ") of "The Perfect Server - CentOS 6.2 x86_64 With Apache2 [ISPConfig 3]" phpMyAdmin stopped working. In fact, every time that I access phpMyAdmin, one of Apache's child processes dies:

Code:
[eric@ispconfig-1 suphp-0.7.1]$ sudo tail -f /var/log/httpd/error_log
...
[Thu Jan 12 21:35:38 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Thu Jan 12 21:35:52 2012] [notice] child pid 2145 exit signal Segmentation fault (11)
[Thu Jan 12 21:36:51 2012] [notice] child pid 2146 exit signal Segmentation fault (11)
[Thu Jan 12 21:36:55 2012] [notice] child pid 2147 exit signal Segmentation fault (11)
I created the configuration file for suphp using the sample file (/tmp/suphp-0.7.1/doc/suphp.conf-example) and modified according to the recipe (e.g., webserver_user=apache)...

Code:
[global]
;Path to logfile
logfile=/var/log/httpd/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/var/www:${HOME}/public_html

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0077

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100

[handlers]
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
Any ideas what might be causing this?
__________________
Eric Pretorious,
Truckee, CA

Last edited by epretorious; 13th January 2012 at 07:04. Reason: Added post icon
Reply With Quote
Sponsored Links
  #2  
Old 13th January 2012, 07:02
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Exclamation

This problem persists even after removing the suphp configuration file and restarting apache!
Code:
[eric@ispconfig-1 suphp-0.7.1]$ sudo mv /etc/httpd/conf.d/suphp.conf ~

[eric@ispconfig-1 suphp-0.7.1]$ sudo service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

[eric@ispconfig-1 suphp-0.7.1]$ sudo tail -f /var/log/httpd/error_log
[Thu Jan 12 21:49:49 2012] [notice] caught SIGTERM, shutting down
[Thu Jan 12 21:49:50 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Thu Jan 12 21:49:50 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 12 21:49:50 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 12 21:49:50 2012] [notice] Digest: done
[Thu Jan 12 21:49:51 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Thu Jan 12 21:49:57 2012] [notice] child pid 2249 exit signal Segmentation fault (11)
__________________
Eric Pretorious,
Truckee, CA

Last edited by epretorious; 13th January 2012 at 07:06. Reason: Including the command+output from restarting Apache
Reply With Quote
  #3  
Old 13th January 2012, 12:57
eddie303 eddie303 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

Same happens here as well. Friday the 13th. Let's go and try it without suphp Maybe drink some beer
Reply With Quote
  #4  
Old 13th January 2012, 13:20
eddie303 eddie303 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

After a while of trial and error, it turns out to be eaccelerator the problem... After removing it, everything starts to work magically....
Reply With Quote
The Following User Says Thank You to eddie303 For This Useful Post:
epretorious (13th January 2012)
  #5  
Old 13th January 2012, 17:30
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Thumbs up

Quote:
Originally Posted by eddie303 View Post
After a while of trial and error, it turns out to be eaccelerator the problem... After removing it, everything starts to work magically....
Works for me too:
Code:
[eric@ispconfig-1 ~]$ sudo yum erase `rpm -qa | grep accel`
Loaded plugins: fastestmirror, priorities, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package php-eaccelerator.i686 1:0.9.6.1-1.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================
 Package          Arch        Version             Repository            Size
==============================================================================
Removing:
 php-eaccelerator i686        1:0.9.6.1-1.el6     @epel                 313 k

Transaction Summary
==============================================================================
Remove        1 Package(s)

Installed size: 313 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : 1:php-eaccelerator-0.9.6.1-1.el6.i686                    1/1

Removed:
  php-eaccelerator.i686 1:0.9.6.1-1.el6

Complete!

[eric@ispconfig-1 ~]$ sudo mv suphp.conf /etc

[eric@ispconfig-1 ~]$ sudo service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Thanks, Eddie!
__________________
Eric Pretorious,
Truckee, CA

Last edited by epretorious; 13th January 2012 at 17:31. Reason: Whitespace
Reply With Quote
  #6  
Old 16th January 2012, 23:23
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Question

Quote:
Originally Posted by eddie303 View Post
After a while of trial and error, it turns out to be eaccelerator the problem... After removing it, everything starts to work magically....
Quote:
Originally Posted by epretorious View Post
Works for me too...
Hey, Falko:

Any ideas why eaccelertor is causing segmentation faults? What do you recommend? Is eacelerator important/necessary? What should we do?
__________________
Eric Pretorious,
Truckee, CA
Reply With Quote
  #7  
Old 17th January 2012, 14:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

If eAccelerator is giving you problems, you can use APC or Xcache instead. All three are PHP opcode caches that speed up PHP execution a lot, therefore it's strongly recommmended to have one installed.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 18th January 2012, 04:27
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Question

Quote:
This tutorial shows how to prepare a CentOS 6.2 x86_64 server for the installation of ISPConfig 3...
Any idea why eAccelerator isn't working on Centos 6.2 (x86_64), Falko?
__________________
Eric Pretorious,
Truckee, CA
Reply With Quote
  #9  
Old 18th January 2012, 19:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

No, but as I've mentioned before, you can replace it with Xcache or APC.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 18th January 2012, 19:49
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
 
Exclamation

Quote:
Originally Posted by falko View Post
No, but as I've mentioned before, you can replace it with Xcache or APC.
Hey, Falko:

I guess that my point here is that I installed eAccelerator (as per the HOWTO) and it didn't work so I'm hoping that you might know why.
__________________
Eric Pretorious,
Truckee, CA
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 mail doesn't work pehden Installation/Configuration 20 9th December 2013 14:05
The Perfect Server - CentOS 6.0 x86_64 [ISPConfig 3] de Freitas Installation/Configuration 1 11th October 2011 20:12
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 10:49
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 16:22


All times are GMT +2. The time now is 01:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.