Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd July 2006, 09:04
AlecWeb AlecWeb is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Segmentation fault with /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.

Hi!

I get a segmentation fault while running /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php on a brand new dell-rackserver with CentOS 4.3. I did a memtest during 9hours, with no errors.

So I think there is something wrong with ISPConfig deamon. When rebooting/restarting the ISPConfig doesn't give an error on the screen. Please help me, I just don't want to install VHCS because of a stupid segmentation fault. ISPConfig is just great ;-) Thanks for the hard job guys

Running:
Code:
[root@toucan ~]# /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
start
Segmentation fault
I did an
Code:
strace /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
, and this is what I get:
Code:
read(5, "################################"..., 8192) = 298
close(5)                                = 0
time(NULL)                              = 1153637428
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat64("/etc/postfix", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/postfix/virtusertable", {st_mode=S_IFREG|0644, st_size=473, ...}) = 0
open("/etc/postfix/virtusertable", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=473, ...}) = 0
lseek(5, 0, SEEK_CUR)                   = 0
stat64("/etc/postfix/virtusertable", {st_mode=S_IFREG|0644, st_size=473, ...}) = 0
read(5, "################################"..., 8192) = 473
close(5)                                = 0
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
fcntl64(4, F_SETFL, O_RDWR)             = 0
write(4, "\r\0\0\0\2db_ispconfig", 17)  = 17
read(4, "\7\0\0\1", 4)                  = 4
read(4, "\0\0\0\2\0\0\0", 7)            = 7
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
fcntl64(4, F_SETFL, O_RDWR)             = 0
write(4, "\312\0\0\0\3SELECT * from isp_isp_web, "..., 206) = 206
read(4, "\1\0\0\1", 4)                  = 4
read(4, "I", 1)                         = 1
read(4, "D\0\0\2", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 68) = 68
read(4, "L\0\0\3", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
read(4, "H\0\0\4", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 72) = 72
read(4, "L\0\0\5", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
<.....>
read(4, ">\0\0J", 4)                    = 4
read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 62) = 62
read(4, "\1\0\0K", 4)                   = 4
read(4, "\376", 1)                      = 1
read(4, "\5\0\0L", 4)                   = 4
read(4, "\376\0\0\"\0", 5)              = 5
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
fcntl64(4, F_SETFL, O_RDWR)             = 0
write(4, "\r\0\0\0\2db_ispconfig", 17)  = 17
read(4, "\7\0\0\1", 4)                  = 4
read(4, "\0\0\0\2\0\0\0", 7)            = 7
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(4, 0x86f7520, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
fcntl64(4, F_SETFL, O_RDWR)             = 0
write(4, "\313\0\0\0\3SELECT * from isp_isp_web, "..., 207) = 207
read(4, "\1\0\0\1", 4)                  = 4
read(4, "I", 1)                         = 1
read(4, "D\0\0\2", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 68) = 68
read(4, "L\0\0\3", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
read(4, "H\0\0\4", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 72) = 72
read(4, "L\0\0\5", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 76) = 76
read(4, "P\0\0\6", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 80) = 80
read(4, "N\0\0\7", 4)                   = 4
read(4, "\3def\fdb_ispconfig\visp_isp_web\vis"..., 78) = 78
read(4, "F\0\0\10", 4)                  = 4
<...>
read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 62) = 62
read(4, "@\0\0I", 4)                    = 4
read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 64) = 64
read(4, ">\0\0J", 4)                    = 4
read(4, "\3def\fdb_ispconfig\tisp_nodes\tisp_"..., 62) = 62
read(4, "\1\0\0K", 4)                   = 4
read(4, "\376", 1)                      = 1
read(4, "9\1\0L", 4)                    = 4
read(4, "\0014\0041013\3www\ralexdomain.be\00210\003100"..., 313) = 313
read(4, "\5\0\0M", 4)                   = 4
read(4, "\376\0\0\"\0", 5)              = 5
brk(0x887e000)                          = 0x887e000
<...>
brk(0x898d000)                          = 0x898d000
brk(0x89ae000)                          = 0x89ae000
mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d31000
brk(0x89cf000)                          = 0x89cf000
brk(0x89f0000)                          = 0x89f0000
brk(0x8a11000)                          = 0x8a11000
mmap2(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ce4000
brk(0x8a32000)                          = 0x8a32000
<...>
brk(0x8ad7000)                          = 0x8ad7000
mremap(0xb7d31000, 135168, 270336, MREMAP_MAYMOVE) = 0xb7ca2000
brk(0x8af8000)                          = 0x8af8000
<...>
brk(0x8bbe000)                          = 0x8bbe000
brk(0x8bdf000)                          = 0x8bdf000
mremap(0xb7ce4000, 139264, 278528, MREMAP_MAYMOVE) = 0xb7c5e000
brk(0x8c00000)                          = 0x8c00000
<....>
brk(0x8d8c000)                          = 0x8d8c000
brk(0x8dad000)                          = 0x8dad000
mremap(0xb7ca2000, 270336, 536576, MREMAP_MAYMOVE) = 0xb7bdb000
brk(0x8dce000)                          = 0x8dce000
brk(0x8def000)                          = 0x8def000
brk(0x8e10000)                          = 0x8e10000
<...>
brk(0x8f9c000)                          = 0x8f9c000
mremap(0xb7c5e000, 278528, 552960, MREMAP_MAYMOVE) = 0xb7c5e000
brk(0x8fbd000)                          = 0x8fbd000
brk(0x8fde000)                          = 0x8fde000
brk(0x8fff000)                          = 0x8fff000
brk(0x9020000)                          = 0x9020000
brk(0x9041000)                          = 0x9041000
brk(0x9062000)                          = 0x9062000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 3707 detached
Reply With Quote
Sponsored Links
  #2  
Old 23rd July 2006, 09:27
AlecWeb AlecWeb is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just an extra thought:

1) I edited the prefix to [DOMAIN]_ instead of web[WEBID]_
2) I disabled SELinux
Reply With Quote
  #3  
