rafizan46
Posts: 62
Joined: Wed Mar 29, 2017 2:45 pm

Server side validation fail

Hi, i want to learn make server side validation, but it keep saying "could not verify serial number". Where do i make mistake?

Here is where i stored my php file.
https://storage.googleapis.com/cracklib/validate.php
Attachments
3.PNG
3.PNG (72.05 KiB) Viewed 3949 times
2.PNG
2.PNG (80.67 KiB) Viewed 3949 times
1.PNG
1.PNG (43.76 KiB) Viewed 3949 times
rafizan46
Posts: 62
Joined: Wed Mar 29, 2017 2:45 pm

Re: Server side validation fail

Hi, I already change the php file host, the message "could not verify serial number" is gone. But when I fill in details, when I click next, nothing happens..
Together I attach the DB details, hope it helps, thanks :)

Here is the new location:
http://swordfish.rf.gd/validate.php
Attachments
3.PNG
3.PNG (50.77 KiB) Viewed 3945 times
2.PNG
2.PNG (43 KiB) Viewed 3945 times
1.PNG
1.PNG (12.39 KiB) Viewed 3945 times
rafizan46
Posts: 62
Joined: Wed Mar 29, 2017 2:45 pm

Re: Server side validation fail

Nevermind, i just realised i cant use free hosting to store my db. But i already host my db & validatation file in GCP. Now I get the same error, the serial number is invalid, although I already key in the SN in DB.
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Server side validation fail

Hello,

If the key is already in the database, then the problem may be the fact that your script can not access the database on the server.

The script must be able to receive the information sent by the installer, connect to the database, verify the information and issue a response.

Assuming that GCP stands for Google Cloud Platform, I have found the following articles which you may find useful:

1. Creating and managing MySQL databases

2. Connecting to Cloud SQL from external applications

Hope this helps somehow!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rafizan46
Posts: 62
Joined: Wed Mar 29, 2017 2:45 pm

Re: Server side validation fail

Hi my problem already solved, thanks for the suggestion.
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Server side validation fail

Hello,

Thank you for your followup on this.

I am glad everything works as expected now!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”