Omnium Open Forums » Support » Installation

Installing on Dreamhost

(5 posts)
  • Started 2 years ago by apolaine
  • Latest reply from apolaine
  • This topic is not resolved

  1. apolaine
    Member
    6 posts

    I thought it might be useful to document the experience (and hopefully at some point the solution) of installing Omnium on a commercial webhost. It would broaden the usage quite a bit if it was relatively easy to do, but of course one has far less access to the innards and set-up of the server. I do, however, have shell access to my Dreamhost account.

    So, far, just trying to install in a clean directory:

    1. Installer couldn't connect to the MySQL socket. Not sure why this is and I haven't investigated much further, but see the next point about this. BTW, here's the error code:

      Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/.jason/polainep/polaine.com/omnium/installer/install.php on line 107

      Warning: Cannot modify header information - headers already sent by (output started at /home/.jason/polainep/polaine.com/omnium/installer/install.php:107) in /home/.jason/polainep/polaine.com/omnium/installer/install.php on line 476

    2. On the installer page you have a field for the database name. Here it's not clear if this is the hostname, just the database name or both (i.e., apolaine.polaine.com or omnium or both). You used to be able to put in the hostname in the cofig file in custom, but this appears to not be the case anymore. Most people if they have a web panel (or even just PHPMyAdmin) will know their hostname and it's not always localhost on commercial hosted servers. I reckon this could be clearer in terms of exactly what you want people to enter into those fields and/or you should be able to put in the hostname (as I think that's why I'm not connecting to the mySQL server isn't it?).
    3. So, I went for a manual install instead. But there's a step missing from the installation instructions (I think) which is what to CHMOD the codebase to. I have it on 755 at present, but even so I'm not hooking into the classes for some reason. Getting this error:

      Fatal error: Cannot instantiate non-existent class: om_omnium in /home/.jason/polainep/polaine.com/omnium/codebase/includes/global.inc.php on line 77

    The install is at: http://www.polaine.com/omnium/cleint/ if you want to take a look, but it's not going to get you very far.

    Any thoughts about this?

    It's not particularly urgent for me to sort out, but I thought I'd give it a go. Once this is going the next stage is to tackle things like setting the php.ini and mySQL filesize settings. No idea how I can do that and override the default Dreamhost ones....

    Posted 2 years ago #
  2. It was my understanding when I installed on my Powerbook that database name is the name of the *table* used to hold the omnium data in the MySQL database. It seemed to work anyway. My MySQL installation has a single database in which I have several tables for different applications, CMSs etc. I think my web host does the same thing.

    (ps) good to see you at Northumbria last Friday.

    Posted 2 years ago #
  3. dancallaghan
    Member
    13 posts

    Sorry I didn't reply sooner, I was up at Brisbane at the CreateWorld conference.

    1. I think this error may be fixed by part 2.
    2. This is a problem new Paul and I have been talking about recently. There currently isn't a field in the installer to specify what hostname for the database, which is definitely a problem when you are using shared hosting such as DreamHost. We are going to be implementing this soon, so watch this space. In the meantime you can specify this in the custom/config/dataobject.config.php file just add the line $dataobject['dbdsn']['hostspec'] = 'apolaine.polaine.com';.
    3. This is an odd one. Are you using PHP4 or PHP5? To check this either go to your Dreamhost panel or make a new test.php file with phpinfo();

    Overriding the php.ini file is another kettle of fish. But we'll see if we can figure these problems out first.

    Posted 2 years ago #
  4. sambauers
    Administrator
    28 posts

    For number 3 it looks like you are using PHP4. Omnium relies on the class autoload feature of PHP5 and this seems to be in line with that functionality not being present.

    It's pretty easy to switch over to PHP5 in the Dreamhost Panel. Your WordPress install shouldn't be affected. There are documented methods to run PHP4 and PHP5 in the same domain at Dreamhost (actually, I wrote them) but hopefully you won't have to go to those lengths.

    Posted 2 years ago #
  5. apolaine
    Member
    6 posts

    Sorry, I hadn't been tracking the replies to this.

    Sam, you're right about PHP, I forgot about that on Dreamhost. I'll upgrade (and hope everything works still!) and see what happens, but it will have to be when I have a bit of spare time. I'll report back with some results.

    BTW, any answer as to what permissions the codebase requires?

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.