DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th September 2011
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Default Installing Cacti on OpenBSD 4.9

Hey guys, long time, little talk... I've been busy with lotsa stuff, but I still work in the shadows with BSD... and I made a guide along the way to solidify my Cacti installations. Cacti was the last application that I couldn't really run on OpenBSD (in the past) because of performance differences between it and Linux-based OS's that I could never pin down.

But I've noticed that since at least 4.7 things have improved significantly... so here's my 4.9 guide.

http://www.dannosite.com/?q=node/123


If you want I can try to reformat things for a post here, but it might be a bit tedious. Lemme know.
__________________
Network Firefighter
Reply With Quote
  #2   (View Single Post)  
Old 17th September 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Ai-danno,

You have a nice, useful OpenBSD related website (I hope it will grow) and very, very beautiful kids.

Best,
Oko
Reply With Quote
  #3   (View Single Post)  
Old 17th September 2011
badguy badguy is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: MD, USA
Posts: 59
Default

Quote:
Originally Posted by ai-danno View Post
I made a guide along the way to solidify my Cacti installations.

nice post. out of curiosity do you know any reason why one would encounter an internal server error while trying to access the cacti site?

HTTP Error 500 (Internal Server Error):

httaccess, php.ini configuration, permission? so many things come to my mind and i have teaked and tweaked trying all i think about but still get the error.

http error_log shows "File does not exist: /var/www/htdocs/favicon.ico" and even after manually copying file to that location to try out i still get same error.
Reply With Quote
  #4   (View Single Post)  
Old 17th September 2011
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Default

To Oko, thanks for the kind words! Years ago my site was centered around Riverstone switch-routers, but has now morphed into a pro-OBSD site.

To badguy, I would suggest-
- tail -20 /var/www/logs/error and /var/www/logs/access immediately after attempting to surf the page. Your best clues can be found there. The access log can indicate whether a page you surfed to attempted to call another that might not show in the error logging file.

- if this is Cacti, ensure that mysql is running, or that your Cacti configuration file is pointing to the correct location of the db with the correct credentials (though normally that will be plain as day to see).

- confirm your two root locations in your httpd.conf file, especially document root. Be sure it's pointing to the right place. That's one possibility to answer the oddity of your ico error message.

- confirm you are either properly configured for chroot'd hosting, or that you are executing httpd with the -u option. That's the other, and possibly more likely explanation for your ico and 500 errors. This is my gut feeling for the actual problem.

There were a few other things that came to mind... and slipped away just as quickly, I'll try to remember them and post back.
__________________
Network Firefighter
Reply With Quote
  #5   (View Single Post)  
Old 17th September 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I don't use Cacti, but, I remember you ai-danno. Hope you're doing well. Glad to see that you're lurking again.
Reply With Quote
  #6   (View Single Post)  
Old 18th September 2011
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Default

Quote:
Originally Posted by BSDfan666 View Post
I don't use Cacti, but, I remember you ai-danno. Hope you're doing well. Glad to see that you're lurking again.
Thanks for the kind words, it's good to hear from you, too.
__________________
Network Firefighter
Reply With Quote
  #7   (View Single Post)  
Old 23rd September 2011
badguy badguy is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: MD, USA
Posts: 59
Default

Ok so I think I figured out the problem (or at least it works now). Apparently it seems like i did not have the correct php modules installed/setup correctly.

"php -m" did not show mysql and snmp even though they were in the php extension directory

Quote:
root@localhost/tmp #ls /var/www/lib/php/modules
gd.so mysql.so snmp.so
So I added these two lines to my php.ini file

Code:
extension=mysql.so
extension=snmp.so
and confirmed that the directory in which the loadable extensions resides was correct.

Code:
extension_dir = "/var/www/lib/php/modules"
And now it works. The install instruction says to make sure these modules are there but but i did not expect it to be a big deal. now i know better
Reply With Quote
Reply

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
Question about installing OpenBSD as Firewall afcelie OpenBSD Installation and Upgrading 12 3rd January 2011 09:18 PM
OpenBSD installing OpenBSD from USB ocicat News 5 5th April 2010 10:51 PM
Installing packages from USB drive (OpenBSD 4.5) divadgnol67 OpenBSD Packages and Ports 26 30th July 2009 04:21 PM
installing openbsd bsdnewbie999 OpenBSD Installation and Upgrading 12 4th May 2009 11:55 AM
Cacti performance OBSD vs. CentOS ai-danno General software and network 8 3rd July 2008 08:51 PM


All times are GMT. The time now is 10:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick