Difference between revisions of "Setting up a Development Server"
(New page: {|class="messagebox" |- | These instructions was written for Apache 1.3. To use with Apache 2.x, use <code>wwapache2ctl</code> rather than <code>wwapachectl</code> and use the config files...) |
|||
Line 27: | Line 27: | ||
bin/wwapachectl start |
bin/wwapachectl start |
||
+ | |||
+ | [[Category:Developers]] |
Revision as of 13:01, 20 February 2008
Follow the instructions at CVS Commit Access to check out the webwork2
and pg
modules from the system
repository into your home directory. The checkout command will look like this:
cvs -d :ext:yourname@cvs.webwork.rochester.edu:/webwork/cvs/system checkout pg webwork2
In webwork2/bin
, copy wwapachectl.dist
to wwapachectl
. Edit that file:
- Set
HTTPD
to the location of Apache on your system. This could be/usr/bin/apache
,/usr/bin/httpd
,/usr/local/bin/httpd
,/usr/local/sbin/httpd
etc. - Set
WEBWORKROOT
to the location of your working copy ofwebwork2
, e.g./home/yourname/webwork2
. - If you will be sharing courses with other developers on the same system, uncomment the line
umask 2
.
In webwork2/conf
, copy each *.dist
file, removing the .dist
extension.
Edit devel-site.apache-config
so that the configuration therein matches that of your system's Apache configuration. You can usually find your system's Apache configuration somewhere like /etc/apache/httpd.conf
or /usr/local/apache/conf/httpd.conf
.
Edit devel.apache-config
, and modify the Include
lines to point to your copies of devel-site.apache-config
and webwork.apache-config
.
Edit webwork.apache-config
, setting the $webwork_dir
variable to the same location of your working copy of webwork2
. This should be the same as the value you used for the WEBWORKROOT
variable in wwapachectl
.
Edit global.conf
as described in Installation_Manual_for_WeBWorK_2.4#Configuring_WeBWorK. Set $pg_root
to the location of your working copy of pg
, e.g. /home/yourname/pg
.
To start your system, change to your webwork2
directory and type:
bin/wwapachectl start