Changes

From SME Server
Jump to navigationJump to search
377 bytes added ,  07:34, 18 February 2019
m
no edit summary
Line 4: Line 4:  
(Updating template is only required if Part 1 Section C was completed)}}
 
(Updating template is only required if Part 1 Section C was completed)}}
   −
<nowiki>__TOC__</nowiki>
+
=='''Introduction'''==
 
  −
==Introduction==
   
Following Step-by-Step instructions are for installing wordpress in an i-Bay of SME Server.
 
Following Step-by-Step instructions are for installing wordpress in an i-Bay of SME Server.
 
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.  
Line 29: Line 27:  
     Administrators should make use of Groups to only allow authorized users to have access to ibay files via samba/Windows filesharing.
 
     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:''' ==
 
  −
'''<u>A) Wordpress install in an iBay of SME server:</u>'''
      +
=== A) Wordpress install in an iBay of SME server: ===
   −
A1) Create an iBay in which you wish to install wordpress on.
+
'''<u>A1)</u>''' Create an iBay in which you wish to install wordpress on.
    
When creating the iBay in server-manager:
 
When creating the iBay in server-manager:
Line 42: Line 39:  
     * - Under Public access via web, choose Entire internet without password.
 
     * - Under Public access via web, choose Entire internet without password.
 
     * - Enable Execution of dynamic content.  
 
     * - Enable Execution of dynamic content.  
 +
    * - 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]])
   −
 
+
'''<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.
A2) 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.  
  −
 
   
   db accounts setprop "iBay" PHPBaseDir /home/e-smith/files/ibays/"iBay":/tmp
 
   db accounts setprop "iBay" PHPBaseDir /home/e-smith/files/ibays/"iBay":/tmp
 
   signal-event ibay-modify "iBay"
 
   signal-event ibay-modify "iBay"
      −
A3) Issue a following command to enable Symlinks in that iBay.(Change "iBay" to the name of your ibay and remove quote marks)
+
'''<u>A3)</u>''' Issue a following command to enable Symlinks in that iBay.(Change "iBay" to the name of your ibay and remove quote marks)
    
   db accounts setprop "iBay" AllowOverride all
 
   db accounts setprop "iBay" AllowOverride all
Line 57: Line 54:  
   signal-event ibay-modify "iBay"
 
   signal-event ibay-modify "iBay"
   −
A4) Create mysql database and database user for wordpress to use *(1,2). Make sure database user has all the privileges to the database you have created. For security reasons, allow access to the database from localhost only.
+
'''<u>A4)</u>''' Create mysql database and database user for wordpress to use *(1,2). Make sure database user has all the privileges to the database you have created. For security reasons, allow access to the database from localhost only.
   −
A5) Download latest version from www.wordpress.org to your computer and unzip it. Upload unzipped wordpress to desired "iBay"/html
+
'''<u>A5)</u>''' Download latest version from www.wordpress.org to your computer and unzip it. Upload unzipped wordpress to desired "iBay"/html
      −
A6) In the SME server-manager, Create a new domain and point it to the iBay where the wordpress is installed. (Assuming you have already registered a domain with domain registrar and pointed it to your server IP)
+
'''<u>A6)</u>''' In the SME server-manager, Create a new domain and point it to the iBay where the wordpress is installed. (Assuming you have already registered a domain with domain registrar and pointed it to your server IP)
      −
A7) 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.
 
     '''!! * 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 71: 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.
   −
A8) 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
 
  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 79: Line 76:  
     * If you want to have a single blog (personal blog) on one domain, you are done.  
 
     * If you want to have a single blog (personal blog) on one domain, you are done.  
    +
===  B) Enable a Multisite:  (several blogs under one domain) ===
   −
'''<u>B) Enable a Multisite:</u>''' <u>(</u>several blogs under one domain)
+
'''<u>B1)</u>''' Open wp-config.php and add the folowing code:
 
  −
 
  −
B1) Open wp-config.php and add the folowing code:
        Line 93: Line 88:       −
B2) Log into your wordpress Dashboard
+
'''<u>B2)</u>''' Log into your wordpress Dashboard
    
Under: Tools, Network
 
Under: Tools, Network
Line 105: Line 100:       −
B3) After you click install, you will be taken to a "Create a Network of WordPress Sites" screen
+
'''<u>B3)</u>''' After you click install, you will be taken to a "Create a Network of WordPress Sites" screen
    
Make sure you follow ALL 3 steps.
 
Make sure you follow ALL 3 steps.
Line 111: Line 106:  
     * If you are planning to run several blogs under one domain, than you are done.  
 
     * If you are planning to run several blogs under one domain, than you are done.  
    +
===  C) To run several Domains on one wordpress install: ===
   −
'''<u>C) To run several Domains on one wordpress install:</u>'''
+
'''<u>C1)</u>''' You will need to install Wordpress Domain Mapping plugin.
 
  −
 
  −
C1) You will need to install Wordpress Domain Mapping plugin.
      
Find it here: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/
 
Find it here: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/
Line 122: Line 115:       −
C2) Create all your domains in the SME server-manager and point them to the iBay where you installed wordpress. (Assuming you have already registered your domains with domain registrar and pointed them to your server IP)
+
'''<u>C2)</u>''' Create all your domains in the SME server-manager and point them to the iBay where you installed wordpress. (Assuming you have already registered your domains with domain registrar and pointed them to your server IP)
   −
C3) create new sites in wordpress dashboard that will handle new domains created in step C2
+
'''<u>C3)</u>''' create new sites in wordpress dashboard that will handle new domains created in step C2
    
'''!! SME Specific Change: !!'''
 
'''!! SME Specific Change: !!'''
Line 131: Line 124:  
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 PART TWO for instruction on how to create the custom template.
   −
== PART TWO: ==
+
== '''PART TWO:''' ==
 
  −
'''Custom Templates'''
  −
 
     −
'''<u>1) Enable Wildcard Subdomains</u>'''
+
=== Custom Templates ===
    +
===  1) Enable Wildcard Subdomains ===
 
Inside following folder location:
 
Inside following folder location:
   Line 155: Line 146:  
   signal-event post-upgrade; signal-event reboot
 
   signal-event post-upgrade; signal-event reboot
   −
 
+
===  2) Fix Image display problem in multisite installation. ===
'''<u>2) Fix Image display problem in multisite installation.</u>'''
  −
 
   
Inside following folder location:
 
Inside following folder location:
   Line 258: Line 247:  
   signal-event post-upgrade; signal-event reboot
 
   signal-event post-upgrade; signal-event reboot
   −
 
+
===  3) Increase file size limit in PHP. ===
'''<u>3) Increase file size limit in PHP.</u>'''
  −
 
   
This step is not necessary, you can do it if you need to upload files/ pictures larger than the default settings in php.
 
This step is not necessary, you can do it if you need to upload files/ pictures larger than the default settings in php.
  
175

edits

Navigation menu