Install NoDeny on Ubuntu server 22.04

Матеріал з NoDeny
Перейти до навігації Перейти до пошуку

Пока это заготовка документации!

apt install subversion
cd /usr/local
svn co svn://nodeny-plus.com.ua/release/next nodeny
apt install default-mysql-server
mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY 'hardpass';
create database nodeny;
use nodeny;
source /usr/local/nodeny/bill.sql;
apt install libdbd-mysql-perl libjson-perl apache2
cp /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/

cd /usr/local/nodeny
perl install.pl -x
perl install.pl -w=www-data
perl install.pl -m
perl install.pl -p admin=12345
nano /etc/apache2/sites-enabled/000-default.conf

вставить:

<VirtualHost 127.0.0.1:80>
        ServerName app.nodeny-plus.com.ua
        DocumentRoot /usr/local/nodeny/htdocs
        <Directory />
                Options +FollowSymLinks -Indexes
                AllowOverride None
        </Directory>
        <Directory /usr/local/nodeny/htdocs/>
                Options -Indexes +FollowSymLinks +MultiViews
                AllowOverride None
                Require all granted
        </Directory>

        ScriptAlias /cgi-bin/ "/usr/local/nodeny/cgi-bin/"

        <Directory "/usr/local/nodeny/cgi-bin/">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/nodeny.error.log
        CustomLog ${APACHE_LOG_DIR}/nodeny.log combined
</VirtualHost>
service apache2 restart