Old 23rd July 2006, 11:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,430
Thanks: 813
Thanked 5,208 Times in 4,084 Posts
Default

Quote:
Originally Posted by AlecWeb
So I think there is something wrong with ISPConfig deamon. When rebooting/restarting the ISPConfig doesn't give an error on the screen. Please help me, I just don't want to install VHCS because of a stupid segmentation fault. ISPConfig is just great ;-) Thanks for the hard job guys
This is a problem with PHP 5.1 that occurs on some servers, if you check the PHP bugtracker you will find lots of errors that result in segfaults.

Please have a look here:

http://www.howtoforge.com/forums/showthread.php?t=3695

The hotfix (PHP downgrade) works also with the latest ISPConfig release.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 23rd July 2006, 11:35
AlecWeb AlecWeb is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

still got an error after downgrading.

Could another operating system solve the problem?
Reply With Quote
  #5  
Old 24th July 2006, 16:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Quote:
Originally Posted by AlecWeb
Could another operating system solve the problem?
A clean reinstall or another distribution could solve the problem.
__________________
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
  #6  
Old 28th July 2006, 20:25
twarnick twarnick is offline
Junior Member
 
Join Date: Mar 2006
Location: Germany
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to twarnick Send a message via Skype™ to twarnick
Default

Quote:
Originally Posted by AlecWeb
still got an error after downgrading.

Could another operating system solve the problem?
have a look at http://www.howtoforge.com/forums/sho...d_zonefile_dir

after i insert the server_bind_zonefile_dir in the mysql manualy it all works and no "Segmentation fault"
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
Ubunt 6.06, Quota, Segmentation Fault eldaria HOWTO-Related Questions 3 23rd June 2006 00:09
segmentation fault hotchilli Installation/Configuration 5 30th March 2006 22:29
segmentation fault part 2 hotchilli Installation/Configuration 0 30th March 2006 16:01
Segmentation Fault during Installation 7son7son Installation/Configuration 1 23rd February 2006 22:47
PHP version... ctroyp Installation/Configuration 102 10th November 2005 13:24


All times are GMT +2. The time now is 10:30.


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