Apache 2.0.5 Crashing "Segmentation fault"
Moderators: Developers, Moderators
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
Apache 2.0.5 Crashing "Segmentation fault"
CentOS 4.2
HTTPD 2.0.52 (yum installed)
PHP 4.3.9 (yum installed)
When I point a browser to the /cacti subfolder I get nothing and /var/log/httpd/error_log records this:
[notice] child pid ##### exit signal Segmentation fault (11)
This error is also returned (to stdout) when I manually execute the crontab's php command.
PHP returns phpinfo(); and phpinfo(INFO_MODULES); fine...
Any suggestions?
HTTPD 2.0.52 (yum installed)
PHP 4.3.9 (yum installed)
When I point a browser to the /cacti subfolder I get nothing and /var/log/httpd/error_log records this:
[notice] child pid ##### exit signal Segmentation fault (11)
This error is also returned (to stdout) when I manually execute the crontab's php command.
PHP returns phpinfo(); and phpinfo(INFO_MODULES); fine...
Any suggestions?
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
rrdtool compile problem?
It occurs to me that I manually downloaded and compiled rrdtool-1.2.12. I am already using it for other things, so I don want o downgrade and have compatibility issues. It is installed to /usr/local/rrdtool-1.2.12/. I don't remember what configure options I used, but I am guessing they were the defaults based on the install location. Is it possible that I need to compile it again with an option I originally missed (didn't know I needed) that might be causing this problem?
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
I didn't want to do that because the dag repository contains version 1.0 and I have 1.2 installed. Now that I think about it, though, 1.2 is installed in a custom location not included in the path variables, and rpm won't know it is there, so perhaps the two won't conflict (as the 1.2 version must be pionted at from config files where it is being used). I will post again with the result.
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
rpm install did not resolve issue
I have determined that the problem lies with php and not rrdtool or apache. I removed php4 via rpm and installed php5 manually using this config command:
Now I get this error when I try to go to cacti:
Any suggestions?
Code: Select all
./configure --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --prefix=/usr --enable-force-cgi-redirect --disable-debug --enable-pic --enable-inline-optimization --with-bz2 --with-db4 --with-curl --with-exec-dir=/usr/bin --with-freetype --with-png --with-gd=shared --enable-gd-native-ttf --with-gdbm --with-gettext --with-ncurses=shared --with-gmp --with-iconv --with-jpeg --with-openssl --with-png --with-pspell --with-xml --with-expat --with-dom --with-dom-xslt --with-dom-exslt --with-xmlrpc=shared --with-pcre-regex --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mysql --with-mssql--with-mhash --with-pgsql=shared --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC-dir=/usr/include --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mbstring=shared --enable-mbstr-enc-trans --enable-mbregex --with-mime-magic
Code: Select all
Fatal error: Call to undefined function mysql_pconnect() in cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
Another interesting tidbit... Look what happens here (at a command line)...
I still need help, I had Cacti going on a previous machine, but this one hates the idea with a passion... Help!
Code: Select all
[17:37:46] admin@localhost ~> sudo php /usr/local/cacti/poller.php
X-Powered-By: PHP/5.1.2
Content-type: text/html
<br><strong>This script is only meant to run at the command line.</strong>[17:37:57] admin@localhost - ~>
Re: rpm install did not resolve issue
I'm assuming you already turned off SELinux? I have mine working on CentOS 4.2 with MySQL 4. I havn't tried rrdtool 1.2, but they do actually have an RPM version only downloadable from the DAG website and not through yum. Maybe that would work better?The00Dustin wrote:Any suggestions?Code: Select all
Fatal error: Call to undefined function mysql_pconnect() in cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
Actually, the dag archive works through yum and I was able to install Cacti that way, it just wasn't there yet last time I installed cacti on a server. I still had the same issues that I had originally, but yum installed php right this time around (no idea why it didn't the first time) and after manually istalling cacti from the tarball, everything is working. Well, actually, the poller isn't working, but I haven't fought with it yet. I'm guessing that it would be working if I wasn't trying to use cactid, but I don't know. Oh, and SELinux is off. Thanks for the tips, though.
Who is online
Users browsing this forum: No registered users and 0 guests