Koozali.org: home of the SME Server

adding config property breaks ibay hosting WordPress

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
adding config property breaks ibay hosting WordPress
« 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?
- Mark

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: adding config property breaks ibay hosting WordPress
« Reply #1 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
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: adding config property breaks ibay hosting WordPress
« Reply #2 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?
- Mark

Offline Stefano

  • *
  • 10,839
  • +2/-0

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: adding config property breaks ibay hosting WordPress
« Reply #4 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

Offline calisun

  • *
  • 601
  • +0/-0
Re: adding config property breaks ibay hosting WordPress
« Reply #5 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 :)
« Last Edit: December 20, 2017, 12:49:17 AM by calisun »
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 Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: adding config property breaks ibay hosting WordPress
« Reply #6 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
- Mark