OJS
Persiapan
apt install apache2 libapache2-mod-php php php-cli php-common php-mbstring php-gd php-intl php-xml php-mysql php-zip php-curl php-tidy php-imagick php-bcmath mariadb-client
Download
ojs 3.3
wget https://pkp.sfu.ca/ojs/download/ojs-3.3.0-16.tar.gz | tar xzvf ojs-3.3.0-16.tar.gz
ojs 3.4
wget https://pkp.sfu.ca/ojs/download/ojs-3.4.0-5.tar.gz | tar xzvf ojs-3.4.0-5.tar.gz
Settings
session_check_ip = Off
https://malikmustofa.my.id/2024/05/28/mencegah-serangan-judi-online-di-webserver-ojs-3/
OJS 3.4
buat folder ojs
di dalam folder ojs buat buat file :
1. docker-compose.yaml
version: "3" services: webserver: build: context: ./bin # container_name: "form-umsida" restart: "always" ports: - "${NOMOR_PORT}:443" volumes: - ./logs:/var/log/:rw - ./${FOLDER_HTML}:/var/www/html # - ./php.ini:/usr/local/etc/php/conf.d/php-umsida.ini - ./${FOLDER_UPLOAD}:/var/www/files
2. buat folder bin
di dalam folder bin 2.1 buat file Dockerfile 2.2 buat file localhost.conf
<VirtualHost *:443> SSLEngine on SSLProtocol all -SSLv2 SSLCertificateFile /certs/localhost.crt SSLCertificateKeyFile /certs/localhost.key DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
2.3 buat file php.ini
file_uploads = On memory_limit = 64M upload_max_filesize = 248M post_max_size = 512M max_execution_time = 600 log_errors = on
3. buat folder files
4. buat folder html
5. buat folder logs