Changes between Version 17 and Version 18 of HowTo/WriteInstallScript


Ignore:
Timestamp:
09/25/12 16:15:56 (12 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/WriteInstallScript

    v17 v18  
    122122   * modify the default port by running the following commande where <NEW_PORT> is the port you want to use:
    123123   {{{
    124 sudo sed 's/^Listen 80$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf |sudo tee /etc/httpd/conf/httpd.conf >/dev/null
     124sudo sed 's/^Listen 80$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf > httpd.conf ; sudo mv httpd.conf /etc/httpd/conf/httpd.conf
    125125}}}
    126126   * start the web server :
     
    130130       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:
    131131    {{{
    132 sudo sed 's/^Listen <OLD_PORT>$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf |sudo tee /etc/httpd/conf/httpd.conf >/dev/null
     132sudo sed 's/^Listen <OLD_PORT>$/Listen <NEW_PORT>/' /etc/httpd/conf/httpd.conf > httpd.conf ; sudo mv httpd.conf /etc/httpd/conf/httpd.conf
    133133}}}