View Single Post
Old 02-21-2021, 09:13 AM   #1823
euleralves
Junior Member
euleralves began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2011
Device: Kindle 3, PW2
I was able to use COPS on my router running OpenWRT.

Here is the recipe: https://alves.pro.br/information_tec...ops-on-openwrt

I had a hard time solving the dependences manually.

Spoiler:
Code:
opkg install php7 php7-cgi php7-cli 
opkg install 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​
opkg install git-http unzip
opkg install 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/
php-cli -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php-cli composer-setup.php
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

Last edited by euleralves; 02-21-2021 at 09:14 AM. Reason: Add information
euleralves is offline   Reply With Quote