WP Hive » Installation and Configuration

installation problems

(9 posts)

  1. epitaphs
    Member

    Hello!

    I am using WordPress version 2.5.

    I followed the installation instructions precisely in order to install wp-hive, but at step 3 (Load the homepage of the first (or existing)blog - this sets up the hive) after loading the page of the blog I got the following message:

    ##################################

    Warning: require_once(WP_CONTENT_DIR/plugins/wp-hive/do-prefix.php)
    [function.require-once]: failed to open stream: No such file or
    directory in
    /var/www/web14/html/sites/www.alex-droseltis.com/public/updates/wp-content/d
    b.php
    on line 6
    Fatal error: require_once() [function.require]: Failed opening required
    'WP_CONTENT_DIR/plugins/wp-hive/do-prefix.php' (include_path='.') in
    /var/www/web14/html/sites/www.alex-droseltis.com/public/updates/wp-content/d
    b.php
    on line 6

    ##################################

    Any idea? I would be grateful!

    Best Regards

    Alexandros

    Posted 3 years ago #
  2. ikailo
    Developer

    This appears to be caused by having non-standard paths configured for your installation of WordPress. It is looking for the files in a path that does not exist. It is possible that you may have defined the WP_CONTENT_DIR or WP_PLUGIN_DIR specifically in the config file, or elsewhere?

    This plugin was intended to handle that situation, but I guess it hadn't been field tested as of yet. I will review the code and see what I can fix in the next version.

    In the mean time, you might be able to hack it by hard-coding the path defined in db.php to the actual do-prefix.php file (located in the plugin folder), such as:

    require_once( '/var/www/web14/html/sites/www.alex-droseltis.com/public/updates/wp-content/plugins/wp-hive/do-prefix.php');

    Of course, as long as that is where the actual file is located.. Let me know if that works for you.

    Posted 3 years ago #
  3. epitaphs
    Member

    Thank you for your answer!

    I substituted all strings WP_CONTENT_DIR by '/var/www/web14/html/sites/www.alex-droseltis.com/public/updates/wp-content' in the files db.php, do-prefix.php and wp-hive.php. I moved db.php in wp-content directory and I loaded now the page of the first blog; the page of the blog appeared, but with the following warning:

    ################################

    Warning: mkdir() [function.mkdir]: Permission denied in /var/www/web14/html/sites/www.alex-droseltis.com/public/updates/wp-content/plugins/wp-hive/do-prefix.php on line 32

    Warning: mkdir() [function.mkdir]: No such file or directory in /var/www/web14/html/sites/www.alex-droseltis.com/public/updates/wp-content/plugins/wp-hive/do-prefix.php on line 41

    ################################

    Then I hit "reload" for second time, and the 5min installation began. I gave a title and a totally new blog was created at the place of the first. Then I deleted db.php from the wp-content, and fortunately the original blog appeared. Afterwards I dropped the tables wphive_config and wphive_hosts from the database and repeated the previous steps. Again, the above warning appeared, and now, if I reload it for a second time (after the warning, *with* db.php in the wp-content directory), I see this new blog that I created before! (How can I delete this?). Anyway, I would appreciate any help! :)

    Thank you!

    Alexandros

    Posted 3 years ago #
  4. ikailo
    Developer

    Glad to hear it is working better. Seems there might be some type of issue in your installation with the definition of WP_CONTENT_DIR.

    With regards to deleting the previous blog created by WP hive, you need to remove any of the tables that were created with the new prefix for that particular domain (eg: example.com).

    In the 'wphive_hosts' table, lookup the prefix value where the host is the domain name. (SELECT prefix FROM wphive_hosts WHERE host = 'example.com'). You will find a value like 'exa_'. You can delete any table in the database with that prefix.

    Of course, always backup your database prior to starting.

    Cheers.

    Posted 3 years ago #
  5. epitaphs
    Member

    Thank you for the answer!

    Now I saw which db tables had the new values. The first blog is at main_domain/updates, the new tables were automatically named updateposts, updatepostmeta etc. I dropped them all and repeated the above procedure. Again, the 5min installation started, I gave an experimental title, and now, after the 5min page, a new blog was created but with many db-errors, I copy here the first 3:

    ########################

    WordPress database error: [Duplicate entry 'uncategorized' for key 2]
    INSERT INTO updateterms (name, slug, term_group) VALUES ('Uncategorized', 'uncategorized', '0')

    WordPress database error: [Duplicate entry '1-category' for key 2]
    INSERT INTO updateterm_taxonomy (term_id, taxonomy, description, parent, count) VALUES ('1', 'category', '', '0', '1')

    WordPress database error: [Duplicate entry 'blogroll' for key 2]
    INSERT INTO updateterms (name, slug, term_group) VALUES ('Blogroll', 'blogroll', '0')

    ########################

    I think that I did not delete everything that was created!... I know almost nothing about mysql...

    Summary: the 1st blog is installed at domain/updates. After compying db.php into wp-content and having reloaded the page of the blog, I get 2 warnings, reload, 5min install starts and a new blog is created, not in a subdomain, but exactly where the 1st blog was.

    I'll keep on trying...

    Alexandros

    Posted 3 years ago #
  6. epitaphs
    Member

    PS. Yes, I had not deleted all update[^_].*. Now this problem with the new blog is solved, it can be easily deleted. Still stuck in step 3.

    Posted 3 years ago #
  7. epitaphs
    Member

    The main problem is that I cannot create directories by php scripts.

    I got rid of the 1st warning:

    Warning: mkdir() [function.mkdir]: Permission denied in /var/www/web14/html/sites/www.alex-droseltis.com/
    public/updates/wp-content/plugins/wp-hive/
    do-prefix.php on line 32

    by creating the wp-content/wp-hive directory manually.

    Could I do the same for the 2nd? If I could do this, I could go on to the next step of the installation. The 2nd warning is:

    Warning: mkdir() [function.mkdir]:
    No such file or directory in /var/www/web14/html/sites/www.alex-droseltis.com
    /public/updates/wp-content/plugins/wp-hive/do-prefix.php on line 41

    What directories should I create here? I need the variable $hostname for this.

    Thanks for any help

    Alexandros

    Posted 3 years ago #
  8. epitaphs
    Member

    Sorry for the many posts, I found the problem for step 3 and overcame it:

    do-prefix.php calls the function mkdir twice. On many servers this requires that the directories /blog, /blog/wp-content/ and /blog/wp-content/wp-hive have read/write access for the users "www" or "world", or just the rights "777". This is not secure, because anyone could write in it. Thus, the only way to overcome this problem was to chmod 777 for all these 3 directories during step 3 (and maybe 4).

    I will report any problems in the next steps and (hopefully) respective solutions.

    HAND

    Alexnadros

    Posted 3 years ago #
  9. Marc
    Member

    Hi this sounds like the perfect plugin for what I need. I have already created sub-domains at my Cpanel but please explain these two steps in more detail...

    -Load the homepage of the first (or existing) blog - this sets up the hive.

    -Use your Webserver Administration (Cpanel, IIS, etc..) to point any domains you want to use in the hive to the Wordpress directory.

    Thanks

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.