Subversion Repositories oidplus

Rev

Rev 725 | 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
 
726 daniel-mar 7
# Setup a VM, e.g. using VMware Player
722 daniel-mar 8
 
726 daniel-mar 9
# Run Alpine setup setup
10
# (On a German keyboard, the "-" key is "ß")
722 daniel-mar 11
setup-alpine
12
reboot
13
 
726 daniel-mar 14
# Optional: Enable SSH
15
# If you want to use SSH instead of typing the commands into the VM window
16
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
17
service sshd restart
18
 
19
# Optional: Install Nano
20
# If you feel more comfortable with the "nano" editor rather than "vi", you can install nano and replace the "vi" commands below with "nano"
21
apk add nano
22
 
23
# Find out the IP address of your VM
722 daniel-mar 24
ifconfig
25
 
26
# Setup package repository
726 daniel-mar 27
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
28
apk update
29
apk upgrade
722 daniel-mar 30
 
31
# Setup MySQL
726 daniel-mar 32
apk add mariadb mariadb-client
722 daniel-mar 33
/etc/init.d/mariadb setup
34
mariadb-secure-installation
726 daniel-mar 35
service mariadb restart
722 daniel-mar 36
rc-update add mariadb default
37
 
38
# Setup Apache + PHP
39
apk add php apache2 php-apache2 php-mysqli
726 daniel-mar 40
service apache2 start
722 daniel-mar 41
rc-update add apache2 default
42
 
43
# Download OIDplus
44
cd /var/www/localhost/htdocs/
45
wget https://www.viathinksoft.com/download/235/oidplus2_svn.tar.gz
46
tar -zxvf oidplus2_svn.tar.gz
47
rm oidplus2_svn.tar.gz
48
 
49
# Set file owners (otherwise software updates via web interface are not possible)
50
chown -R apache:apache /var/www/localhost/htdocs/oidplus/
51
 
52
# Install packages required for OIDplus
53
# Required
725 daniel-mar 54
apk add php-gmp php-session php-mbstring php-json
726 daniel-mar 55
# Optional (required for some features)
725 daniel-mar 56
apk add php-curl php-sockets php-simplexml php-openssl
722 daniel-mar 57
# Apply changes
58
service apache2 restart
59
 
60
# In the section <Directory "/var/www/localhost/htdocs"> change "AllowOverride None" to "AllowOverride All"
61
vi /etc/apache2/httpd.conf
726 daniel-mar 62
service apache2 restart
722 daniel-mar 63
 
726 daniel-mar 64
# Install curl client (required for the database import below)
65
apk add curl
722 daniel-mar 66
 
726 daniel-mar 67
# Open in browser: http://192.168.75.134/oidplus and follow the instructions (change the IP address to the one of your system)
68
 
69
# Initialize database (use the command line string that was generated by setup! This is just an example!)
722 daniel-mar 70
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
71
 
726 daniel-mar 72
# Add configuration file generated by setup
73
vi /var/www/localhost/htdocs/oidplus/userdata/baseconfig/config.inc.php