Subsonic registration engine

A little external engine to register users in Subsonic

Moderator: moderators

Re: Subsonic registration engine

Postby SparkyRih » Thu May 24, 2012 4:04 pm

Excessive wrote:The error is there after I install everything and run wamp. The .dll file is there. Using wamp 2.0c now on windows Vista ultimate, but had the same error in both win7 home premium and win7 ultimate. I had it running on win7 home premium and 2 days ago it stopped working and I just realized the error today and tried different versions of windows, but all have the same error.


Try to modify your PHP config file:

Code: Select all
extension=php_mbstring.dll
extension=php_exif.dll


So make sure both of them are uncommented (so that theyu have no ; in front of them), and make sure that mbstring comes before the exif lib...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby Excessive » Sun May 27, 2012 9:52 am

Yes, I have it going again, on windows 7 ultimate 64 bit. The error came up as soon as I enabled the php_exif.dll extension in wamp and I also looked up this particular error and it was said that one would have to cut and paste extension=php_exif.dll after extension=php_mbstring.dll in php.ini. So yes I've done that and that worked and the site is up and running again, thanks again. Another thing that I noticed is that subsonic has Resolved latest Subsonic beta version to: 4.6.beta2 and I'm not sure if I have *seen* the "Up" tab in the "Playing" menu before, but it's there now and this lists Subsonic's errors and at the moment it reads "Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below." and then it has the software specs and a "Stack trace" with it's error logs. Was this always there or is it just me? I have only just noticed it when I finished setting it all up and getting it going again. So yes please feel free to browse around http://cooltunes.subsonic.org

Microsoft Windows 7 Ultimate - Service Pack 1 (6.1.7601) up: 15hrs 27mins 16secs cpu: AMD Phenom(tm) II X4 945 Processor (x64) at 1800MHz (2% Load) gfx: ATI Technologies Inc. ATI Radeon 2100 (0x796E) 128MB res: 1280x960 32bit 60Hz ram: 1201/3967.3MB (30.27%) [|||-------] hdd: C:\ 221.94GB/244.14GB D:\ 765.97GB/931.51GB E:\ 83.68GB/182.62GB F:\ 423.32GB/504.75GB net: Atheros L2 Fast Ethernet 10_100Base-T Controller - 100MB/s 30.03MB In 922.19MB Out
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Sun May 27, 2012 7:13 pm

I guess it's a better idea to post this in the help topic, since this topic is meant for my registration engine mod :)
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby dr3van » Tue Jul 10, 2012 9:40 pm

I have been trying to get this mod working. I have tried numerous times and have not been able to get it to fully work. I was able to install it in the correct directory I believe, but I am missing something. I am a bit of a noob I will admit when it comes to some of this stuff, especially mysql.

I followed the directions and edited the login.jsp and put it in the webinf folder.
I then edited the other config files and put them into the www folder on my server.
I created a "subsonicuser" db in mysql.
ran the two querys to create the tables.

When I visit my subsonic site https://dr3van.com the register link shows up and the cachpa shows up and I can fill everything out and it looks like it goes through just fine. Except I never get any emails to confirm the user. I tried turning off the approval needed but it still puts the data in the woauser table. so this is as far as I have been able to make it and I am hitting a brick wall and can not get it any further. I am unable to see if it even will add the user to the subsonic database because I can not get past the woauser table.

I am running everything on a headless ubuntu 12.04 server with lamp and phpmyadmin installed. Any suggestion on where to go next in my attempt to get this up and running?
Subsonic Server: https://dr3van.com

build
Ubuntu Server 12.10 64 bit LAMP
Subsonic 4.7 custom
dr3van
 
Posts: 48
Joined: Wed Feb 22, 2012 8:43 pm

Re: Subsonic registration engine

Postby SparkyRih » Wed Jul 11, 2012 11:46 am

I've read your post, and checked the url you gave me and I tried to register an account... As far as I can see you've set everything up correctly...

The fact that you don't receive any e-mail could be due to a misconfiguration in your php.ini...
Try replacing this line:
Code: Select all
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path =


With something like this:
Code: Select all
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i -r noreply@yourdomaon.com


The e-mail address abovbe own't be used, it's just to give it a parameter...

But setting $woa = false; should make it possible for users to register directly (skipping the woa table)... but you say it doesn't work for you?
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby dr3van » Fri Jul 13, 2012 5:22 pm

SparkyRih wrote:The fact that you don't receive any e-mail could be due to a misconfiguration in your php.ini...
Try replacing this line:
Code: Select all
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path =


With something like this:
Code: Select all
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i -r noreply@yourdomaon.com



Did this and still received no email... Any other setting or something else I needed to have set up that I may be overlooking? This is something I would like to get working because I don't want to give anyone unwanted access.

SparkyRih wrote:But setting $woa = false; should make it possible for users to register directly (skipping the woa table)... but you say it doesn't work for you?


Found my error here, when I changed it back to false I made a small typo "flase" :oops:

Even after I changed it back to the correct spelling it put it into the correct location but no new user was created?

Thanks
Subsonic Server: https://dr3van.com

build
Ubuntu Server 12.10 64 bit LAMP
Subsonic 4.7 custom
dr3van
 
Posts: 48
Joined: Wed Feb 22, 2012 8:43 pm

Re: Subsonic registration engine

Postby SparkyRih » Mon Jul 16, 2012 3:33 pm

So the user is created in the right MySQL table, but the user is not created in Subsonic?

Than you're probably missing the cURL libs...

Typ the following command on your terminal:

Code: Select all
sudo apt-get install php5-curl


