-
-
Notifications
You must be signed in to change notification settings - Fork 54
Installing Composer
Now it is time to install Composer.
We recommend the global method, as we do not provide the composer.phar file in our repo.
NOTE Commands below assume you followed the getComposer site's instructions and renamed composer.phar to composer.
You can use the following to install composer globally:
cd /var/www
sudo chmod 777 .
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r 'if (hash_file("SHA384", "composer-setup.php") === preg_filter("#^.*?<pre>|</pre>.*$#s", "", file_get_contents("https://composer.github.io/pubkeys.html"))) { echo "Installer verified"; } else { echo "Installer corrupt"; unlink("composer-setup.php"); } echo PHP_EOL;'
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"
composer -V
You are now ready to download NNTmux using git:
cd /var/www/
git clone https://github.com/NNTmux/newznab-tmux.git NNTmux
cd /var/www/NNTmux
If you want to be on stable branch:
git checkout 0.x
or on dev:
git checkout dev
Now you need to copy the sample .env config file and change the settings for you NNTmux enviroment:
cp .env.example .env
nano .env
update the following:
DB_HOST=yourMySQLServer
DB_PORT=3306
DB_USER=nntmuxMySQLuser
DB_PASSWORD=nntmuxMySQLpassword
DB_NAME=nntmux
NNTP_USERNAME=YourNNTPUsername
NNTP_PASSWORD=YourNNTPPassword
NNTP_SERVER=YourNNTPServerAddress
NNTP_PORT=119
NNTP_SSLENABLED=false
NNTP_SOCKET_TIMEOUT=120
ADMIN_USER=AdminUserNick
ADMIN_PASS=AdminUserPass
ADMIN_EMAIL=AdminUserEmailAddress