Changes

From SME Server
Jump to navigationJump to search
1,036 bytes added ,  04:35, 3 June 2019
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 24: Line 24:  
   Notice: When installing ANY web application in an iBay of the SME server, there is always a danger of internal network
 
   Notice: When installing ANY web application in an iBay of the SME server, there is always a danger of internal network
 
   users changing (intentionally or accidentally) files in the application iBay.  
 
   users changing (intentionally or accidentally) files in the application iBay.  
   If there is a possible security issue with internal network users, it is recommended to install wordpress
+
    
   contribution from here: http://wiki.contribs.org/Category:Contrib
+
   To mitigate the risk, administrators should make use of Groups to only allow authorized users to have access to ibay files via samba/Windows filesharing.
  If there is no internal network user security issue, or the server only has admin access, you may continue.
  −
    Administrators should make use of Groups to only allow authorized users to have access to ibay files via samba/Windows filesharing.
      
== '''PART ONE:''' ==
 
== '''PART ONE:''' ==
Line 64: Line 62:       −
'''<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>
 
     '''!! * 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 70: Line 68:  
     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 99: Line 99:  
     * NOTE- By default SME Server does not support Wildcard Subdomains, so you will need to choose Subfolder.  
 
     * NOTE- By default SME Server does not support Wildcard Subdomains, so you will need to choose Subfolder.  
 
If you want or need to use a Subdomain, you will need to create a custom template for SME Server to support Wildcard Subdomains.  
 
If you want or need to use a Subdomain, you will need to create a custom template for SME Server to support Wildcard Subdomains.  
For instructions on how to create custom template for Wildcard Subdomains, go below to PART TWO for instructions.  
+
For instructions on how to create custom template for Wildcard Subdomains, go below to <u>PART TWO #1</u> for instructions.  
      Line 124: Line 124:  
(required in order for multisite to display images properly)
 
(required in order for multisite to display images properly)
   −
SME Server and wordpress use the same folder name "files" for totally different folders in different locations. That conflict is causing problems displaying images inside blogs that use Domain mapping. In order for the images to show up correctly, we need to create a custom template to fix the conflict. Go below to PART TWO for instruction on how to create the custom template.
+
SME Server and wordpress use the same folder name "files" for totally different folders in different locations. That conflict is causing problems displaying images inside blogs that use Domain mapping. In order for the images to show up correctly, we need to create a custom template to fix the conflict. Go below to <u>PART TWO #2</u> for instruction on how to create the custom template.
    
== '''PART TWO:''' ==
 
== '''PART TWO:''' ==
Line 257: Line 257:        +
++ 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 263: Line 264:  
   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
175

edits

Navigation menu