After that, don't forget to restart Apache...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby dr3van » Wed Jul 18, 2012 5:07 pm

SparkyRih wrote:
Code: Select all
sudo apt-get install php5-curl


Says it is installed and up to date... Is there any configuration I need to do inside subsonic or curl itself?
Subsonic Server: https://dr3van.com

build
Ubuntu Server 12.10 64 bit LAMP
Subsonic 4.7 custom
dr3van
 
Posts: 48
Joined: Wed Feb 22, 2012 8:43 pm

Re: Subsonic registration engine

Postby SparkyRih » Thu Jul 19, 2012 1:02 pm

Try the command:

Code: Select all
sudo a2enmod rewrite


And restart Apache... if this doesn't work create a page.php:

Code: Select all
<?php
echo phpinfo();
?>


I would recommend to PM the link to this file to me due to security reasons for your server...

Your subsonic server is set up correctly, but some tiny little thing is missing on your apache server...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby dr3van » Thu Jul 19, 2012 7:48 pm

SparkyRih wrote:Try the command:

Code: Select all
sudo a2enmod rewrite




Nope wasn't it either. I pm'ed u the link.
Subsonic Server: https://dr3van.com

build
Ubuntu Server 12.10 64 bit LAMP
Subsonic 4.7 custom
dr3van
 
Posts: 48
Joined: Wed Feb 22, 2012 8:43 pm

Re: Subsonic registration engine

Postby SparkyRih » Fri Jul 20, 2012 3:27 pm

I see a bug in my own code! :D

My system always looks for http://domain... I will modify the code and add an option to the config to allow https...

Edit: Version 2.05-4.6 should solve your issue...
I've only edited files in the SubRegEndinge folder, you can just overwrite all files, and re-configure the lib/config.php (make sure to set the $protocol = "https";)
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby dr3van » Fri Jul 20, 2012 5:50 pm

SparkyRih wrote:I see a bug in my own code! :D

My system always looks for http://domain... I will modify the code and add an option to the config to allow https...

Edit: Version 2.05-4.6 should solve your issue...
I've only edited files in the SubRegEndinge folder, you can just overwrite all files, and re-configure the lib/config.php (make sure to set the $protocol = "https";)




did this and still not working :( Still no emails being sent out and not registering users in subsonic.... It registers the user in mysql in the correct location depending if I have woa on or off but never registers in subsonic. The subsonic log never says anything when trying to register either (not sure if it would or wouldn't say anything).

I would really like to get this working with woa and the emails getting sent out.

Please let me know if there is anything you might need to help me diagnosing this issue and get this working as intended.
Subsonic Server: https://dr3van.com

build
Ubuntu Server 12.10 64 bit LAMP
Subsonic 4.7 custom
dr3van
 
Posts: 48
Joined: Wed Feb 22, 2012 8:43 pm

Re: Subsonic registration engine

Postby SparkyRih » Sat Jul 21, 2012 11:34 am

Try to run this url in your browser (don't forget to replace the u= by your admin user, and the p= to your admin password...

Code: Select all
https://dr3van.com/rest/createUser.view?u=adminusername&p=password&v=1.1.0&c=remoteregister&username=testuser1&password=testpass1&email=test@test.com&settingsRole=true&streamRole=true&jukeboxRole=true&downloadRole=true&uploadRole=true&playlistRole=true&coverartRole=true&commentRole=true&podcastRole=true&shareRole=true


Let me know if it registers... If yes, we have to go on, if not, give me the output of the query...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby dr3van » Tue Jul 24, 2012 3:32 pm

SparkyRih wrote:Try to run this url in your browser (don't forget to replace the u= by your admin user, and the p= to your admin password...

Code: Select all
https://dr3van.com/rest/createUser.view?u=adminusername&p=password&v=1.1.0&c=remoteregister&username=testuser1&password=testpass1&email=test@test.com&settingsRole=true&streamRole=true&jukeboxRole=true&downloadRole=true&uploadRole=true&playlistRole=true&coverartRole=true&commentRole=true&podcastRole=true&shareRole=true

Code: Select all
This XML file does not appear to have any style information associated with it. The document tree is shown below.
      <subsonic-response status="failed" version="1.8.0"><error code="10" message="Required parameter is missing."/></subsonic-response>



Also I was wondering if there is away to log the ip address in the db so when I get the sendmail function to work that it could say the ip address is logged and post it in the email and what not. Not that its top priority (being I cant even register users yet).
Subsonic Server: https://dr3van.com

build
Ubuntu Server 12.10 64 bit LAMP
Subsonic 4.7 custom
dr3van
 
Posts: 48
Joined: Wed Feb 22, 2012 8:43 pm

Re: Subsonic registration engine

Postby SparkyRih » Tue Jul 24, 2012 10:21 pm

Yeah that would be possible, but I'm a little short on time lately (that's why my responses are so late, usually I'm way faster, I'm sorry for that), so I will add that some other time...

But it seems like the API is changed in subsonic 4.7, I will send an e-mail to the developer to see if I can get some info on the new API already to fix this little issue...
'So that's the part why your users aren't registerd in subsonic, you can downgrade to subsonic 4.6 as a temporary fix (I don't know how long it takes before I know what changed in the new API)...

The fact that you don't receive an e-mail is probably due to a misconfiguration in sendmail, if you are in a private network you probably have ot use a "smarthost", a smarthost is used to guide your outgoing e-mail through your ISP's mail server to the outside world (and your own e-mail box)...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

PreviousNext

Return to Subsonic Registration Engine

Who is online

Users browsing this forum: No registered users and 2 guests