Subversion Repositories oidplus

Rev

Rev 724 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
722 daniel-mar 1
 
2
Alpine Linux Example Setup for OIDplus
3
======================================
4
 
5
# Download Alpine Linux https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86_64/alpine-standard-3.15.0-x86_64.iso
6
 
7
# Setup VMware VM
8
 
9
# Basic setup
10
(setup-keymap)
11
setup-alpine
12
reboot
13
 
14
# Find out IP
15
ifconfig
16
 
17
# Optional: Enable SSH (e.g. 192.168.75.134)
18
echo "PermitRootLogin yes" >> /etc/sshd/sshd_config
19
service sshd restart
20
 
21
# Setup package repository
22
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
23
apk update && apk upgrade
24
 
25
# Setup MySQL
26
apk add mysql
27
/etc/init.d/mariadb setup
28
service mariadb start
29
mariadb-secure-installation
30
rc-update add mariadb default
31
 
32
# Setup Apache + PHP
33
apk add php apache2 php-apache2 php-mysqli
34
apache2 start
35
rc-update add apache2 default
36
 
37
# Download OIDplus
38
cd /var/www/localhost/htdocs/
39
wget https://www.viathinksoft.com/download/235/oidplus2_svn.tar.gz
40
tar -zxvf oidplus2_svn.tar.gz
41
rm oidplus2_svn.tar.gz
42
 
43
# Set file owners (otherwise software updates via web interface are not possible)
44
chown -R apache:apache /var/www/localhost/htdocs/oidplus/
45
 
46
# Install packages required for OIDplus
47
# Required
725 daniel-mar 48
# If php-gmp cannot be installed, you can use php-bcmath
49
# If php-mbstring cannot be installed, you can use php-iconv (however, there is currently a bug in Alpine? https://github.com/symfony/polyfill/issues/387 )
50
apk add php-gmp php-session php-mbstring php-json
724 daniel-mar 51
# Optional (recommended)
725 daniel-mar 52
apk add php-curl php-sockets php-simplexml php-openssl
722 daniel-mar 53
# Apply changes
54
service apache2 restart
55
 
56
apk list --installed |grep php
57
#php81-curl-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
58
#php81-iconv-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
59
#php81-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
60
#php81-apache2-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
61
#php81-mysqli-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
62
#php81-mysqlnd-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
63
#php81-gmp-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
64
#php81-openssl-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
65
#php81-session-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
66
#php81-common-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
67
php81 -m
68
# Core
69
# curl
70
# date
71
# filter
72
# gmp
73
# hash
74
# iconv
75
# json
76
# libxml
77
# mysqli
78
# mysqlnd
79
# openssl
80
# pcre
81
# readline
82
# Reflection
83
# session
84
# SPL
85
# standard
86
# zlib
87
 
88
 
89
# In the section <Directory "/var/www/localhost/htdocs"> change "AllowOverride None" to "AllowOverride All"
90
vi /etc/apache2/httpd.conf
91
 
92
# Open in browser: http://192.168.75.134/oidplus and follow the instructions
93
 
94
# Initialize database (curl-string comes from setup)
95
apk add curl mysql-client
96
curl -s "http://192.168.75.134/oidplus/setup/struct_empty.sql.php?plugin=mysql&prefix=oidplus_&database=oidplus&slang=mysql" | mysql -u root -p
97
 
98
# Add data generated by setup
99
vi userdata/baseconfig/config.inc.php