Changes between Version 41 and Version 42 of LAMP/Tutorial
- Timestamp:
- 11/25/11 01:22:39 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LAMP/Tutorial
v41 v42 283 283 }}} 284 284 285 Use bash scripting to upload the certificate, move it to the right place, set the correct permissions and owner/group, and finally restart pSConfig:285 Use bash scripting to upload the certificate, move it to the right place, set the correct permissions and owner/group, update the CA Certificates, and finally restart pSConfig: 286 286 287 287 {{{ … … 291 291 > ssh fernande@$node "sudo chown root.perfsonar /usr/local/etc/protogeni/ssl/lampcert.pem" 292 292 > ssh fernande@$node "sudo chmod 440 /usr/local/etc/protogeni/ssl/lampcert.pem" 293 > ssh fernande@$node "sudo /usr/local/etc/protogeni/ssl/getcacerts" 293 294 > ssh fernande@$node "sudo /etc/init.d/psconfig restart" 294 295 > done 295 296 }}} 296 297 297 Note that services run under the ''perfsonar'' user, and the httpd server will read the certificate as ''root''. The last step is to (re)start ''pSConfig'', the service that fetches and configures the nodes according to the topology information. If you did not setup the RSpec to run the bootstrap.sh script on startup, you will need to run it on all nodes before starting pSConfig (e.g. I would add {{{ssh fernande@$node "sudo /usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lamptutorial urn:publicid:IDN+emulab.net+user+fernande"}}} before the last line on the above command, while you would need to change the slice and user URNs).298 Note that services run under the ''perfsonar'' user, and the httpd server will read the certificate as ''root''. The last step is to (re)start ''pSConfig'', the service that fetches and configures the nodes according to the topology information. If you did not setup the RSpec to run the bootstrap.sh script on startup, you will need to run it on all nodes before starting pSConfig, even if you did, its a good idea to run it again as it's been known to fail (e.g. I would add {{{ssh fernande@$node "sudo /usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lamptutorial urn:publicid:IDN+emulab.net+user+fernande"}}} before the last line on the above command, while you would need to change the slice and user URNs). 298 299 299 300 === 5. Accessing the LAMP Portal ===