Koozali.org formerly Contribs.org

Wordpress after restore from SME 8.2

Offline Knyte

Wordpress after restore from SME 8.2
« on: November 13, 2018, 10:18:46 PM »
Old server:  SME 8.2 / WordPress created with Sitemaker in /opt/
New server:  SME 9.2 restored from Workstation backup (successfully)

Installed Horde 5.2 / phpmyadmin / PHP 5.5.38 & 5.5.62 (Remi)

http and email working fine (really enjoying Horde 5.2).

Installed the WordPress contrib, then checked the MySQL tables, and my WordPress data is present.  I have a file-level backup of my former WordPress site, but obviously can't restore wp-config.php because with the contrib it's a template.  I looked at the fragments, but not sure what to add nor where.  I tried creating an ibay wordpress, but got an error that Account Wordpress already exists.

Ideally I'd keep the Wordpress contrib installed, but I'm not 100% sure how to add the wp-config.php data (DB name / password / auto-update options).  I tried

config setprop DBname <name>
config setprop DbPassword <password>
as well as
config setprop symlinks enabled, and a couple of other things...but I messed something up and now I have two questions:

config show wordpress
wordpress=service
    AllowOverrideAll=disabled
    BackupFiles=enabled
    DbName=<name>
    DbPassword=<password>
    DbUser=wordpress
    Https=enabled
    Indexes=disabled
    Name=<name>
    PublicAccess=global
    SymLinks=disabled
    Symlinks=enabled
    WpLang=en
    indexes=enabled
    status=enabled

1) As you can see, Symlinks and Indexes is duplicated - how do I fix those?

2) When browsing to mysite.org/wordpress or mysite.org/wordpress/wp-admin the following error is displayed:

Error establishing a database connection

I'm sure these are silly things, and yes I've read up on templates but I'm not 100% sure how to add my (old) config info.  I thought by installing to an ibay I could just copy wp-config.php or otherwise directly edit it, however the ibay won't allow me the wordpress folder, as mentioned.

Many thanks.
« Last Edit: November 13, 2018, 10:32:06 PM by Knyte »
SME 8.1 (currently restoring to SME 9.2) running in ESXi 5.5

Re: Wordpress after restore from SME 8.2
« Reply #1 on: November 14, 2018, 07:17:10 AM »
Hi Knyte

I always install WordPress directly in the html directory of an i-bay.


Code: [Select]
# db accounts show Primary

Primary=ibay
    AllowOverride=all
    CgiBin=enabled
    FollowSymLinks=enabled
    Group=shared
    Indexes=disabled
    Modifiable=no
    Name=Primary i-bay
    PHPBaseDir=/home/e-smith/files/ibays/Primary:/tmp
    PasswordSet=no
    Passwordable=no
    PublicAccess=global
    Removable=no
    UserAccess=wr-admin-rd-group

1) AllowOverrideAll=disabled  // "AllowOverride=all"  // If I remember right:
config delprop wordpress AllowOverrideAll

2) SymLinks=disabled // delete  // "FollowSymLinks=enabled"
3) Symlinks=enabled // delete
4) Indexes=disabled // this is OK
5) indexes=enabled  // delete  // need a "I"

Have a look at: https://wiki.contribs.org/Useful_Commands.

You also have to do a signal-event of some kind to make the new parameters permanent.

Michel-André
« Last Edit: November 14, 2018, 07:23:12 AM by michelandre »

Offline Knyte

Re: Wordpress after restore from SME 8.2
« Reply #2 on: November 15, 2018, 04:42:34 AM »
Hey, thanks, that leads to all kinds of interesting things :)
SME 8.1 (currently restoring to SME 9.2) running in ESXi 5.5

Re: Wordpress after restore from SME 8.2
« Reply #3 on: November 28, 2018, 09:23:21 AM »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline ReetP

  • *
  • 2,054
Re: Wordpress after restore from SME 8.2
« Reply #4 on: November 28, 2018, 10:13:33 AM »
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Re: Wordpress after restore from SME 8.2
« Reply #5 on: November 30, 2018, 09:12:18 AM »
Or even this for ideas

https://wiki.contribs.org/Wordpress

Read the Description of that wiki where the author explains why he has a link from there to:
https://wiki.contribs.org/Wordpress_Multisite
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite