Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 725 → Rev 726

/trunk/.gitignore
8,7 → 8,6
# ...
 
composer.lock
composer.phar
oidplus_version.txt
.version.php
update.tmp.php
/trunk/doc/install_alpine_linux.txt
4,34 → 4,40
 
# Download Alpine Linux https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86_64/alpine-standard-3.15.0-x86_64.iso
 
# Setup VMware VM
# Setup a VM, e.g. using VMware Player
 
# Basic setup
(setup-keymap)
# Run Alpine setup setup
# (On a German keyboard, the "-" key is "ß")
setup-alpine
reboot
 
# Find out IP
# Optional: Enable SSH
# If you want to use SSH instead of typing the commands into the VM window
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
service sshd restart
 
# Optional: Install Nano
# If you feel more comfortable with the "nano" editor rather than "vi", you can install nano and replace the "vi" commands below with "nano"
apk add nano
 
# Find out the IP address of your VM
ifconfig
 
# Optional: Enable SSH (e.g. 192.168.75.134)
echo "PermitRootLogin yes" >> /etc/sshd/sshd_config
service sshd restart
 
# Setup package repository
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
apk update && apk upgrade
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
apk update
apk upgrade
 
# Setup MySQL
apk add mysql
apk add mariadb mariadb-client
/etc/init.d/mariadb setup
service mariadb start
mariadb-secure-installation
service mariadb restart
rc-update add mariadb default
 
# Setup Apache + PHP
apk add php apache2 php-apache2 php-mysqli
apache2 start
service apache2 start
rc-update add apache2 default
 
# Download OIDplus
45,55 → 51,23
 
# Install packages required for OIDplus
# Required
# If php-gmp cannot be installed, you can use php-bcmath
# 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 )
apk add php-gmp php-session php-mbstring php-json
# Optional (recommended)
# Optional (required for some features)
apk add php-curl php-sockets php-simplexml php-openssl
# Apply changes
service apache2 restart
 
apk list --installed |grep php
#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]
#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]
#php81-8.1.1-r0 x86_64 {php81} (PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0) [installed]
#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]
#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]
#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]
#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]
#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]
#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]
#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]
php81 -m
# Core
# curl
# date
# filter
# gmp
# hash
# iconv
# json
# libxml
# mysqli
# mysqlnd
# openssl
# pcre
# readline
# Reflection
# session
# SPL
# standard
# zlib
 
 
# In the section <Directory "/var/www/localhost/htdocs"> change "AllowOverride None" to "AllowOverride All"
vi /etc/apache2/httpd.conf
service apache2 restart
 
# Open in browser: http://192.168.75.134/oidplus and follow the instructions
# Install curl client (required for the database import below)
apk add curl
 
# Initialize database (curl-string comes from setup)
apk add curl mysql-client
# Open in browser: http://192.168.75.134/oidplus and follow the instructions (change the IP address to the one of your system)
 
# Initialize database (use the command line string that was generated by setup! This is just an example!)
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
 
# Add data generated by setup
vi userdata/baseconfig/config.inc.php
# Add configuration file generated by setup
vi /var/www/localhost/htdocs/oidplus/userdata/baseconfig/config.inc.php
/trunk/includes/oidplus_dependency.inc.php
38,7 → 38,6
}
 
if (!extension_loaded('json')) {
// Alpine Linux: apk add php-json
$missing_dependencies[] = 'json';
}