
So… How do you run freeciv-web ? Or could you help me getting it up and running in a VM of my own ?
Louis
I'm on Arch Linux (rolling-release distro), outdated versions shouldn't be the problem.AndreasR wrote:Are you running the host OS on Windows or Linux? […] Also, please make sure that you are running the latest versions of Vagrant and VirtualBox.
Last time I checked, top was clean, with memory available, not swapping. I didn't check dmesg, and uptime is biased by the host machine sleeping a lot… The machine is dead right now. No error message in logs/, and the Vagrant log does't look very useful.AndreasR wrote:The memory should be set to about 5 Gb for good performance. […] What is the output of the dmesg command? The top command? The uptime command? Do you find any error messages in the Freeciv-web logs subdirectory? There is also a Vagrant log file in the Freeciv-web git base dir.
Speed of build-js.sh isn't a problem when the VM has access to the 8 CPU cores…AndreasR wrote:I find that closing the browser running WebGL while compiling speeds up compulation.
I dropped Ubuntu years ago, and swore I would never come back. So there's a no-go theorem on the way. Arch is much better once it's configured. (Btw, the command-line install procedure is quite instructive if you've never done that before.)AndreasR wrote:So I would recommend you try installing Ubuntu as the host OS.
Unfortunately I'm not a 3D artist… just a script kiddieAndreasR wrote:We also need updated Blender models for all units, cities and specials.
Code: Select all
diff --git a/freeciv/prepare_freeciv.sh b/freeciv/prepare_freeciv.sh
index 704e250..ada21f5 100755
--- a/freeciv/prepare_freeciv.sh
+++ b/freeciv/prepare_freeciv.sh
@@ -29,5 +29,5 @@ fi
( cd freeciv
- ./autogen.sh CFLAGS="-O3" --with-project-definition=../freeciv-web.project --enable-fcweb --enable-json --disable-delta-protocol --disable-nls --disable-fcmp --enable-freeciv-manual=html --disable-ruledit --enable-ai-static=classic,threaded --prefix=${HOME}/freeciv/ && make -s
+ ./autogen.sh CFLAGS="-O3" --with-project-definition=../freeciv-web.project --enable-fcweb --enable-json --disable-delta-protocol --disable-nls --disable-fcmp --enable-freeciv-manual=html --disable-ruledit --enable-ai-static=classic,threaded --prefix=${HOME}/freeciv/ && make -s -j$(nproc)
)
Code: Select all
diff --git a/freeciv-web/src/main/webapp/meta/php_code/fcdb.php b/freeciv-web/src/main/webapp/meta/php_code/fcdb.php
index d1a37b3..f8f096a
--- a/freeciv-web/src/main/webapp/meta/php_code/fcdb.php
+++ b/freeciv-web/src/main/webapp/meta/php_code/fcdb.php
@@ -21,7 +21,7 @@ function fcdb_metaserver_connect() {
return fcdb_connect($fcdb_metaserver_db, $fcdb_username, $fcdb_pw);
}
-$dbhost = '';
+$dbhost = 'localhost';
function fcdb_connect($db, $un, $pw) {
global $fcdb_sel, $fcdb_conn;
Code: Select all
diff --git a/publite2/nginx.conf b/publite2/nginx.conf
index 399c3d0..a5b8875 100644
--- a/publite2/nginx.conf
+++ b/publite2/nginx.conf
@@ -91,8 +91,8 @@ http {
return 404;
}
- # Located at /var/run/php/php7.0-fpm.sock on some systems.
- fastcgi_pass unix:/var/run/php7-fpm.sock;
+ # Located at /var/run/php/php/php/php7.0.0.0-fpm.sock on some systems.
+ fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
Code: Select all
diff --git a/scripts/dependency-services-systemd-start.sh b/scripts/dependency-services-systemd-start.sh
index f5e70eb..9aaea13
--- a/scripts/dependency-services-systemd-start.sh
+++ b/scripts/dependency-services-systemd-start.sh
@@ -4,9 +4,9 @@
# in configuration.sh's DEPENDENCY_SERVICES_START variable to use it.
# Just in case it didn't start at boot time
-systemctl is-active --quiet mysql.service || systemctl start mysql.service
+systemctl is-active --quiet mariadb.service || systemctl start mariadb.service
# Is stopped and (re)started with Freeciv-web
systemctl is-active --quiet nginx.service || systemctl start nginx.service
-systemctl is-active --quiet php7.0-fpm.service || systemctl start php7.0-fpm.service
+systemctl is-active --quiet php-fpm.service || systemctl start php-fpm.service
systemctl is-active --quiet tomcat8.service || systemctl start tomcat8.service
diff --git a/scripts/dependency-services-systemd-stop.sh b/scripts/dependency-services-systemd-stop.sh
index e7dc5ba..ab4fb09
--- a/scripts/dependency-services-systemd-stop.sh
+++ b/scripts/dependency-services-systemd-stop.sh
@@ -7,8 +7,8 @@ if systemctl is-active --quiet nginx.service ; then
systemctl stop nginx.service
fi
-if systemctl is-active --quiet php7-fpm.service ; then
- systemctl stop php7-fpm
+if systemctl is-active --quiet php-fpm.service ; then
+ systemctl stop php-fpm
fi
if systemctl is-active --quiet tomcat8.service ; then