Suse 10.1 php 5.1.2 & mysql 5.0.18 blank page cacti 0.8.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Nitro
Posts: 5
Joined: Thu Feb 10, 2005 8:31 am

Suse 10.1 php 5.1.2 & mysql 5.0.18 blank page cacti 0.8.

Post by Nitro »

cacti 0.8.6h

Its all I get

I have tried upgrading from my old working install which was under suse 10.0 php4/mysql4. No go

I have tried clean and I have finally tried the suse packaged edition. I have also tried the latest branch from svn.

All give the same results blank white page, except if I append the index.php to the path then it tries to download the file as though php was not enabled in apache2, yet I have several other php applications working so I know php5 is on and fine.

I have read several threads with some similar issues whereby many say "got it working" but they forget so often to say what was done. :/

Any help on resolving this would be greatly appreciated.

TIA
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That sounds like you do not have PHP installed and configured.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Nitro
Posts: 5
Joined: Thu Feb 10, 2005 8:31 am

Post by Nitro »

<snip>yet I have several other php applications working so I know php5 is on and fine. </snip

Like vbulletin and several addons, postnuke, open media database, jinzora, php info page works fine. Are there any special php settings which may be disabled and would cause this to occur with cacti and no other application ?

TIA
Brwi
Posts: 4
Joined: Mon Jul 24, 2006 2:14 am
Location: France

Post by Brwi »

Did you try this ?

Hope it helps !
Nitro
Posts: 5
Joined: Thu Feb 10, 2005 8:31 am

Post by Nitro »

While trying to apply the .patch file I get 4 hunk failures.

The other patch file wont have any effect until I have it installed again as I have dumped the old data and db anyway as it was relevent to an old router.

Checking my apache2 error_log When I try to load the cacti install I get a seg fault so it seems the issue of the seg fault still exists in some setups.

Code: Select all

[Fri Jul 28 10:52:20 2006] [notice] child pid 26069 exit signal Segmentation fault (11)
.

I would say this is also why it then pops up a window to download the index.php file if I append that to the url as the apache server child process terminates and the browser goes for the file. The downloaded file appears to be empty of content. If it was apache not having php integrated and configured it would usually permit the download of the file with content.
applesx
Posts: 8
Joined: Tue Jun 21, 2005 10:29 am

Post by applesx »

I have the same issue with SLES 10, PHP 5.1.2 and MySQL 5.0.18.

I get a blank page, the apache log says:

Tue Aug 08 08:12:42 2006] [notice] child pid 4052 exit signal Segmentation fault (11)

When I run manually I get:

>php5 /srv/www/htdocs/cacti/poller.php
Segmentation fault

I've tried the patches above as well. The mysql_5x_strict.patch is fine, but when I run php MySQL-5x-Patch.php I just get the segmentation fault again.

Did you get anywhere Nitro?
applesx
Posts: 8
Joined: Tue Jun 21, 2005 10:29 am

Post by applesx »

Bump.......


Anyone have any troubleshooting ideas? I ran the php -a but it doesn't show any indication of the problem. It just says aborted at the end.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

do the following:

mysql cacti
> show tables;
> select * from settings;

Paste your output.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
applesx
Posts: 8
Joined: Tue Jun 21, 2005 10:29 am

Post by applesx »

mysql> show tables;
+---------------------------+
| Tables_in_cactidb |
+---------------------------+
| cdef |
| cdef_items |
| colors |
| data_input |
| data_input_data |
| data_input_fields |
| data_local |
| data_template |
| data_template_data |
| data_template_data_rra |
| data_template_rrd |
| graph_local |
| graph_template_input |
| graph_template_input_defs |
| graph_templates |
| graph_templates_gprint |
| graph_templates_graph |
| graph_templates_item |
| graph_tree |
| graph_tree_items |
| host |
| host_graph |
| host_snmp_cache |
| host_snmp_query |
| host_template |
| host_template_graph |
| host_template_snmp_query |
| poller |
| poller_command |
| poller_item |
| poller_output |
| poller_reindex |
| poller_time |
| rra |
| rra_cf |
| settings |
| settings_graphs |
| settings_tree |
| snmp_query |
| snmp_query_graph |
| snmp_query_graph_rrd |
| snmp_query_graph_rrd_sv |
| snmp_query_graph_sv |
| user_auth |
| user_auth_perms |
| user_auth_realm |
| user_log |
| version |
+---------------------------+


mysql> select * from settings;
Empty set (0.00 sec)


Thanks for looking into this!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Goto the user interface and browse around a bit. Then goto settings and verify your configuration. My guess is that your system is not accurate. It may be that the Web user does not have access to the tables, as the settings table should 'not' be empty.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
applesx
Posts: 8
Joined: Tue Jun 21, 2005 10:29 am

Post by applesx »

I can't get into the user interface. Just a blank page and Apache error.
applesx
Posts: 8
Joined: Tue Jun 21, 2005 10:29 am

Post by applesx »

oh jeez..........I finally just noticed that in my config.php I had set the $database_default = ""; to cacti, when I actually called the database cactidb.


Ridiculous. Thanks for making me re-look at some of my settings again. I've looked over that config file dozens of times while troubleshooting this and now my brain finally notices the error.

It's still weird though, you think I would have got a php error about not being able to connect to the db, not just a segmentation fault.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your welcome.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Nitro
Posts: 5
Joined: Thu Feb 10, 2005 8:31 am

Post by Nitro »

As it happens I just got back of holiday a few days ago, looked at this again yesterday and imported the clean cacti mysql data manually from the install file and it seems to load fine now. Doesnt this not install the sql during install normally been a while since I actually installed. If not /me kicks me for not re Reading TFM. :)

I think I will be looking at other questions becasue my new prosafe netgear router seems to not be as I am used to :/ My old router was also suse but I decided since higher spec routers have come down in prices I should be able to get away with dropping back down to a pre built unit. Another thread tho. :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests