savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] [493] update instructions


From: ineiev
Subject: [Savannah-cvs] [493] update instructions
Date: Mon, 2 Jan 2023 06:14:30 -0500 (EST)

Revision: 493
          
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=493
Author:   ineiev
Date:     2023-01-02 06:14:29 -0500 (Mon, 02 Jan 2023)
Log Message:
-----------
update instructions

Modified Paths:
--------------
    trunk/sviki/RunningSavaneLocally.mdwn

Modified: trunk/sviki/RunningSavaneLocally.mdwn
===================================================================
--- trunk/sviki/RunningSavaneLocally.mdwn       2022-10-24 20:50:02 UTC (rev 
492)
+++ trunk/sviki/RunningSavaneLocally.mdwn       2023-01-02 11:14:29 UTC (rev 
493)
@@ -23,18 +23,17 @@
 Create a local MySQL server:
 
     # Install required packages.
-    # Use php-mysql for PHP 7.0.
-    sudo apt-get install -y git php5-cli php5-mysql mysql-client mysql-server \
-                            imagemagick autoconf automake gettext make
+    sudo apt-get install -y git php-cli php-mysqli mysql-client mysql-server \
+      imagemagick autoconf automake gettext make
 
     # Get Savane code.
-    git clone git://git.sv.gnu.org/administration/savane.git
+    git clone https://git.savannah.nongnu.org/git/administration/savane.git
     cd savane
 
     # Run required initialization.
     ./bootstrap
-    ./configure
-    make
+    ./configure --prefix=`pwd`/../savane-prefix --sysconfdir=`pwd`/../etc
+    make && make install
 
     # Start local server.
     ./run-local-dev.sh
@@ -42,7 +41,7 @@
 Once the PHP server is started, you'll see this message:
 
     $ ./run-local-dev.sh
-    PHP 5.6.30-0+deb8u1 Development Server started at Sun Feb 12 00:17:54 2017
+    PHP 7.2.24-0ubuntu0.18.04.15 Development Server started at Mon Jan  2 
09:36:24 2023
     Listening on http://127.0.0.1:7890
     Document root is /home/gordon/savane/frontend/php
     Press Ctrl-C to quit.
@@ -69,16 +68,15 @@
 
     $ wget 
https://download.savannah.nongnu.org/releases/administration/savane_demo-2022-05.sql.gz
 
-    ## Setup account for your account USERNAME:
+    ## Setup database account USERNAME and savane_demo database:
 
-    $ sudo -i
-    # mysql -p
+    $ sudo mysql -p
     Enter password:
     Welcome to the MySQL monitor.  Commands end with ; or \g.
-    Your MySQL connection id is 6
-    Server version: 5.7.26-0ubuntu0.16.04.1 (Ubuntu)
+    Your MySQL connection id is 2
+    Server version: 5.7.40-0ubuntu0.18.04.1 (Ubuntu)
 
-    Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights 
reserved.
+    Copyright (c) 2000, 2022, Oracle and/or its affiliates.
 
     Oracle is a registered trademark of Oracle Corporation and/or its
     affiliates. Other names may be trademarks of their respective
@@ -92,6 +90,9 @@
     mysql> CREATE USER 'USERNAME'@'localhost' IDENTIFIED by 'PASSWORD';
     Query OK, 0 rows affected (0.01 sec)
 
+    mysql> create database savane_demo;
+    Query OK, 1 row affected (0.00 sec)
+
     mysql> GRANT ALL ON savane_demo.* TO 'USERNAME'@'localhost';
     Query OK, 0 rows affected (0.01 sec)
 
@@ -98,13 +99,8 @@
     mysql> quit;
     Bye
 
-    ## Return to non-privileged login.
-
-    # exit
-    logout
-
     ## Load the demo tables
-    $ zcat savane_demo-2022-05.sql.gz | mysql --user USERNAME -p savane_demo
+    $ zcat savane_demo-2022-05.sql.gz | mysql --user USERNAME savane_demo -p
     Enter password:
 
 Then update the configuration file with your local values
@@ -122,7 +118,8 @@
 
 ## Supported PHP versions
 
-Savannah currently requires **php version 5.4, 5.5, 5.6, 7.0 or 7.2**.
+As of 2022, Savannah requires **PHP version 5.4, 5.5, 5.6, 7.0, 7.2
+or 7.4**.  Newer versions aren't tested.
 
 ## Other environments/distributions
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]