Oiler Works
  • Home
    • My resume
    • Free premium
    • Privacy Policy
  • Portfolio
  • Blogs
    • Computing
    • Science & MBA
    • Gaveta de remédios
    • Canadá
    • Presentes

Personal ebook server

25/4/2022

 
Domestic router whose firmware I replace with OpenWRT and it has been used as:
  • personal file server, locally through Samba and remotely through SFTP.
  • proxy server through SSH tunneling.
  • personal ebook server through an PHP web server with COPS.
  • DNS server resolving DNSSec, DoH and DNScrypt.
# Install and run COPS ebook server on an router with OpenWRT
# PHP and some requisites
opkg install php7 php7-cgi php7-cli php7-mod-dom php7-mod-gd php7-mod-json php7-mod-pdo php7-mod-pdo-sqlite php7-mod-sqlite3 php7-mod-xml php7-mod-xmlreader php7-mod-xmlwriter php7-mod-zip php7-mod-mbstring php7-mod-openssl php7-mod-phar  php7-mod-intl  php7-mod-ctype​ php7-mod-filter php7-mod-curl php7-mod-simplexml php7-mod-tokenizer
opkg install git-http unzip zoneinfo-core zoneinfo-southamerica zoneinfo-northamerica

ln -sf /usr/share/zoneinfo/Brazil/East /etc/localtime

cd /
git clone https://github.com/seblucas/cops.git
mv cops www2
cd www2

# Composer download as stated on https://getcomposer.org/download/
# COPS demands fxp/composer-asset-plugin that doesn't work with composer 2.x
php-cli -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php-cli composer-setup.php --version=1.10.23
php-cli -r "unlink('composer-setup.php');"

# Composer installation as stated by seblucas
php-cli composer.phar global require "fxp/composer-asset-plugin:~1.1"
php-cli composer.phar install --no-dev --optimize-autoloader

# It'll be needed to set uhttp specially index_page index_file interpreter
# It'll be needed to set config_local.php and config_default.php


Comments are closed.

    Author

    About Me /\ Sur moi

    View Euler Alves's profile on LinkedIn
Powered by Create your own unique website with customizable templates.
  • Home
    • My resume
    • Free premium
    • Privacy Policy
  • Portfolio
  • Blogs
    • Computing
    • Science & MBA
    • Gaveta de remédios
    • Canadá
    • Presentes