Announcement

Collapse
No announcement yet.

Web Setup, php.ini not loading so's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Web Setup, php.ini not loading so's

    During the front-end installation of Oreon, it fails on Step 4 because it says mysql.so, gd.so, ldap.so and snmp.so are not loaded in php.ini. However, I added the commands "extension=mysql.so" per the example configuration. And yet it still fails to load.

    I've set up a test PHP page and it shows these so's loading, as I was afraid that may be causing it. If you could shed any light, that'd be great. Thanks.

  • #2
    Hi,

    did you restart your apache server ?
    StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
    Dons Paypal

    Comment


    • #3
      Yes, I did.

      Comment


      • #4
        To give more information, this is being installed on a Fedora Core 3 box. If there's anything else you need to know, let me know.

        Comment


        • #5
          Scratch it, I installed Debian and I'm installing Oreon per documentation.

          Comment


          • #6
            i had this problem on fc3 also.

            apt-get install php-mysql would have fixed it.

            also apt-get install php-gd php-snmp php-ldap

            but now im stuck on the next screen .. half of my pear components are not there.

            Comment


            • #7
              Ian, I had the same problem with my second try at Oreon (currently on my third try. Almost done). I apt-get install php4-pear. On top of that, I installed the command line download manager. Lastly, I initially pointed it to the wrong path (I used default, /usr/share/pear). I changed it to /usr/share/php/ and it worked beautifully.

              Comment


              • #8
                *edit* Note: using Nagios 1.4.1 (or install_nagios-0.5) and Oreon 1.3-RC3-1
                #####################################

                I did apt-get install php4-pear earlier and then again after reading this.
                It was installed

                Yet I still have the following PHP Pear Component failures:
                DB_Object-1.8.4
                DB_Object_FormBuilder-1.0.0RC4
                MDB2-2.0.0
                Date-1.4.6
                Numbers_Roman-1.0.1
                Numbers_Words-0.14.0
                HTML_Common-1.2.2
                HTML_QuickForm-3.2.5
                HTML_QuickForm_advmultiselect-1.1.0
                Auth_SASL-1.0.1
                Image_Canvas-0.2.4
                Image_Color-1.0.2
                Image_Graph-0.7.1
                Image_GraphViz-1.1.0
                Mail_Mime-1.3.1
                Net_Traceroute-0.21
                Net_Ping-2.4.1
                Validate-0.6.2
                XML_RPC-1.4.5

                *EDIT* *FIX*

                Okay...here's what I did

                apt-get install php-date
                apt-get install php-image-canvas
                apt-get install php-image-graph
                apt-get install php-mail-mime
                that was via http://packages.ubuntu.com/dapper/web/ for reference


                Then I found http://pear.php.net/manual/en/installation.cli.php which let me do
                # pear install _whateverpackage_
                pear list to see what packages were on system
                pear remote-list to see what packages were available on whoever's servers

                I mostly just followed what the 5. Verifying PHP Pear Component list said each entry "Needed" for those that had Failed.
                EG:
                pear install DB_Object
                pear install DB_Object_FormBuilder
                pear install MDB2

                NOTE: DB_Object requires dependencies and it will tell you which ones.
                NOTE: make sure you've run through apt-get install php4-pear
                You might need apt-get install php-pear or php5-pear...I ran through so many attempted apt-get installs I'm not exactly sure which ones were successful, which ones failed and which ones worked but weren't needed....I just kinda threw mud a few times in this process hoping something would stick.

                Except for Image_Color...that was was a bit of a bad tooth.....and the documentation accessability sucks a big one....
                I finally found http://pear.php.net/bugs/bug.php?id=5828 for reference

                you want to
                (A) Find ~/cli/php.ini and add extension=gd.so to the very bottom (it might not need to be at the bottom but the other versions of php.ini had it below the ;Local Variables: , ;tab-width:4 , ; End: section so that's where I put it in the /cli/php.ini
                My directory happened to be /etc/php5/cli/php.ini
                ( apt-get install php5-gd

                I'm not sure if (A) was needed if you run ( but that's what I did.
                Then you run pear install Image_Color

                On the rest of the packages when running pear install make sure you read the detail if it fails. Some of the packages (like Validate that fail at first attempt) fail using pear install Validate but will be work if you use pear install Validate-0.6.2
                Whereas some of the other packages are fine if you just use the name and not the version.

                Be sure to restart /etc/init.d/apache2 as well as mysql and nagios (same directory).
                Then refresh your browser (if you are still on 5. Verifying PHP Pear Components)


                *edit* -------------------- Linux Tips for Newbies ------------------------------
                It took me awhile to find this so if there's any linux newbies (like me) reading this the directory search function is
                # find -name the or part of the filename ~ php, php.ini, etc

                ....and for any real newbies that would be
                [email protected]_or_computername:/# find -name _filename_
                user = login name like 'netcog', 'Bobby', 'root'
                you get to root by typing "sudo -s" [enter] then the root password - typed after the prompt [email protected]:/#

                At least that's how Ubuntu was, it seems from the web pages that # might be replaced with $ for other flavors.

                Comment

                Working...
                X