Obsolete Releases > SME 8.x Contribs
Wordpress 4.3.1 on SME 8.1
guest22:
--- Quote from: devtay on October 27, 2015, 01:36:20 PM ---Thanks for all the comments guys. I'll take the advice to heart. Back to the drawing board.
--- End quote ---
Nice and good luck. Please keep strict security in mind, it may mean a trade off of some wishes....
ps. You may want to take a look at this page too http://wiki.contribs.org/UserManager. It could be helpful on providing restricted sftp access to a specific location for a 3rd party on your system.
devtay:
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
--- Code: ---$OUT .= " php_value mysql.default_password $wordpress{DbPassword}\n";
$OUT .= " php_admin_value upload_tmp_dir /tmp\n";
if ($pass)
{
--- End code ---
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.
--- Code: ---$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)
{
--- End code ---
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.
--- Code: ---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
--- End code ---
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
--- Code: ---config setprop wordpress URL http://testserver.xxxx.local
signal-event console-save
--- End code ---
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.
janet:
devtay
--- Quote ---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
--- Code: ---config setprop wordpress URL http://testserver.xxxx.local
signal-event console-save
--- End code ---
--- End quote ---
try issuing
signal-event post-upgrade
signal-event reboot
Also/instead in the Domains panel, you can point the main domain at the ibay you want it to resolve to, rather than resolving to the Primary ibay by default.
devtay:
Thanks for the reply Janet. I tried what you suggested but it didn't change anything. I think I need to actually look at the wp-config file to see where the changes are actually going for further troubleshooting. I see the URL property being added when I do config show wordpress.
The only way I can use the domains panel is if I still was installing wordpress in an iBay. I swapped over (due to recommendations in this thread) to working on trying to get the wordpress contrib where it will update. My test wordpress is installed in /usr/share/wordpress.
TerryF:
Have a read of THIS it may be of Help
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version