Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
systems:linux_migration [2010/08/04 10:53] 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 11: | Line 12: | ||
alias ll='ls -la' | alias ll='ls -la' | ||
</ | </ | ||
+ | |||
==== OpenSUSE ==== | ==== OpenSUSE ==== | ||
* Install required packages: | * Install required packages: | ||
Line 91: | Line 93: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | |||
=== Setup Apache === | === Setup Apache === | ||
- | * Test webpage with PHP support: | + | ==== Test Page ==== |
- | * Create '' | + | Test webpage with PHP support: |
- | * Point browser to '' | + | * Create '' |
- | | + | * Point browser to '' |
- | | + | |
+ | ==== Virtual Hosts ==== | ||
+ | Setup virtual hosts for apache. | ||
+ | |||
+ | Create virtual host for '' | ||
+ | < | ||
< | < | ||
ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost | ||
Line 141: | Line 150: | ||
</ | </ | ||
- | * Create virtual host for '' | + | Create virtual host for '' |
+ | < | ||
< | < | ||
ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost | ||
Line 186: | Line 196: | ||
</ | </ | ||
</ | </ | ||
- | * Verify that '' | + | |
- | * Check that overrides work on these URLs: | + | Verify that '' |
- | * http:// | + | * Check that overrides work on these URLs: |
- | * http:// | + | * http:// |
- | | + | * http:// |
- | % cd / | + | |
- | % ln -s ../ | + | Create link to file ''/ |
+ | < | ||
+ | $ cd / | ||
+ | $ ln -s ../ | ||
</ | </ | ||
+ | |||
=== Setup Samba === | === Setup Samba === | ||
Line 205: | Line 219: | ||
* To get an smbpasswd-like output, try: < | * To get an smbpasswd-like output, try: < | ||
* '' | * '' | ||
+ | |||
=== Setup Joomla === | === Setup Joomla === | ||
Line 298: | Line 313: | ||
</ | </ | ||
+ | |||
=== Setup Subversion === | === Setup Subversion === | ||
+ | |||
==== Install and Configure ==== | ==== Install and Configure ==== | ||
* Source information: | * Source information: | ||
Line 413: | Line 430: | ||
% ufw status verbose | % ufw status verbose | ||
</ | </ | ||
+ | |||
==== Restore Repository ==== | ==== Restore Repository ==== | ||
* Create repository container directory: < | * Create repository container directory: < | ||
Line 431: | Line 449: | ||
* Load backup into new repository: < | * Load backup into new repository: < | ||
* More details: http:// | * More details: http:// | ||
+ | |||
+ | |||
=== Setup IP Address === | === Setup IP Address === | ||
Line 469: | Line 489: | ||
</ | </ | ||
* 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 475: | Line 496: | ||
% ufw status verbose | % ufw status verbose | ||
</ | </ | ||
- | * Add rule to open needed ports (web, ssh, samba): < | + | * Add rule to open needed ports (web, ssh, samba, subversion): < |
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
- | #% ufw allow to 192.168.0.2 | ||
- | #% ufw allow to 192.168.0.2 | ||
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
+ | % ufw allow to 192.168.0.2 | ||
</ | </ | ||
# turn on ufw | # turn on ufw | ||
Line 491: | Line 511: | ||
# allow our ssh port | # allow our ssh port | ||
#ufw allow 5555 | #ufw allow 5555 | ||
+ | # | ||
# local | # local | ||
+ | # | ||
+ | # http | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # ssh | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # samba | ||
+ | #ufw allow to 192.168.0.2 | ||
+ | #ufw allow to 192.168.0.2 | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # subversion | ||
+ | ufw allow to 192.168.0.2 | ||
# deny everything else | # deny everything else | ||
ufw default deny | ufw default deny | ||
Line 505: | Line 535: | ||
* Install GUI for '' | * Install GUI for '' | ||
* It shows up in the GUI under System > Administration > Firewall Configuration. | * It shows up in the GUI under System > Administration > Firewall Configuration. | ||
+ | |||
+ | == Ubuntu 14.04 Migration == | ||
+ | |||
+ | === Patches to Apply After Installation === | ||
+ | Some software packages (eg. [[https:// | ||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | /** | ||
+ | * On ubuntu in some cases, there is a bug that gzopen does not exist and one must use gzopen64 instead | ||
+ | * Credit goes to the piwik team for this. | ||
+ | * See more: http:// | ||
+ | */ | ||
+ | if (!function_exists(' | ||
+ | && function_exists(' | ||
+ | function gzopen($filename , $mode = ' | ||
+ | { | ||
+ | return gzopen64($filename , $mode, $use_include_path); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | ?> | ||
+ | </ |