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 [2018/05/02 11:35]
smayr [Setup Apache]
systems:linux_migration [2018/05/02 11:41] (current)
smayr [Test Page]
Line 97: Line 97:
 === 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 144: Line 149:
 </VirtualHost> </VirtualHost>
 </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 189: 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>