Subsonic registration engine

A little external engine to register users in Subsonic

Moderator: moderators

Re: Subsonic registration engine

Postby Excessive » Wed May 16, 2012 7:58 am

PM sent.
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Wed May 16, 2012 9:16 am

Your configuration seems fine... I don't see the problem...

Are you running the right version? for subsonic 4.6?

Edit: Is it possible that I can't reach your 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 Excessive » Wed May 16, 2012 10:17 am

Yes, I downloaded version 2.02-4.6.
And yes, I had the machine down, it's up and running now, but still no users registered in subsonic. Also after pasting the reset password link from the email into the browser, it comes up with the reset password screen and when new password is entered, it goes to an error page after which it redirects to the wamp server index page ........ mabbe this shouldn't be happening?
Also mabbe I'm doing something wrong, do I paste both queries in the same sql window (this gives both tables) or do I paste one querie first and run it and then go back to the sql screen and paste and run the second querie?
Last edited by Excessive on Wed May 16, 2012 10:29 am, edited 1 time in total.
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Wed May 16, 2012 10:24 am

Can you check your Apache and PHP logs for any errors after registering a new user?
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 » Wed May 16, 2012 10:37 am

These are the errors:
[Wed May 16 19:50:27 2012] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Wed May 16 19:50:27 2012] [notice] Server built: Jan 18 2008 00:37:19
[Wed May 16 19:50:27 2012] [notice] Parent: Created child process 3380
[Wed May 16 19:50:27 2012] [notice] Child 3380: Child process is running
[Wed May 16 19:50:27 2012] [notice] Child 3380: Acquired the start mutex.
[Wed May 16 19:50:27 2012] [notice] Child 3380: Starting 64 worker threads.
[Wed May 16 19:50:27 2012] [notice] Child 3380: Starting thread to listen on port 80.
[Wed May 16 19:53:17 2012] [error] [client 58.104.7.200] File does not exist: C:/wamp/www/favicon.ico, referer: http://cooltunes.no-ip.org/gbuser/chang ... ce9452682b
[Wed May 16 19:53:34 2012] [error] [client 58.104.7.200] File does not exist: C:/wamp/www/gbuser/rest
[Wed May 16 20:07:27 2012] [error] [client 58.104.7.200] File does not exist: C:/wamp/www/gbuser/rest
[Wed May 16 20:32:20 2012] [error] [client 58.104.7.200] File does not exist: C:/wamp/www/gbuser/rest
[Wed May 16 20:32:23 2012] [error] [client 58.104.7.200] File does not exist: C:/wamp/www/favicon.ico, referer: http://cooltunes.no-ip.org/gbuser/register.php
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Wed May 16, 2012 11:08 am

I should've seen this earlier, you forgot to set the port number on the $subsonicdomain parameter in the config file...
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 » Wed May 16, 2012 11:35 am

I assume that it's the lib/config.php ........ done that, but now I get this error msg when I register a new user
Forbidden

You don't have permission to access /gbuser:100 on this server.
PS, do I have to set this port number in login.jsp as well?
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Wed May 16, 2012 11:43 am

Excessive wrote:I assume that it's the lib/config.php ........ done that, but now I get this error msg when I register a new user
Forbidden

You don't have permission to access /gbuser:100 on this server.
PS, do I have to set this port number in login.jsp as well?



No your login.jsp is perfectly fine...

But in the /lib/config.php the port number has to be in the right place. after the extension (.org) nd before /gbuser...

*..org:100/gbuser...
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 » Wed May 16, 2012 11:56 am

OK, done that, I can add a user and change password and get the emails, but no users registered in subsonic and when I change the password it redirects to the wamp server homepage (url edited)

EDIT:
I had a look at the changepass.php and was curious about this line

$url = "http://".$subsonicdomain."/rest/changePassword.view?u=".$admin."&p=".$pass."&v=1.1.0&c=remotechgpass&username=".

anything I should change there?
Last edited by Excessive on Thu May 17, 2012 4:30 am, edited 1 time in total.
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Wed May 16, 2012 12:12 pm

Excessive wrote:OK, done that, I can add a user and change password and get the emails, but no users registered in subsonic and when I change the password it redirects to the wamp server homepage http://cooltunes.no-ip.org/index.php


The redirect url can be change in the changepass.php on line 90...

Are you sure that you've configured the right subsonic admin in the lib/config.ppp?

Give me some more error info, if you have new error messages (displayed, or in your logs)...
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 » Wed May 16, 2012 12:16 pm

[Wed May 16 21:29:30 2012] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Wed May 16 21:29:30 2012] [notice] Server built: Jan 18 2008 00:37:19
[Wed May 16 21:29:30 2012] [notice] Parent: Created child process 328
[Wed May 16 21:29:30 2012] [notice] Child 328: Child process is running
[Wed May 16 21:29:30 2012] [notice] Child 328: Acquired the start mutex.
[Wed May 16 21:29:30 2012] [notice] Child 328: Starting 64 worker threads.
[Wed May 16 21:29:30 2012] [notice] Child 328: Starting thread to listen on port 80.
[Wed May 16 21:30:26 2012] [error] [client 58.104.7.200] (20024)The given path misformatted or contained invalid characters: Cannot map GET /gbuser:100/rest/createUser.view?u=admin&p=PASSWORDREMOVED&v=1.1.0&c=remoteregister&username=Excessive&password=PASSWORDREMOVED&email=adrian_26@optusnet.com.au&settingsRole=&streamRole=1&jukeboxRole=&downloadRole=1&uploadRole=1&playlistRole=1&coverartRole=&commentRole=&podcastRole=1&shareRole=1 HTTP/1.1 to file
[Wed May 16 21:30:32 2012] [error] [client 58.104.7.200] (20024)The given path misformatted or contained invalid characters: Cannot map GET /gbuser:100 HTTP/1.1 to file, referer: http://cooltunes.no-ip.org/gbuser/register.php
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Wed May 16, 2012 12:23 pm

REMOVE THE PASSWORD! :)

and it still sais that the port number is in the wroing place...
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 » Wed May 16, 2012 12:28 pm

I removed the password and PM-ed you the lib/config settings.
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby SparkyRih » Wed May 16, 2012 1:07 pm

Excessive wrote:I removed the password and PM-ed you the lib/config settings.


Remove the /gbuser, so you'll end up with
cooltunes.no-ip.org:100
No slashes, no subfolders, just the domain:port

If it doesn't work now... I... I don't know what I will do XD
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 gurutech » Wed May 16, 2012 1:16 pm

This may help, as I have had similar problems with using no-ip.com ddns service:

Create one domain as a "web redirect", from port 80 to port 4040 (or whatever port you have SubSonic on).
Create another domain as "Host (A)".

Point both of these to the same IP address (you can put them in a group if you have them both in the same domain - ie. cooltunes.no-ip.org and cooltunes1.no-ip.org) The group will make it easier for updating the IP address (you can update the group instead of just the domain/host).

Now as far as the registration goes, your regular website (what would normally go over port 80) will now go over a different port such as 8080 or 8008 or something like that (this is different than the SubSonic port!!)

In the register.php (and config.php files, I believe), you will need to use the 2nd domain you have set up (cooltunes1.no-ip.org) along with the port number (8080), so it will look like this: cooltunes1.no-ip.org:8080

I'll try to post some more in a bit - had to get a new desktop computer since my laptop kept crashing on me, so I don't have all my applications installed yet on the new one, so I can't even look at how I have mine configured until I get Dreamweaver installed again...
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

PreviousNext

Return to Subsonic Registration Engine

Who is online

Users browsing this forum: No registered users and 1 guest