Installed SME 8.1 to a new virtual server. Configured as server only and fully updated it. Installed the wordpress contrib per
http://wiki.contribs.org/Wordpress. Instructions worked and wordpress was up and running in a few seconds. The contrib installs v 4.2.4 which now that I think about it will probably be fine with me. That is unless a particular plugin isn't compatible or there is a security vulnerability in the version running. I decided to try and get it all going anyways just in case.
I went ahead and checked out
http://wiki.contribs.org/Uploadtmpdir#Specify_the_application_tmp_folder. The wordpress contrib already has the upload_tmp_dir line in /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress
$OUT .= " php_value mysql.default_password $wordpress{DbPassword}\n";
$OUT .= " php_admin_value upload_tmp_dir /tmp\n";
if ($pass)
{
Just to be sure, I created /usr/share/wordpress/tmp per the instructions (to be more secure each web app needs it's own tmp dir) and modified the template according to the instructions in the link above.
$OUT .= " php_value mysql.default_user $wordpress{DbUser}\n";
$OUT .= " php_value mysql.default_password $wordpress{DbPassword}\n";
$OUT .= " php_admin_value upload_tmp_dir /usr/share/wordpress/tmp\n";
if ($pass)
{
Did a signal-event console-save and verified the change to php.ini file. I have only received one PHP error to the browser window or any of the possible log files listed. This was due to a bad theme that didn't properly define a function. Once I removed the theme, I went back to no errors. Since the change was to the templates instead of the templates-custom, I decided to change the /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress file back to the default. The page
http://wiki.contribs.org/Uploadtmpdir#Specify_the_application_tmp_folder might read better if it reflects changing the custom templates. The way to remove the change says to delete the base template which I think would muck up the php.ini file. I'll need clarification of this then I can change the wiki page to reflect the new information.
I was able to install plugins, widgets, themes, and update them all. Also able to create pages, edit posts, make posts, etc. Base functionality is there. The problem with the update still exists. I get the following error.
Downloading update from https://downloads.wordpress.org/release/wordpress-4.3.1-no-content.zip…
Unpacking the update…
Verifying the unpacked files…
Preparing to install the latest version…
The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-includes/class-simplepie.php, wp-includes/class-phpmailer.php, wp-includes/class-smtp.php
Installation Failed
What I have found so far was alluded to by warren in a post before. I googled it and came up with it's probably related to the symlinks for class-simplepie.php, class-phpmailer.php, and class-smtp.php created by the installation of the wordpress contrib (
https://codex.wordpress.org/Editing_wp-config.php read down to wordpress upgrade constants). I'm going to look through the templates and see if I can come up with a way to add the custom templates for FTP_BASE, FTP_CONTENT_DIR, and FTP_PLUGIN_DIR.
I feel like the upgrade is close. I just need to figure out the last little bit.
We own several different tld's for several domains (.com, .org, .biz, .info, .aero, etc) and I have them hosted on this server. Based on what I've read up to this point, does this mean I'll need several different statements in httpd.conf for each of the virtual domains?
Also, I want
www.domain.com to be the wordpress site. As it sits now, to get to the wordpress install I need to go to
www.domain.com/wordpress. I read about alternate URL's. When I do
config setprop wordpress URL http://testserver.xxxx.local
signal-event console-save
It doesn't work. I get the primary iBay default index file stating the site is under construction. When I'm done with this wordpress install, wordpress will be running our entire main site, not just a blog. I remembered this was why I decided to install it in an iBay in the first place. I couldn't figure out how to make our main web address resolve to the wordpress install. Any ideas on this would be greatly appreciated.
I'm also going to work on the sftp as RequestedDeletion mentioned.
I'm still working this and will resume tomorrow. I just wanted to post this so if anyone sees any security issues, stupid mistakes, or things I missed, it can be pointed out. As always, I appreciate the direction of everyone here. I'm the first to admit my skills are nowhere near those of the devs on this site. I'm willing to learn though.