Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: Knyte on November 13, 2018, 10:18:46 PM

Title: Wordpress after restore from SME 8.2
Post by: Knyte 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.
Title: Re: Wordpress after restore from SME 8.2
Post by: michelandre 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é
Title: Re: Wordpress after restore from SME 8.2
Post by: Knyte on November 15, 2018, 04:42:34 AM
Hey, thanks, that leads to all kinds of interesting things :)
Title: Re: Wordpress after restore from SME 8.2
Post by: calisun on November 28, 2018, 09:23:21 AM
Take a look here:
https://wiki.contribs.org/Wordpress_Multisite
Title: Re: Wordpress after restore from SME 8.2
Post by: ReetP on November 28, 2018, 10:13:33 AM
Or even this for ideas

https://wiki.contribs.org/Wordpress
Title: Re: Wordpress after restore from SME 8.2
Post by: calisun 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