eg-259:practicals:3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-259:practicals:3 [2012/03/14 07:56] – [What Does Deployment Do?] eechris | eg-259:practicals:3 [2012/03/14 10:34] (current) – [Trouble Shooting] eechris | ||
---|---|---|---|
Line 45: | Line 45: | ||
===== Configure deploy.sh for Linux/Unix ===== | ===== Configure deploy.sh for Linux/Unix ===== | ||
- | On Linux/Unix (probably including Mac OS X), edit the bash-shell script '' | + | On Linux/Unix (probably including Mac OS X), edit the bash-shell script '' |
- | SERVER_ROOT=/ | + | SERVER_ROOT=/ |
+ | DOCUMENT_ROOT=/var/www | ||
+ | CGI_BIN=/ | ||
- | to reflect your local situation (if you installed | + | to reflect your local situation. (Some examples for the servers I know are in the file commented out.) |
+ | |||
+ | Now run deploy.sh as root: | ||
<cli> | <cli> | ||
$ sudo ./deploy.sh | $ sudo ./deploy.sh | ||
Line 71: | Line 75: | ||
===== Trouble Shooting ===== | ===== Trouble Shooting ===== | ||
- | If any of the demos fails, the most likely reason will be file permissions. Check that the resource '' | + | If any of the demos fails, the most likely reason will be file permissions. Check that the resource '' |
+ | |||
+ | Another possible problem, especially on Unix-based operating systems (Linux/Mac) may be due to line endings. Ubuntu provides a package that provides tools to correct this: | ||
+ | < | ||
+ | $ sudo apt-get install tofrodos | ||
+ | $ cd /usr/bin | ||
+ | $ sudo ln -s fromdos dos2unix | ||
+ | $ sudo ln -s todos unix2dos | ||
+ | </ | ||
+ | |||
+ | Then change the line endings of the cgi-script: | ||
+ | < | ||
+ | $ cd $CGI_BIN/ | ||
+ | $ sudo dos2unix echo_params.cgi | ||
+ | </ | ||
- | If these tips don't help, it would be worth noting the error message returned by the web server and looking into the server error log '' | + | If these tips don't help, it would be worth noting the error message returned by the web server and looking into the server error log '' |
===== References ===== | ===== References ===== |
eg-259/practicals/3.txt · Last modified: 2012/03/14 10:34 by eechris