[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-cvs] [228] FrontEndDevelopmentSite: change 'foobar' to 'jsmith
From: |
assafgordon |
Subject: |
[Savannah-cvs] [228] FrontEndDevelopmentSite: change 'foobar' to 'jsmith' |
Date: |
Fri, 23 Sep 2016 00:45:58 +0000 (UTC) |
Revision: 228
http://svn.sv.gnu.org/viewvc/?view=rev&root=administration&revision=228
Author: agn
Date: 2016-09-23 00:45:56 +0000 (Fri, 23 Sep 2016)
Log Message:
-----------
FrontEndDevelopmentSite: change 'foobar' to 'jsmith'
Give better indication this is a person's placeholder name
and not a genetic software/hostname.
Modified Paths:
--------------
trunk/sviki/FrontEndDevelopmentSite.mdwn
Modified: trunk/sviki/FrontEndDevelopmentSite.mdwn
===================================================================
--- trunk/sviki/FrontEndDevelopmentSite.mdwn 2016-09-22 04:16:25 UTC (rev
227)
+++ trunk/sviki/FrontEndDevelopmentSite.mdwn 2016-09-23 00:45:56 UTC (rev
228)
@@ -6,9 +6,9 @@
quickly.
Development websites will have URLs such as
-<https://foobar.frontend0.sv.gnu.org>.
+<https://jsmith.frontend0.sv.gnu.org>.
The PHP code will be hosted in each developer's home directory,
-(e.g. `frontend0:/home/foobar/projects/savane/`).
+(e.g. `frontend0:/home/jsmith/projects/savane/`).
See also: [[FrontEndSetup]], [[SavannahHosts]].
@@ -24,7 +24,7 @@
Add the following line to `internal:/etc/bind/master/savannah.footer`:
- foobar.frontend0 CNAME frontend0
+ jsmith.frontend0 CNAME frontend0
Update `/etc/bind/master/savannah.header` with new serial number,
and reload with `rndc reload`.
@@ -33,10 +33,10 @@
domain name (e.g. `frontend0.savannah.gnu.org`). The DNS setup
ensures that a hostname will be included in all four possibilities:
- foobar.frontend0.savannah.gnu.org
- foobar.frontend0.savannah.nongnu.org
- foobar.frontend0.sv.gnu.org
- foobar.frontend0.sv.nongnu.org
+ jsmith.frontend0.savannah.gnu.org
+ jsmith.frontend0.savannah.nongnu.org
+ jsmith.frontend0.sv.gnu.org
+ jsmith.frontend0.sv.nongnu.org
@@ -50,13 +50,13 @@
`internal0:/root/agn/create-savane-dev-db.sh`. This script
sets a password for the user). The result is:
- mysql> select user,host from mysql.user where user='foobar';
+ mysql> select user,host from mysql.user where user='jsmith';
+---------+----------------------------+
| user | host |
+---------+----------------------------+
- | foobar | frontend.savannah.gnu.org |
- | foobar | frontend0.savannah.gnu.org |
- | foobar | localhost |
+ | jsmith | frontend.savannah.gnu.org |
+ | jsmith | frontend0.savannah.gnu.org |
+ | jsmith | localhost |
+---------+----------------------------+
3 rows in set (0.01 sec)
@@ -71,18 +71,18 @@
Test connection from `frontend0`:
## Ensure it requires a password:
- $ mysql -h internal0.sv.gnu.org -u foobar savane_foobar
- ERROR 1045 (28000): Access denied for user
'foobar'@'frontend0.savannah.gnu.org' (using password: NO)
+ $ mysql -h internal0.sv.gnu.org -u jsmith savane_jsmith
+ ERROR 1045 (28000): Access denied for user
'jsmith'@'frontend0.savannah.gnu.org' (using password: NO)
## With the password:
- $ mysql -h internal0.sv.gnu.org -u foobar -p savane_foobar
+ $ mysql -h internal0.sv.gnu.org -u jsmith -p savane_jsmith
Enter password: ******
mysql>
- ## Ensure the dev user (foobar) can not access the real database:
- $ mysql -h internal0.sv.gnu.org -u foobar -p savane
+ ## Ensure the dev user (jsmith) can not access the real database:
+ $ mysql -h internal0.sv.gnu.org -u jsmith -p savane
Enter password:
- ERROR 1044 (42000): Access denied for user
'foobar'@'frontend0.savannah.gnu.org' to database 'savane'
+ ERROR 1044 (42000): Access denied for user
'jsmith'@'frontend0.savannah.gnu.org' to database 'savane'
@@ -92,7 +92,7 @@
Clone the savane repository
- cd /home/foobar
+ cd /home/jsmith
mkdir projects ; cd projects
git clone git://git.sv.gnu.org/administration/savane.git
@@ -180,9 +180,9 @@
---------------------------
Create a separate apache configuration file:
-`frontend0:/etc/apache2/sites-available/sv-foobar-dev.conf`
+`frontend0:/etc/apache2/sites-available/sv-jsmith-dev.conf`
A symlink should exist in:
-`frontend0:/etc/apache2/sites-enabled/sv-foobar-dev.conf`
+`frontend0:/etc/apache2/sites-enabled/sv-jsmith-dev.conf`
(See example in `/etc/apache2/sites-available/sv-agn-dev.conf`.)
### Hostnames
@@ -190,10 +190,10 @@
The apache config file defines the following server names
(see also DNS section above):
- ServerName foobar.frontend0.savannah.gnu.org
- ServerAlias foobar.frontend0.sv.gnu.org
- ServerAlias foobar.frontend0.savannah.nongnu.org
- ServerAlias foobar.frontend0.sv.nongnu.org
+ ServerName jsmith.frontend0.savannah.gnu.org
+ ServerAlias jsmith.frontend0.sv.gnu.org
+ ServerAlias jsmith.frontend0.savannah.nongnu.org
+ ServerAlias jsmith.frontend0.sv.nongnu.org
@@ -204,14 +204,14 @@
generation. The following URLs will resolve to
`frontend0:/home/certbot/www/.well-known`:
- http://foobar.frontend0.sv.gnu.org/.well-known/
- http://foobar.frontend0.sv.nongnu.org/.well-known/
- http://foobar.frontend0.savannah.gnu.org/.well-known/
- http://foobar.frontend0.savannah.nongnu.org/.well-known/
+ http://jsmith.frontend0.sv.gnu.org/.well-known/
+ http://jsmith.frontend0.sv.nongnu.org/.well-known/
+ http://jsmith.frontend0.savannah.gnu.org/.well-known/
+ http://jsmith.frontend0.savannah.nongnu.org/.well-known/
To verify the setup, try to access the following file:
- wget http://foobar.frontend0.savannah.gnu.org/.well-known/foo
+ wget http://jsmith.frontend0.savannah.gnu.org/.well-known/foo
Which corresponds to `frontend0:/home/certboot/www/.well-known/foo`.
If the file is downloaded successfully, certbot's certificate
@@ -226,7 +226,7 @@
The PHP code is served from the savane git repository directory:
- DocumentRoot /home/foobar/projects/savane/frontend/php
+ DocumentRoot /home/jsmith/projects/savane/frontend/php
@@ -234,9 +234,9 @@
In this apache config file, an environment variable `SAVANE_CONF` should
point to the development site's configuration directory
-(e.g. `frontend0:/home/foobar/projects/savane-etc`).
+(e.g. `frontend0:/home/jsmith/projects/savane-etc`).
- SetEnv SAVANE_CONF /home/foobar/projects/savane-etc/
+ SetEnv SAVANE_CONF /home/jsmith/projects/savane-etc/
@@ -249,8 +249,8 @@
<Location />
# Require all granted
AuthType Basic
- AuthName "FooBar DEV"
- AuthUserFile /etc/apache2/sv-foobar-dev-passwd
+ AuthName "Jane Smith's DEV Website"
+ AuthUserFile /etc/apache2/sv-jsmith-dev-passwd
Require valid-user
</Location>
@@ -261,18 +261,18 @@
The PHP code reads the configuration from a `.savane.conf.php` file,
in a directory defined by `SAVANE_CONF` in the apache configuration
-file (see above). Example: `frontend0:/home/foobar/projects/savane-etc`.
+file (see above). Example: `frontend0:/home/jsmith/projects/savane-etc`.
The files are based on the production configuration directory in
`frontend0:/etc/savane`.
The files contain the db/user/pw for the development website:
- $ cd /home/foobar/projects/savane-etc
+ $ cd /home/jsmith/projects/savane-etc
$ grep '_db' .savane.conf.php
$sys_dbhost="208.118.235.78";
- $sys_dbname="savane_foo";
- $sys_dbuser="foobar";
+ $sys_dbname="savane_jsmith";
+ $sys_dbuser="jsmith";
$sys_dbpasswd=rtrim(file_get_contents(dirname(__FILE__).'/savane.pass'));
$ cat savane.pass
@@ -281,37 +281,37 @@
$ cat savane.ini
[database]
HOST=208.118.235.78
- USER=foobar
+ USER=jsmith
PASSWORD=XXXXXXXX
- NAME=savane_foobar
+ NAME=savane_jsmith
Other relevant settings for the development site:
- $ cd /home/foobar/projects/savane-etc
+ $ cd /home/jsmith/projects/savane-etc
$ cat .savane.conf.php
- $sys_brother_domain="foobar.frontend0.savannah.nongnu.org";
- $sys_incdir="/home/foobar/projects/savane-etc/content/gnu-content";
- $sys_name="Savannah-FOOBAR-DEV";
+ $sys_brother_domain="jsmith.frontend0.savannah.nongnu.org";
+ $sys_incdir="/home/jsmith/projects/savane-etc/content/gnu-content";
+ $sys_name="Savannah-jsmith-DEV";
The PHP code runs from apache as user `www-data`.
The configuration directory must allow `www-data` to read the files.
- $ cd /home/foobar/projects/savane-etc
+ $ cd /home/jsmith/projects/savane-etc
$ chgrp www-data .savane.conf.php savane.pass
The outcome should look like:
- $ cd /home/foobar/projects/savane-etc
+ $ cd /home/jsmith/projects/savane-etc
$ ls -la
total 168
- drwxr-xr-x 5 foobar foobar 4096 Sep 5 22:00 .
- drwxrwxr-x 5 foobar foobar 4096 Jul 27 23:30 ..
- -rwxr-x--- 1 foobar www-data 1616 Sep 5 21:58 .savane.conf.php
- -rw-r--r-- 1 foobar foobar 123540 Jul 27 23:30 cgitrepos
- drwxr-xr-x 5 foobar foobar 4096 Jul 27 23:30 content
- drwxr-xr-x 2 foobar foobar 4096 Jul 27 23:30 nongnu-conf
- -rwxr-x--- 1 foobar foobar 8533 Sep 5 22:00 savane.conf.pl
- -rw-r----- 1 foobar foobar 90 Sep 5 21:59 savane.ini
- -rw-r----- 1 foobar www-data 25 Sep 5 21:58 savane.pass
- drwxr-xr-x 2 foobar foobar 4096 Jul 27 23:30 test-conf
+ drwxr-xr-x 5 jsmith jsmith 4096 Sep 5 22:00 .
+ drwxrwxr-x 5 jsmith jsmith 4096 Jul 27 23:30 ..
+ -rwxr-x--- 1 jsmith www-data 1616 Sep 5 21:58 .savane.conf.php
+ -rw-r--r-- 1 jsmith jsmith 123540 Jul 27 23:30 cgitrepos
+ drwxr-xr-x 5 jsmith jsmith 4096 Jul 27 23:30 content
+ drwxr-xr-x 2 jsmith jsmith 4096 Jul 27 23:30 nongnu-conf
+ -rwxr-x--- 1 jsmith jsmith 8533 Sep 5 22:00 savane.conf.pl
+ -rw-r----- 1 jsmith jsmith 90 Sep 5 21:59 savane.ini
+ -rw-r----- 1 jsmith www-data 25 Sep 5 21:58 savane.pass
+ drwxr-xr-x 2 jsmith jsmith 4096 Jul 27 23:30 test-conf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-cvs] [228] FrontEndDevelopmentSite: change 'foobar' to 'jsmith',
assafgordon <=