Mercurial > hg > mlmmj
comparison contrib/web/php-admin/README @ 759:73c8715367fb
Better techniques for locating support files in php-admin
- existing installations will need to have their conf/config.php altered to set
the variable $confdir
author | Ben Schmidt |
---|---|
date | Wed, 06 Oct 2010 10:35:04 +1100 |
parents | 16b4215d0709 |
children | 331115b58da4 |
comparison
equal
deleted
inserted
replaced
752:c02582939bbc | 759:73c8715367fb |
---|---|
5 1) Copy the files from the php-admin directory of the mlmmj distribution to a | 5 1) Copy the files from the php-admin directory of the mlmmj distribution to a |
6 suitable location and point your webroot to the htdocs directory. If you | 6 suitable location and point your webroot to the htdocs directory. If you |
7 don't want the webinterface in the root of your website it is recommended to | 7 don't want the webinterface in the root of your website it is recommended to |
8 make an alias in your web server configuration in order to keep the conf | 8 make an alias in your web server configuration in order to keep the conf |
9 directory at the same level as the htdocs directory and still outside | 9 directory at the same level as the htdocs directory and still outside |
10 webscope. | 10 webscope. If you want to keep it somewhere else, you will need to modify |
11 the first line of code in index.php, edit.php and save.php. | |
11 | 12 |
12 2) Change the permissions of the listdir/control directories of any list you | 13 2) If your lists are stored somewhere other than /var/spool/mlmmj, edit |
14 conf/config.php to reflect this. | |
15 | |
16 3) Change the permissions of the listdir/control directories of any list you | |
13 want to control using the web-interface, so the web server can write in it: | 17 want to control using the web-interface, so the web server can write in it: |
14 | 18 |
15 # chown -R wwwrun /var/spool/mlmmj/mlmmj-test/control/ | 19 # chown -R wwwrun /var/spool/mlmmj/mlmmj-test/control/ |
16 | 20 |
17 | 21 4) If the web server does not run as the same user the mailserver writes as |
18 3) If the web server does not run as the same user the mailserver writes as | |
19 you need to create a group (eg. mlmmj) and add both users to it. The | 22 you need to create a group (eg. mlmmj) and add both users to it. The |
20 subscribers.d directory then needs to be writable by that group: | 23 subscribers.d directory then needs to be writable by that group: |
21 | 24 |
22 # chgrp -R mlmmj /var/spool/mlmmj/mlmmj-test/subscribers.d/ | 25 # chgrp -R mlmmj /var/spool/mlmmj/mlmmj-test/subscribers.d/ |
23 # chmod -R g+w /var/spool/mlmmj/mlmmj-test/subscribers.d/ | 26 # chmod -R g+w /var/spool/mlmmj/mlmmj-test/subscribers.d/ |
24 | 27 |
25 To enable access control on Apache you have to: | 28 5) To enable access control on Apache you have to rename dot.htaccess to |
26 | 29 .htaccess and edit the path inside the file to point to a htpasswd file |
27 3) Rename dot.htaccess to .htaccess and edit the path inside the file to point | 30 somewhere outside the webscope. |
28 to a htpasswd file somewhere outside the webscope. | |
29 | 31 |
30 If you don't have one already, you can create one like this | 32 If you don't have one already, you can create one like this |
31 | 33 |
32 htpasswd -c /home/mlmmj/htpasswd USER | 34 htpasswd -c /home/mlmmj/htpasswd USER |
33 | 35 |
34 It will then ask you for a password for the given username. | 36 It will then ask you for a password for the given username. |
35 | 37 |
36 4) That is it, you are ready to use the interface. | 38 6) That is it, you are ready to use the interface. |