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
-
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.
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?
-
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
-
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?
-
take a look here: https://wiki.contribs.org/PHP_Software_Collections#Usage
-
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.
# 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:
db accounts setprop IBAYNAME Group [old group name]
signal-event ibay-modify
-
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 :)
-
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.
cd /home/e-smith/files/ibays/custom-wp/html/
chown -R www:wpcoders *
And here is result of modifying the ibay config...
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