Changes between Version 20 and Version 21 of HowTo/WriteInstallScript
- Timestamp:
- 09/25/12 16:30:35 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/WriteInstallScript
v20 v21 137 137 }}} 138 138 * start the web server : 139 139 {{{ 140 140 sudo /sbin/service httpd start 141 141 }}} 142 142 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: 143 143 {{{ 144 144 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 145 145 }}} 146 147 === Test your webserver === 148 In order to test that your webserver is up and running open a web brower and point it at http://plnode-03.gpolab.bbn.com:<NEW_PORT>/ you should get the apache welcome page. 149 150 === Upload files to your webserver === 151 In order to make files publicly available in your server do these two simple steps : 152 * '''transfer the file to the PlanetLab node'''. You can use scp to do this e.g.: 153 {{{ 154 scp -i /home/nriga/.ssh/geni_key install-mpich.tar.gz pgenigpolabbbncom_inkisrv@plnode-03.gpolab.bbn.com: 155 }}} 156 * login to your node and move the file to '/var/www/html', e.g. 157 {{{ 158 sudo mv install-mpich.tar.gz /var/www/html/ 159 }}}