Installing PHP on Solaris 10

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
thom_crus0123
Posts: 6
Joined: Mon Jul 07, 2014 3:53 am

Installing PHP on Solaris 10

Post by thom_crus0123 »

I have already installed nagios on a solaris server but when i opened it on a browser http://IP_Address_of_Nagios_server/nagios the error is "Internet Explorer cannot display the webpage". I checked the index files and it has a php files. So my question is do i need to install PHP on my solaris? If yes, do i need to install the below dependencies?
peg-8d
curl-7.26.0
freetype-2.4.2
libidn-1.25
libssh2-1.4.2
gd-2.0.35
freetds-0.91
libxml2-2.8.0

If yes again, where can i download them free? it seems sunfreeware is not free anymore. Thank you so much in advance :-)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Installing PHP on Solaris 10

Post by slansing »

Yes, you will need PHP amongst other things, I suggest you look at the pre-requisite packages listed at the top of this document. Yes, it is inteded for RHEL/Ubuntu/CENTOS but you will need the same packages in their Solaris variation.

http://assets.nagios.com/downloads/nagi ... Source.pdf
thom_crus0123
Posts: 6
Joined: Mon Jul 07, 2014 3:53 am

Re: Installing PHP on Solaris 10

Post by thom_crus0123 »

Thank you...Actually im a newbie so can you teach me how to install php on solaris 10? where can i get the installer? Thanks in Advance :-)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing PHP on Solaris 10

Post by lmiltchev »

I am not a Solaris expert and haven't installed php on Solaris 10, but there are some online guides that you can follow. This is one, that I found - I hope it helps.
http://ansarii.wordpress.com/2011/05/25 ... olaris-10/
Be sure to check out our Knowledgebase for helpful articles and solutions!
thom_crus0123
Posts: 6
Joined: Mon Jul 07, 2014 3:53 am

Re: Installing PHP on Solaris 10

Post by thom_crus0123 »

Thank you lmiltchev for the info. By the way, do i need to install mysql to run the nagios system? Thanks in advance :-)
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Installing PHP on Solaris 10

Post by sreinhardt »

You do not need mysql for a base nagios core installation.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
thom_crus0123
Posts: 6
Joined: Mon Jul 07, 2014 3:53 am

Re: Installing PHP on Solaris 10

Post by thom_crus0123 »

Where can i get the php installer on my solaris 10? Thank you so much
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Installing PHP on Solaris 10

Post by tmcdonald »

PHP source is here:

http://us3.php.net/get/php-5.2.17.tar.gz/from/a/mirror

The guide lmiltchev posted should be enough to get you installed.
Former Nagios employee
thom_crus0123
Posts: 6
Joined: Mon Jul 07, 2014 3:53 am

Re: Installing PHP on Solaris 10

Post by thom_crus0123 »

I have installed php on the said link but when i started the apache, it gives me an error "Cannot load
/usr/lib/apache2/modules/libphp5.so into server". I do the command "find / -name libphp5.so -print" but I cannot find this file.
Hope you can help me on this. Thank you so much.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Installing PHP on Solaris 10

Post by tmcdonald »

At this point it might be best to ask on a Solaris support form, both because this is not a platform we use at Nagios and because this is getting farther and farther from being a Nagios issue.
Former Nagios employee
Locked