Warning: rookie questions to follow. My questions below will illustrate how new I am to all of this :)
I am trying to learn some unix and also practice at installing webwork in a unix system. I am using a laptop that is not intended to be an actual web server. Im not sure how to adjust the installation directions given on the Wiki so that I can use WW locally.
More specifically, what I want to do is practice installing WW 2.7 with ubuntu 12.04 and will use github as described at the wiki. I want to use WebWork on my laptop just to try out the installation. The idea is that if I can become sufficient at doing this, I could then move to doing this on our department server (that I do not currently have root access).
For example, after installing ubuntu I need to modify the info.conf file in apache2. What do I use for replacing the following line?
# Allow from 192.0.2.0/24
There are a few other places where the server name and location are required. I was thinking I just use the url of my computer, just wasnt sure exactly how.
Similary what would the address be that I use in my firefox browser to access Webwork after I have done the installation?
I have another question about network manager. In the Wiki installation notes for installing unbuntu 12.04 and WW 2.7 we are instructed to use the line
$sudo apt-get install gnome-network-admin
<wwadmin password>
I did this and got no errors. However, I dont see how to access the network administrator to follow the directions that follow...
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Hedley Pinsent -The document referred in the previous post (Alex Jordan) )would be a good place to start.
Also there has been a previous discussion from which you may gather some useful information.
http://webwork.maa.org/moodle/mod/forum/discuss.php?d=2830
regards
hp
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Arnold Pizer -Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Jim Fischer -wwadmin@FunkeeMonkee:~$ sudo apache2ctl graceful
webwork.apache2-config: WeBWorK server is starting
webwork.apache2-config: WeBWorK root directory set to /opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
webwork.apache2-config: The following locations and urls are set in webwork2/conf/site.conf
webwork.apache2-config: PG root directory set to /opt/webwork/pg
webwork.apache2-config: WeBWorK server userID is www-data
webwork.apache2-config: WeBWorK server groupID is wwdata
webwork.apache2-config: The webwork url on this site is http://localhost/webwork2
WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
WebworkSOAP::WSDL: rpc_url set to http://localhost/webwork2_rpc
WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
webwork.apache2-config: WeBWorK server is starting
webwork.apache2-config: WeBWorK root directory set to /opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
webwork.apache2-config: The following locations and urls are set in webwork2/conf/site.conf
webwork.apache2-config: PG root directory set to /opt/webwork/pg
webwork.apache2-config: WeBWorK server userID is www-data
webwork.apache2-config: WeBWorK server groupID is wwdata
webwork.apache2-config: The webwork url on this site is http://localhost/webwork2
Localize.pm: Full path for the localization directory set to |/opt/webwork/webwork2/lib/WeBWorK/Localize|
WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
WebworkSOAP::WSDL: rpc_url set to http://localhost/webwork2_rpc
WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Hedley Pinsent -I get it also.
Another message to follow....
![Attachment fqdn.png](https://webwork.maa.org/moodle/pluginfile.php/27/mod_forum/attachment/7225/fqdn.png?forcedownload=1)
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Hedley Pinsent -a) localhost - to see if apache is working
b) localhost/webwork2 - to check the webwork
Another message to follow
![Attachment TwoStage.png](https://webwork.maa.org/moodle/pluginfile.php/27/mod_forum/attachment/7226/TwoStage.png?forcedownload=1)
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Hedley Pinsent -I constantly run into issues about ownership and permissions; this could be due to a number of things (root copying the files, or the history of the file, etc).
You might possibly review the permissions section of the documentation; kind of like a doctor telling you to get lots of rest - how can it hurt.
The command line/ terminal is the best/only (?) way to do this; you can use the GUI to check your results.
Part of the documentation file follows...
Setting Permissions
The PG installation directory and files should be owned by wwadmin
and not writable by other users:
$ cd /opt/webwork/pg $ chmod -R u+rwX,go+rX .
Most WeBWorK directories and files should also be owned by wwadmin
and not writable by other users:
$ cd /opt/webwork/webwork2 $ chmod -R u+rwX,go+rX .
Certain data directories need to be writable by the web server. These are DATA
, courses
, htdocs/tmp
, logs
, and tmp
. It is convenient to give WeBWorK administrators access to these directories as well, so they can perform administrative tasks such as removing temporary files, creating and editing courses from the command line, managing logs, and so on. We will create a new group called wwdata
, containing both the WeBWorK administrators and the web server. Run the commands
$ sudo addgroup wwdata <wwadmin password> $ sudo adduser wwadmin wwdata
If there are other users who will also be administering WeBWorK files, now is a good time to add them. To do this
- Open
Dash Home
, typeUser
and openUser Accounts
- Click the "Unlock" icon and enter the <wwadmin password>
- Click the "+" icon and create the new account
- And remember to add the new account to the
wwdata
group as above.
Now add the Apache2 webserver (which runs as www-data
) to the wwdata
group:
$ sudo adduser www-data wwdata
You can check that this succeeded in a terminal window by entering
$ id wwadmin
and then you should see wwdata
listed under groups. Also
$ id www-data
should show wwdata listed under groups. Now we make the WeBWorK directories that need to be writable by the web server have wwdata
as their group. The following are rather long commands; you might want to copy them and paste them into your terminal window rather than typing them.
$ su Password: <root password> # cd /opt/webwork/webwork2/ # chgrp -R wwdata DATA ../courses htdocs/tmp logs tmp # chmod -R g+w DATA ../courses htdocs/tmp logs tmp # find DATA/ ../courses/ htdocs/tmp logs/ tmp/ -type d -a -exec chmod g+s {} \; # exit $
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Jim Fischer -However, the webwork2 directory does not seem to exist.
I went thru the permissions directions again, and reran apache install. Same result.
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Arnold Pizer -Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Jim Fischer -The only things I skipped were the stuff related to gnome-network-admin
(however, I did run the command $sudo apt-get install gnome-network-admin)
Im using a 32 bit machine in case that makes a difference.
Ive explored the folder /opt/webwork/webwork2 and all seems to be there.
I can see the pages http://localhost/webwork2_files and http://localhost using firefox but when I try http://localhost/webwork2 the browser cant find a page
I know you said I dont need to mess with the network administrator program that I installed using $sudo apt-get install gnome-network-admin. but I am curious why I cant "see" that program?
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Hedley Pinsent -However, perhaps you have over-achieved in this area and what remains are additional items that are confusing the system.
Attached is a composite screenshot showing the different tabs in the network admin gui; yours may be adjusted to match.
In the background is the install document for 2.5 as this was in addition to the release notes what I worked from.
In my next post I will attach a copy of my site.conf.
I contemplated attaching my directory structure but it is not "clean"
![Attachment gnomeComposite.png](https://webwork.maa.org/moodle/pluginfile.php/27/mod_forum/attachment/7232/gnomeComposite.png?forcedownload=1)
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Hedley Pinsent -Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Jim Fischer -In ubuntu software center I see that gnome-network-admin has been installed. Okay, now I found it. I will try to set it as you have illustrated and also use the installation guide.
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Arnold Pizer -Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Jim Fischer -opt/webwork/webwork2/conf folder
when I ran $ diff webwork.apache2-config webwork.apache2-config.dist
there was no difference.
49c49
< $server_root_url = 'http://localhost'; # e.g. 'http://webwork.yourschool.edu' or 'http://localhost'
---
> $server_root_url = ''; # e.g. 'http://webwork.yourschool.edu' or 'http://localhost'
151c151
< $database_password ="milo1sc00l";
---
> $database_password ="passwordRW";
211c211
< $siteDefaults{timezone} = "America/Los_Angeles";
---
> $siteDefaults{timezone} = "America/New_York";
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Arnold Pizer -Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Jim Fischer -When trying to access loalhost/webwork2 using firefox I get the error message
! The connection was reset
The connection to the server was reset while the page was loading
When using chromium:
No data received
Unable to load the webpage because the server sent no data
However, if I try to access localhost/manifold I get the common error message
Not Found
The requested url /manifold was not found on this server
-------------------------------------------------------------------------------
Apache/2.2.22 (Ubuntu) Sever at localhost Port 80
Also, I discovered why I got no difference when applying diff to the webwork.apache2-config files. I had accidently ran the copy command twice when I was redoing some of the commands.
Anyway, at the risk of wasting some time I have decided to reinstall ubuntu and start over with a clean slate.
I will post results later.
Jim
Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Arnold Pizer -Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Arnold Pizer -Re: Installing Webwork 2.7/Ubuntu 12.04 without a "server"
by Jim Fischer -I cant believe I made a mistake the first time
![wink wink](http://webwork.maa.org/moodle/pix/s/wink.gif)
Thanks so much for patiently working with me. It is great to see the new version!
I noticed that you folks are working fast as the MLT tagging changes we made in Virginia last week are already available.
FYI
This isnt the best place to bring it up, but I noticed that the section lists are alphabetical. When we were tagging problems last week, we were using a local browser in VA where Jeff was able to list the sections in a more course/logical order.
Next Im going to install the CAPA library, Ive always wanted to see whats in there...