Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: mophilly on November 08, 2017, 12:45:15 AM

Title: adding config property breaks ibay hosting WordPress
Post by: mophilly on November 08, 2017, 12:45:15 AM
I have installed WordPress into an ibay on SME 9, with Software Collections installed. To enable WordPress "Permalinks", a pretty url option, I added AllowOverride and FollowSymLinks to the ibay using "db accounts" commands. Afterward, the web site would not all me access at all.

Code: [Select]
db accounts setprop IBAYNAME AllowOverride All;
db accounts setprop IBAYNAME FollowSymLinks enabled;
signal-event ibay-modify IBAYNAME;

The next access of the site resulted in a Forbidden error, "You don't have permission to access /pops-support/ on this server."

Removing the db variables allowed the site to load again.

What is the proper way to customize an ibay for WordPress in SME 9?
Title: Re: adding config property breaks ibay hosting WordPress
Post by: SchulzStefan on November 08, 2017, 12:25:46 PM
I assume you read this: https://wiki.contribs.org/Wordpress_Multisite

I'm no wordpress user, so I don't know if your problem is covered in the howto.

regards,
stefan
Title: Re: adding config property breaks ibay hosting WordPress
Post by: mophilly on November 08, 2017, 05:32:13 PM
Thank you. That page is helpful. I recall the text from years ago when I set up wordpress on an older server.

One thing that comes to mind today is the impact of using PHP 5.6 via Software Collections. If I change the ibay properties, is there some additional step I need to complete for the SC PHP56 to "see" the changed properties?
Title: Re: adding config property breaks ibay hosting WordPress
Post by: Stefano on November 08, 2017, 05:55:36 PM
take a look here: https://wiki.contribs.org/PHP_Software_Collections#Usage
Title: Re: adding config property breaks ibay hosting WordPress
Post by: mmccarn on November 10, 2017, 01:18:56 PM
The "ibay-modify" event resets the user and group settings for all files and folders within the i-bay.

Do you know if your file and folder settings are still OK?

When I was using wordpress on SME (SME 8 ), I would change the ibay "Group" setting to "www" to retain access after running ibay-modify.  If I recall correctly, "www" was not an option for ibay group membership in server-manager, so I made the change at the command line.

Code: [Select]
# Make a note of [old group name] using the command below:
db accounts getprop IBAYNAME Group

# Then set Group to "www" and re-run ibay-modify
db accounts setprop IBAYNAME Group www
signal-event ibay-modify

To UNDO:
Code: [Select]
db accounts setprop IBAYNAME Group [old group name]
signal-event ibay-modify
Title: Re: adding config property breaks ibay hosting WordPress
Post by: calisun on December 19, 2017, 11:53:11 PM
I assume you read this: https://wiki.contribs.org/Wordpress_Multisite
Thank you. That page is helpful. ....

You are welcome :)

I am happy that people use and share my creation :)
Title: Re: adding config property breaks ibay hosting WordPress
Post by: mophilly on December 22, 2017, 06:07:14 PM
Thanks to all who replied. The app is set up and working as desired.

file ownership and permission were a major factor. Once set appropriately things improved greatly. Verifying the config properties also helped.

Here is what I ended up using to set the file ownership. The file permissions are set to match recommendation at wordpress.org.

Code: [Select]
cd /home/e-smith/files/ibays/custom-wp/html/
chown -R www:wpcoders *

And here is result of modifying the ibay config...
Code: [Select]
db accounts show custom-wp
custom-wp=ibay
    AllowOverride=all
    CgiBin=enabled
    FollowSymLinks=enabled
    Group=wpcoders
    Indexes=disabled
    MaxExecTime=90
    MemoryLimit=128M
    Name=Custom WordPress site
    PHPBaseDir=/home/e-smith/files/ibays/custom-wp/html/:/tmp/
    PhpVersion=php71
    PublicAccess=global
    UserAccess=wr-group-rd-everyone