Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: Paperguides on November 04, 2015, 10:25:28 PM

Title: Wordpress problems
Post by: Paperguides on November 04, 2015, 10:25:28 PM
1) if I use http://www.xxxx.org.uk the system converts this to https://www.xxxx.org.uk/wordpress.  My system is self certified so users get warned off - not ideal for a charity website. :-(   How do I get back to http:?

2) updates to plugins and themes work perfectly but an attempt to upgrade to 4.3.1-GB elicits:

Could not copy file.: wp-includes/certificates/ca-bundle.crt

Installation Failed


Any help would most welcome.

Title: Re: Wordpress problems
Post by: stephdl on November 04, 2015, 11:16:41 PM
when you follow the epel tree, you cannot upgrade core as wanted, except if you modify in the /etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist

Code: [Select]
/**
 * See http://make.wordpress.org/core/2013/10/25/the-definitive-guide-to-disabling-auto-updates-in-wordpress-3-7
 */

/* Disable all file change, as RPM base installation are read-only */
define('DISALLOW_FILE_MODS', false);

/* Disable automatic updater, in case you want to allow
   above FILE_MODS for plugins, themes, ... */
define('AUTOMATIC_UPDATER_DISABLED', true);

/* Core update is always disabled, WP_AUTO_UPDATE_CORE value is ignore */

you should compare with a clean wep app installation and find the correct values....by the way if you want to remove the https, all login and  passwords will be sent in a clear way....the nsa and uncle sam will be happy
Title: Re: Wordpress problems
Post by: Paperguides on November 08, 2015, 11:03:17 PM
I've read the web page you suggested and decided not worry about the updates for the moment.

The HTTPS problem is a major one for me.

the web site is: www.thesilversworkshop.org.uk  The redirection takes place with or without the www.

Is there anyway I can work out where the redirection is taking place?

The sever is set up as a 'Server Only' the latest SME 9.0 CD fully patched.  The wordpress install was set up using the Contrib here.

I suspect it is something I've changed but cannot work out what.  I have searched the web and check out various options within wordpress without success. :-(

Tony
Title: Re: Wordpress problems
Post by: janet on November 09, 2015, 12:35:15 AM
Paperguides

There ahould be a template that defines the alias, change that by creating a custom template. Expand templates & restart. Refer Templates Howto.

Otherwise you may be better off using the Howto for Wordpress multisite (but configure it just for one site).
That installs to an ibay & you redirect the domain name to that ibay using server manager Domains panel. Look in Howtos under W.
Title: Re: Wordpress problems
Post by: stephdl on November 09, 2015, 04:58:23 AM
do a file /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/30wordpressAlias with inside
Code: [Select]
#https manually removed by a custom-template for wordpress contribs
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/
vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/30wordpressAlias

then

Code: [Select]
signal-event console-save
if you have problem later, simply remove this file
Title: Re: Wordpress problems
Post by: Paperguides on November 10, 2015, 12:46:45 PM
Sorry your last post didn't make sense to me. Can you explain what the file 30wordpressAlias should contain?

Thanks,

Tony
Title: Re: Wordpress problems
Post by: stephdl on November 10, 2015, 01:32:58 PM
the file /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30wordpressAlias does the redirection to https, doing another file with nothing inside will avoid this redirection
Title: Re: Wordpress problems - Fixed
Post by: Paperguides on November 10, 2015, 04:25:02 PM
Thanks for the prompt reply.  I now have a working site.  8-)  Thank You!  Now my friend can work on the content.

One of the 'fun' things about working with computers is that you are always learning.  This exercise has lead me to investigate and hopefully partially understand the SME template system.

One of these days I'll be able to answer a question here instead of only coming to ask!

Thanks again to all who have tried to help.
Title: Re: Wordpress problems - Fixed
Post by: janet on November 11, 2015, 02:40:09 AM
Paperguides

Quote
.....This exercise has lead me to investigate and hopefully partially understand the SME template system......

Please read this if not already done
http://wiki.contribs.org/Template_Tutorial

The concept of templates & custom templates is pretty easy really, it is working out what goes in them & what goes in the fragments, that can be more difficult, & will/does require some understanding of how other things work eg the conf (configuration) files for various services.

In general, the templates are generating a set of parameters that create the contents of the conf files, all Linux servers need conf files for their services etc, & SME is no different, but the templates & custom templates concept is a safe & pretty much foolproof way of changing the conf files, & then easily being able to reset them to known good settings.

In comparison, directly changing the conf files on a regular Linux server can be fraught with difficulties when things go wrong & result in you killing off your server.
Templates/custom templates gives you a relatively simple reversing mechanisn to go back to working default settings.

ie the golden rule is to leave templates unchanged, only make changes to custom templates (which have the same name as the original templates)

While you are at it, have a read of these for good measure & hopefully gain an even better understanding of SME server
http://wiki.contribs.org/Db_command_tutorial
http://wiki.contribs.org/DB_Variables_Configuration
Title: Re: Wordpress problems
Post by: stephdl on November 19, 2015, 10:45:07 AM
http forced is an option now, but disabled by default, upgrade smeserver-wordpress