Changes

Jump to navigation Jump to search
1,273 bytes added ,  23:38, 20 September 2019
m
Line 10: Line 10:  
Instructions below will show you how to install both single wordpress install and Multisite. All steps build on each other, so if your ultimate goal is step C, Step A and B must be done first.  
 
Instructions below will show you how to install both single wordpress install and Multisite. All steps build on each other, so if your ultimate goal is step C, Step A and B must be done first.  
   −
After following step(s) below you will have a fully functional Wordpress site <u>with the exception of automatic updating</u>. Automatic Updating requires FTP access to the core files. You can manage FTP access to iBays with the contrib located [[FTP Access to Ibays|HERE]]. <u>Alternatively</u>, auto updates can be left off and: Wordpress system, plugins and themes can all be updated manually following instructions from [https://www.wordfence.com/learn/how-to-manually-upgrade-wordpress-themes-and-plugins/ HERE]   
+
After following step(s) below you will have a fully functional Wordpress site <u>with the exception of automatic updating</u>. Automatic Updating requires FTP access to the core files. You can manage FTP access to iBays with the contrib located [[FTP Access to Ibays|HERE]]. <u>Alternatively</u>, auto updates can be left off and: Wordpress system, plugins and themes can all be updated manually by following instructions from [https://www.wordfence.com/learn/how-to-manually-upgrade-wordpress-themes-and-plugins/ HERE]   
    
Instructions were originally written and tested on SME 8.x,('''*''') but should function fine in any future versions of SME Server.
 
Instructions were originally written and tested on SME 8.x,('''*''') but should function fine in any future versions of SME Server.
Line 40: Line 40:  
     * - Enable Execution of dynamic content.  
 
     * - Enable Execution of dynamic content.  
 
     * - If you enable "Force secure connections" all connections will be forced to HTTPS
 
     * - If you enable "Force secure connections" all connections will be forced to HTTPS
         (Viewers will receive "Problem with websites security certificate" error message, unless you install trusted certificates. See [[Letsencrypt|HERE]])  
+
         (If "Force secure connections" is enabled, All Viewers will receive "Problem with websites security certificate" error message, unless you
 +
        install trusted certificates.  
 +
        You can ether purchase commercial certificate, which is recommended for large retail sites, or you can use free LetsEncrypt Contrib, See [[Letsencrypt|HERE]])  
    
'''<u>A2)</u>''' Issue a following command to enable PHP temporary upload folder in that iBay.(Change "iBay" to the name of your ibay and remove quote marks). Note you may have to add additional directories beyond what is shown here depending on the plugins you select. Take a look at /var/log/messages if something isn't working. PHP will issue warnings to that log file. Additional directories are added to the db accounts statement below by separating them with a colon.
 
'''<u>A2)</u>''' Issue a following command to enable PHP temporary upload folder in that iBay.(Change "iBay" to the name of your ibay and remove quote marks). Note you may have to add additional directories beyond what is shown here depending on the plugins you select. Take a look at /var/log/messages if something isn't working. PHP will issue warnings to that log file. Additional directories are added to the db accounts statement below by separating them with a colon.
Line 62: Line 64:       −
'''<u>A7)</u>''' Point your web browser to your domain and go through the installation process.++
+
'''<u>A7)</u>''' Point your web browser to your domain and go through the installation process.++<blockquote>++ Wordpress version 5.1+ requires PHP 5.6.20 but default PHP install on SME Server 9.2 is 5.3.3</blockquote><blockquote>You will need to install contrib: [[PHP Software Collections]] and assign your iBay PHP version <s>5.6</s> 7.1 or higher (PHP 5.6 and 7.0 are already EOL, 7.1 EOL Dec 2019). If you don't complete this step, you will get a blank screen when doing step '''A7'''</blockquote>
 
  −
++ Wordpress 5.1+ requires PHP 5.6.20 but default PHP install on SME Server 9.2 is 5.3.3
  −
 
  −
You will need to install contrib: [[PHP Software Collections]] and assign your iBay PHP version 5.6 or higher
   
     '''!! * FOR SECURITY REASONS:'''
 
     '''!! * FOR SECURITY REASONS:'''
 
  1) Never use "admin" for admin user name, that is the first thing hackers try
 
  1) Never use "admin" for admin user name, that is the first thing hackers try
Line 72: Line 70:  
     Changing the table prefix to a random string makes it difficult if not impossible for a hacker to execute remote SQL injection attacks.
 
     Changing the table prefix to a random string makes it difficult if not impossible for a hacker to execute remote SQL injection attacks.
   −
'''<u>A8)</u>''' Enable the wp-content/uploads folder to be writeable by the webserver process
+
'''<u>A8)</u>''' Enable the wp-content/uploads folder to be writeable by the webserver process (Change "iBay" to the name of your ibay and remove quote marks)
 +
 
 +
(If your WP is installed directly in .../ibays/"iBay"/html/ , you can ignore/remove "wpsitepath", if you have WP installed in sub-directory of /html/"wpsitepath", change "wpsitepath" to the name of your sub-directory and remove quote marks)
 
  chown -R admin:shared /home/e-smith/files/ibays/"iBay"/html/"wpsitepath"
 
  chown -R admin:shared /home/e-smith/files/ibays/"iBay"/html/"wpsitepath"
 
  mkdir -p /home/e-smith/files/ibays/"iBay"/html/"wpsitepath"/wp-content/uploads
 
  mkdir -p /home/e-smith/files/ibays/"iBay"/html/"wpsitepath"/wp-content/uploads
Line 259: Line 259:        +
++ This code makes changes to default PHP installation. If you are using [[PHP Software Collections]] (As suggested in step '''A7''') see below.
 
   db configuration setprop php MemoryLimit 128M
 
   db configuration setprop php MemoryLimit 128M
 
   db configuration setprop php PostMaxSize 112M
 
   db configuration setprop php PostMaxSize 112M
Line 265: Line 266:  
   sv t httpd-e-smith
 
   sv t httpd-e-smith
   −
Sidenote: To see how to change file size limits for other aplications, see here: http://wiki.contribs.org/Email#Set_max_email_size
+
++ If you are using [[PHP Software Collections]], use this code. If you are using different PHP-SCL version other than php71, you can replace that section with version you are using for your Wordpress iBay.<syntaxhighlight>
 
+
db configuration setprop php71 MemoryLimit 128M
 +
db configuration setprop php71 PostMaxSize 112M
 +
db configuration setprop php71 UploadMaxFilesize 96M
 +
signal-event php-update
 +
</syntaxhighlight>
    +
Side note: To see how to change file size limits for other applications, see here: http://wiki.contribs.org/Email#Set_max_email_size
    
Good Luck
 
Good Luck
178

edits

Navigation menu