Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
systems:linux_migration [2017/05/03 13:48]
smayr
systems:linux_migration [2018/05/02 11:41] (current)
smayr [Test Page]
Line 4: Line 4:
  
 These are the basic steps to perform: These are the basic steps to perform:
 +
 === Setup Operating System === === Setup Operating System ===
  
Line 92: Line 93:
     * ''joomlausr'' for ''auditiva_joomla15_es'' (Auditiva website, Spanish).     * ''joomlausr'' for ''auditiva_joomla15_es'' (Auditiva website, Spanish).
     * ''joomlausr'' for ''auditiva_joomla15_en'' (Auditiva website, English).     * ''joomlausr'' for ''auditiva_joomla15_en'' (Auditiva website, English).
 +
 +
 === Setup Apache === === Setup Apache ===
  
-  * Test webpage with PHP support: +==== Test Page ==== 
-    * Create ''test.php'' in directory ''/var/www''. It should have this content: <code php><?php phpinfo(); ?></code> +Test webpage with PHP support: 
-    * Point browser to ''http://localhost/test.php'' or ''http://192.168.0.x/test.php'' (where x is the IP address of the new server). +  * Create ''test.php'' in directory ''/var/www''. It should have this content: <code php><?php phpinfo(); ?></code> 
-  Setup virtual hosts for apache: +  * Point browser to ''http://localhost/test.php'' or ''http://192.168.0.x/test.php'' (where x is the IP address of the new server). 
-    Create virtual host for ''audina.net'' Create or edit file ''default'' in ''/etc/apache2/sites-available'': <code>+ 
 +==== Virtual Hosts ==== 
 +Setup virtual hosts for apache
 + 
 +Create virtual host for ''audina.net'' Create or edit file ''default'' in ''/etc/apache2/sites-available'':  
 +<code apache>
 <VirtualHost *:80> <VirtualHost *:80>
         ServerAdmin webmaster@localhost         ServerAdmin webmaster@localhost
Line 142: Line 150:
 </code> </code>
  
-    * Create virtual host for ''auditiva.us'' Create file ''auditiva'' in ''/etc/apache2/sites-available'': <code>+Create virtual host for ''auditiva.us'' Create file ''auditiva'' in ''/etc/apache2/sites-available'':  
 +<code apache>
 <VirtualHost *:80> <VirtualHost *:80>
         ServerAdmin webmaster@localhost         ServerAdmin webmaster@localhost
Line 187: Line 196:
 </VirtualHost> </VirtualHost>
 </code> </code>
-    * Verify that ''AllowOverride None'' is commented out (add a ''#'' in front) for websites to take advantage of ''.htaccess'' overrides. + 
-      * Check that overrides work on these URLs: +Verify that ''AllowOverride None'' is commented out (add a ''#'' in front) for websites to take advantage of ''.htaccess'' overrides. 
-        * http://www.audina.net/techman +    * Check that overrides work on these URLs: 
-        * http://www.audina.net/downloads/audigence +      * http://www.audina.net/techman 
-    Create link to file ''/etc/apache2/sites-available/auditiva'': <code> +      * http://www.audina.net/downloads/audigence 
-cd /etc/apache2/sites-enabled + 
-ln -s ../sites-available/auditiva 001-auditiva+Create link to file ''/etc/apache2/sites-available/auditiva'':  
 +<code bash
 +cd /etc/apache2/sites-enabled 
 +ln -s ../sites-available/auditiva 001-auditiva
 </code> </code>
 +
 === Setup Samba === === Setup Samba ===
  
Line 206: Line 219:
     * To get an smbpasswd-like output, try: <code> % pdbedit -w -L </code>       * To get an smbpasswd-like output, try: <code> % pdbedit -w -L </code>  
     * ''tdbsam'' database file is located in ''/var/lib/samba''     * ''tdbsam'' database file is located in ''/var/lib/samba''
 +
 === Setup Joomla === === Setup Joomla ===
  
Line 299: Line 313:
  
 </code> </code>
 +
 === Setup Subversion === === Setup Subversion ===
 +
 ==== Install and Configure ==== ==== Install and Configure ====
   * Source information: http://odyniec.net/articles/ubuntu-subversion-server   * Source information: http://odyniec.net/articles/ubuntu-subversion-server
Line 414: Line 430:
 % ufw status verbose % ufw status verbose
 </code> </code>
 +
 ==== Restore Repository ==== ==== Restore Repository ====
   * Create repository container directory: <code> % mkdir /data/repos </code>   * Create repository container directory: <code> % mkdir /data/repos </code>
Line 432: Line 449:
   * Load backup into new repository: <code> % svnadmin load /data/repos/myproj1 < /data/backup/repo-myproj1.svn_dump </code>   * Load backup into new repository: <code> % svnadmin load /data/repos/myproj1 < /data/backup/repo-myproj1.svn_dump </code>
   * More details: http://www.petefreitag.com/item/665.cfm   * More details: http://www.petefreitag.com/item/665.cfm
 +
 +
 === Setup IP Address === === Setup IP Address ===
  
Line 470: Line 489:
 </code> </code>
   * The option “defaults” puts a link to start the specified service in run levels 2, 3, 4 and 5 (and puts a link to stop the service into 0, 1 and 6).   * The option “defaults” puts a link to start the specified service in run levels 2, 3, 4 and 5 (and puts a link to stop the service into 0, 1 and 6).
 +
 === Setup Firewall === === Setup Firewall ===
  
Line 517: Line 537:
  
 == Ubuntu 14.04 Migration == == Ubuntu 14.04 Migration ==
 +
 === Patches to Apply After Installation === === Patches to Apply After Installation ===
-Some software packages (eg. Piwik, Piwigo) generate this error: ''pclzip.lib.php : Missing zlib extensions'' To fix it, add this code to each file using ''gzopen'' (a function deprecated in favor of ''gzopen64'' in Ubuntu 14.04).+Some software packages (eg. [[https://matomo.org|Piwik/Matomo]], Piwigo) generate this error: ''pclzip.lib.php : Missing zlib extensions'' To fix it, add this code to each file using ''gzopen'' (a function deprecated in favor of ''gzopen64'' in Ubuntu 14.04).
 <code php> <code php>
 <?php <?php