Changes between Version 17 and Version 18 of HowTo/WriteInstallScript
- Timestamp:
- 09/25/12 16:15:56 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/WriteInstallScript
v17 v18 122 122 * modify the default port by running the following commande where <NEW_PORT> is the port you want to use: 123 123 {{{ 124 sudo sed 's/^Listen 80$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf |sudo tee /etc/httpd/conf/httpd.conf >/dev/null124 sudo sed 's/^Listen 80$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf > httpd.conf ; sudo mv httpd.conf /etc/httpd/conf/httpd.conf 125 125 }}} 126 126 * start the web server : … … 130 130 If you get an error someone else might be using the port you used, change it again by using the following command where <OLD_PORT> is the port you used in the previous command: 131 131 {{{ 132 sudo sed 's/^Listen <OLD_PORT>$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf |sudo tee /etc/httpd/conf/httpd.conf >/dev/null132 sudo sed 's/^Listen <OLD_PORT>$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf > httpd.conf ; sudo mv httpd.conf /etc/httpd/conf/httpd.conf 133 133 }}}