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 29th May 2009, 14:11
clanx clanx is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default Segfault on Fedora 8 with ISPConfig 2.2.32

Hi,

My system as follows :

Fedora Core 8 (End of life - I know)
PHP 5.2.6
ISPConfig 2.2.32
MySQL 5.0.45
BIND 9.5.0-P2

The Problem :

I found that emptying recycle bin in DNS Manager wont work. I have several domains lying around in the bin but upon emptying nothing happens.

The domain still exist in recycle bin.

Error Logs

I notice the following when running php from the command line

[root@project ispconfig]# /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
start
Segmentation fault

So I have check the log files below.

Nothing is showing in my ispconfig.log error logs but some INFO message appers :
Quote:
29.05.2009 - 19:05:31 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
29.05.2009 - 19:05:31 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
29.05.2009 - 19:05:31 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
29.05.2009 - 19:05:31 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1268: cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
29.05.2009 - 19:09:33 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
29.05.2009 - 19:09:33 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
29.05.2009 - 19:09:33 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
29.05.2009 - 19:09:33 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1268: cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
29.05.2009 - 19:39:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
29.05.2009 - 19:39:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
29.05.2009 - 19:39:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
29.05.2009 - 19:39:07 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1268: cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
29.05.2009 - 19:39:08 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /etc/rc.d/init.d/httpd restart &> /dev/null
29.05.2009 - 19:39:08 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /etc/rc.d/init.d/postfix stop &> /dev/null
29.05.2009 - 19:39:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /etc/rc.d/init.d/postfix start &> /dev/null
29.05.2009 - 19:39:12 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /etc/rc.d/init.d/named restart &> /dev/null
29.05.2009 - 19:39:13 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /etc/rc.d/init.d/proftpd restart &> /dev/null
[root@project ispconfig]#
Mean while my /var/log/messages shows a scary error message

Quote:
May 29 19:58:45 project kernel: php[1208]: segfault at bf152fe0 ip 0832ffa7 sp bf152fd0 error 6 in php[8048000+62e000]
What to do next ?
Any advise ? If possible I need to clear off the old DNS entries in recycle bin in order to add new DNS name. This is a priority.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 29th May 2009, 18:24
clanx clanx is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default

Allright, after further checking, I found that my settings for DNS is not what it should be

Under Management -> Server -> Settings -> DNS, Zonefiles Dir. shows to invalid path /etc/bind

No idea how, when and who changed it.

I believe it should be pointing to /var/named/chroot/var/named

So I decide to change it and hit the save button but ISPConfig still shows the old settings, seems no update is getting saved on the system.

Again check the logs files reveals me the same error :

Quote:
May 30 00:17:01 project kernel: php[13109]: segfault at bf129fe0 ip 0832f97e sp bf129fb0 error 6 in php[8048000+62e000]
May 30 00:20:01 project kernel: php[13189]: segfault at bf30bfe8 ip 0830ac77 sp bf30bfe0 error 6 in php[8048000+62e000]
May 30 00:22:12 project kernel: php[13238]: segfault at bf001fc0 ip 0832f97e sp bf001f90 error 6 in php[8048000+62e000]
Any suggestions ? I guess the real problem lies on the incorrect Zonefiles pointing that causing segfault issue.

Appreciate some advise.
Reply With Quote
  #3  
Old 29th May 2009, 19:04
clanx clanx is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ok, I answering to my own problem now.

Thank lord manage to get the issue fixed.

So FYI to everyone who get segfault issue on FC8 or equivalent, the root caused of the problem is because your ISPConfig config file is not properly setup. Example in my case DNS Zone file is pointed in wrong folder.

So the solution to this is to change some permission, restart named and re-edit the DNS settings and magically it get saved this time.

Here is the step

1. Change permission on named, just to make sure permission is in place
Quote:
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
2. Restart named service to take effects on the permission changes (if any)
Quote:
service named restart
3. Go to Management -> Server -> Settings -> DNS, Zonefiles Dir. and change the setting to :

Quote:
/var/named/chroot/var/named
save it.

As for now, no more segfault issue and my web server is back to working condition.

P/s : Still I'm curious how my Zonefile settings somehow change it self, either because of ISPConfig upgrade ? Maybe FC users out there can share if you face the same problem.

Thanks
Reply With Quote
The Following User Says Thank You to clanx For This Useful Post:
falko (30th May 2009)
  #4  
Old 30th May 2009, 12:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

Quote:
Originally Posted by clanx View Post
Still I'm curious how my Zonefile settings somehow change it self, either because of ISPConfig upgrade ?
When exactly do they change? I guess it was a permissions problem and should be fixed now because of what you did in step 1.
__________________
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
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
ISPConfig and Fedora startx Mr. Print General 3 17th May 2009 15:50
Ispconfig 2.2.32 - "used" space more than "storage" space Teddy_2009 General 2 20th April 2009 07:52
ISPConfig 3.0.1 released till General 36 29th March 2009 14:30
ISPConfig 3.0.0.7 Beta released till General 78 24th December 2008 11:47
fedora - upgrade. is ispconfig going to work ? sygram Installation/Configuration 3 4th September 2007 18:44


All times are GMT +2. The time now is 14:09.


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