Omnium Open Forums » Support

Installation: MDB2

(7 posts)
  • Started 2 years ago by eattheword
  • Latest reply from sambauers
  • This topic is resolved

  1. I've finally managed to get the install package to run on OS X (installed in ~user-name/Sites rather than Library/Webserver/Documents) but now when I access index.php I get the error message:

    The PEAR package "MDB2" is missing or not installed

    I am running OS X 10.4.10, PHP 5.2.4 and PEAR 1.6.2

    which php gives /usr/local/php5/bin/php
    which pear gives /usr/local/php5/bin/pear

    and sudo pear list shows:
    Installed packages, channel pear.php.net:
    =========================================
    Package Version State
    Archive_Tar 1.3.2 stable
    Console_Getopt 1.2.3 stable
    DB 1.7.13 stable
    DB_DataObject 1.8.7 stable
    Date 1.4.7 stable
    HTML_BBCodeParser 1.2.2 stable
    MDB2 2.4.1 stable
    MDB2_Driver_mysql 1.4.1 stable
    MDB2_Driver_mysqli 1.4.1 stable
    Mail 1.1.14 stable
    Mail_Mime 1.5.2 stable
    Mail_mimeDecode 1.5.0 stable
    Net_SMTP 1.2.10 stable
    Net_Socket 1.0.8 stable
    PEAR 1.6.2 stable
    Structures_Graph 1.0.2 stable

    What's going on????

    Posted 2 years ago #
  2. dancallaghan
    Member
    13 posts

    It looks like you might have more than one installation of PEAR. If you go into your php.ini file which should be located in the /etc directory there should be the line include_path=".:/usr/share/pear" or something along those lines which tells PHP where to look for your PEAR libraries. You can either change this include path to include_path=".:/usr/local/php5/bin/pear" or install the PEAR packages to this specific installation of PEAR. Hope this helps.

    Posted 2 years ago #
  3. No joy.

    I've had a beast of a time trying to install omnium all round. The auto install *doesn't* create a folder on the web server with the name of the project. The manual install won't let me create a symbolic link to codebase/index.php and trying to access that file directly gives a 403 error. The auto install appears to work until you access index.php at which point I get the MDB2 error.

    There was an old version of Pear from PHP 4 on the system, but I thought I had got everything pointing to the new version. In any case, both versions of Pear have MDB2 installed. On my OS X system PHP5 is installed in /usr/local/php5. Can someone give me a list of *all* the settings needed to ensure harmonious working? That is, what should pear config-show give me back, and what folder should include_path in php.ini point to?

    Posted 2 years ago #
  4. Update

    I scrubbed all evidence of Pear and PHP and reinstalled entropy's PHP5 and then installed the pear packages. After dealing with increasing the various file upload size settings I got *something* to run. I browse to localhost/~user_name/index.php and it takes me to localhost/~user_name/base and presents me with a login screen. I enter the username and password created during the install and it tries to take me to:
    http://localhost/~user_name/modules/news/
    whereupon I am told:
    You don't have permission to access /~user_name/modules/news/ on this server.
    Sigh.
    What am I missing?

    Posted 2 years ago #
  5. Another update

    Ok, solved the last problem too. OS X 10.4 has a sub folder users in /etc/httpd. Although the main httpd.conf may be allowing symlinks to be followed, the individual user_name.conf file may not. A quick edit of the relevant /users/user_name.conf file to include FollowSymLinks in the Options section and all is well.

    Phew

    Posted 2 years ago #
  6. dancallaghan
    Member
    13 posts

    Thanks for the updates and feedback. We are currently working on improving the installer and the installation instructions of the Wiki. We'll have to take these into things into consideration.

    Posted 2 years ago #
  7. sambauers
    Administrator
    28 posts

    User directories are generally more restrictive in Apache than the Apache root directory.

    Most of the problems you are experiencing have to do with the funky OS X way of configuring Apache. A bit of digging around the Apache documentation should help you get the user directories opened up a bit.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.