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...) |
m (marked as historical) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Historical}} |
||
+ | {{Outdated}} |
||
{|class="messagebox" |
{|class="messagebox" |
||
|- |
|- |
||
Line 10: | Line 12: | ||
In <code>webwork2/bin</code>, copy <code>wwapachectl.dist</code> to <code>wwapachectl</code>. Edit that file: |
In <code>webwork2/bin</code>, copy <code>wwapachectl.dist</code> to <code>wwapachectl</code>. Edit that file: |
||
− | * Set <code>HTTPD</code> to the location of Apache on your system. This could be <code>/usr/bin/apache</code>, <code>/usr/bin/httpd</code>, <code>/usr/local/bin/httpd</code>, <code>/usr/local/sbin/httpd</code> etc. |
+ | * Set <code>HTTPD</code> to the location of Apache on your system. This could be <code>/usr/bin/apache</code>, <code>/usr/bin/httpd</code>, <code>/usr/local/bin/httpd</code>, <code>/usr/local/sbin/httpd</code> etc. (Try typing <code>which apachectl</code> and then read the apachectl file -- it will have an entry for HTTPD. ) |
− | * Set <code>WEBWORKROOT</code> to the location of your working copy of <code>webwork2</code>, e.g. <code>/home/yourname/webwork2</code>. |
+ | * Set <code>WEBWORKROOT</code> to the location of your working copy of <code>webwork2</code>, e.g. <code>/home/yourname/webwork2</code>. |
+ | |||
* If you will be sharing courses with other developers on the same system, uncomment the line <code>umask 2</code>. |
* If you will be sharing courses with other developers on the same system, uncomment the line <code>umask 2</code>. |
||
Line 27: | Line 29: | ||
bin/wwapachectl start |
bin/wwapachectl start |
||
+ | |||
+ | [[Category:Developers]] |
Latest revision as of 14:30, 21 June 2021
Outdated | IMPORTANT: The content of this page is outdated. Do not rely on the information contained in this page. |
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. (Try typingwhich apachectl
and then read the apachectl file -- it will have an entry for HTTPD. ) - 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