Author Topic: [Outdated] HowTO: Install nZEDb on Ubuntu 16.0.4  (Read 18254 times)

Offline digger

  • Junior Indexer
  • **
  • Posts: 13
  • Helpful: +4/-0
[Outdated] HowTO: Install nZEDb on Ubuntu 16.0.4
« on: 2017-08-22, 10:18:10 am »
.
« Last Edit: 2019-08-18, 12:24:07 pm by digger »

Offline Wally73

  • Overlord
  • ******
  • Posts: 266
  • Helpful: +31/-1
  • i'm nuts
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #1 on: 2017-08-22, 10:27:11 am »
add the timezone values to MySQL's timezone tables

Code: [Select]
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -uroot -pyourpassword mysql
If you have an older install, you might also have to add the date.timezone setting to the php.ini file. Make sure to quote it.

Offline digger

  • Junior Indexer
  • **
  • Posts: 13
  • Helpful: +4/-0
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #2 on: 2017-08-22, 11:24:57 am »
date.timezone is in step 10.

Offline kaibosh

  • Overlord
  • ******
  • Posts: 161
  • Helpful: +18/-0
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #3 on: 2017-12-07, 11:17:18 am »
This is currently the best guide there is for Ubu 16.04. Be sure to load the TZ data into the DB was Wally mentions above.

Offline ragga64

  • Newbie
  • *
  • Posts: 2
  • Helpful: +0/-0
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #4 on: 2018-02-11, 09:05:44 am »

Step 8: Install yEnc  [ERROR]
like to say thank you for the good write up for the install.
there was  a thew hickups but finaly got round them, [Step 8: Install yEnc ] came across an error that kept coming up, and for some reason it was saying php7.0 not in stalled, even thow it was, so  apt-get install php7.0  reinstalled and all was good.
this is the first time i manage to get to install page with your install guied, would always get white screen myip/install antill now.
and again nice guied and many thank.
 ragga
« Last Edit: 2018-02-12, 09:07:29 am by ragga64 »

Offline ragga64

  • Newbie
  • *
  • Posts: 2
  • Helpful: +0/-0
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #5 on: 2018-02-11, 11:59:10 am »
Spoke to soon :)
got new error.
ERROR: unable to connect to usenet
yet checked the config .php and is all set up in there ok and don't know were else i can look, as ubuntu is not my best plus running on VM

[11-Feb-2018 20:38:06 Europe/London] PHP Notice:  Only variables should be assigned by reference in /usr/share/php/PEAR.php on line 601
[11-Feb-2018 20:38:06 Europe/London] PHP Warning:  stream_socket_client(): Peer certificate CN=`news.sslusenet.com' did not match expected CN=`europe-ssl.newsdemon.com' in /var/www/nZEDb/libs/PEAR/Net_NNTP/NNTP/Protocol/Client.php on line 514
[11-Feb-2018 20:38:06 Europe/London] PHP Warning:  stream_socket_client(): Failed to enable crypto in /var/www/nZEDb/libs/PEAR/Net_NNTP/NNTP/Protocol/Client.php on line 514
[11-Feb-2018 20:38:06 Europe/London] PHP Warning:  stream_socket_client(): unable to connect to tls://europe-ssl.newsdemon.com:563 (Unknown error) in /var/www/nZEDb/libs/PEAR/Net_NNTP/NNTP/Protocol/Client.php on line 514
[11-Feb-2018 20:38:06 Europe/London] PHP Notice:  Only variables should be assigned by reference in /usr/share/php/PEAR.php on line 601
[11-Feb-2018 20:38:06 Europe/London] PHP Notice:  Only variables should be assigned by reference in /usr/share/php/PEAR.php on line 601




/ Use the aforementioned CA bundle file to verify remote SSL certificates when connecting to a server using TLS/SSL.
define('nZEDb_SSL_VERIFY_PEER', '');      [took out the 1 ]
// Verify the host is who they say they are.
define('nZEDb_SSL_VERIFY_HOST', '');     [took out the 1 ]
// Allow self signed certificates. Note this does not work on CURL as CURL does not have this option.
define('nZEDb_SSL_ALLOW_SELF_SIGNED', '1');  [put the 1 in ]


and now seems to be working    ;D

« Last Edit: 2018-02-12, 09:09:17 am by ragga64 »

Offline Roelski

  • Junior Indexer
  • **
  • Posts: 27
  • Helpful: +1/-0
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #6 on: 2018-05-16, 01:22:18 pm »
Can anyone add instructions on how to get updating to work?

i tried this, but failed in the last step:

--
--removed a lot of junk--
-

// edit ***********************
Ok, I figured it out.

// accidental composer installed. First need to remove package
sudo apt-get remove composer

mkdir ~/composerinstall
cd ~/composerinstall
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/usr/bin
php -r "unlink('composer-setup.php');"

// Composer (version 1.6.5) successfully installed to: /usr/bin/composer.phar
// Use it: php /usr/bin/composer.phar

cd /var/www/nZEDb/
sudo cp /usr/bin/composer.phar /usr/bin/composer
// ok, should have created a ln

// try updating (and stopping tmux, and restarting it):
cd /var/www/nZEDb/
tmux kill-session -t nZEDb
sudo ./zed update nzedb
rm /var/www/nZEDb/resources/smarty/templates_c/*
cd /var/www/nZEDb/misc/update/nix/tmux/
php start.php

// YESSSS (but no updates found, lol)
« Last Edit: 2018-05-23, 03:43:30 pm by Roelski »
using nZEDb on a N5550 nas upgraded to 8Gig.

Offline pdupreez

  • Junior Indexer
  • **
  • Posts: 19
  • Helpful: +0/-1
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #7 on: 2018-09-15, 08:47:17 am »
Code: [Select]
/var/log$ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -p

doesn't work anymore. You have to use sudo on mysql now

Code: [Select]
/var/log$ mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql -u root mysql
also

Code: [Select]
sudo apt-get –f install doesn't work if you copy & paste the code above, as the - is actually – which is not the same of course
« Last Edit: 2018-09-15, 08:58:10 am by pdupreez »

Offline pdupreez

  • Junior Indexer
  • **
  • Posts: 19
  • Helpful: +0/-1
Re: HowTO: Install nZEDb on Ubuntu 16.0.4
« Reply #8 on: 2018-09-15, 09:41:58 am »
Actually, the whole sequence in some areas are messed up. In step 9, you will use curl but later will be asked to install it. Same with the php7.0 installation, which was done earlier in the installation. Something is wrong here......