Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Protect package - A starting copy protection system
Re: Protect package - A starting copy protection system [message #29314 is a reply to message #29312] Fri, 15 October 2010 11:23 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
koldo wrote on Fri, 15 October 2010 10:54

Hello Massimo/Honza

Some questions:

- About Protect

It includes MySql package. Is it possible to remove it?



MySql is needed for ProtectServer, not for the client.
As I made a single package for both (some include files are needed for both cases) the MySql package is needed.... It'll not be linked in cliente, anyways.

Quote:


- About ProtectServer

What are the ProtectServer requirements from server and from client side?.

Is ProtectServer a C++ program running on a server?. What is the role of PHP in this?



ProtectServer requires, by now, an SCGI capable server, so any http server which can support SCGU. I guess almost all servers do. The PHP version that Honza is developing will relax this need.
For apache2 it's enough to install and enable mod_scgi module, and create a small config file for it. For Ubuntu :

sudo apt-get install libapache2-mod-scgi
sudo a2enmmod scgi

And, in /etc/apache2/config.d folder, add an scgi.conf file with this content (as an example) :
SCGIMount /scgi 127.0.0.1:8787


Where the server is listening on port 8787 on local host (configurable) and the http path for it will be /scgi.

For centos OS it'll just a bit more complicated on step 1, mod_scgi must be manually inserted in apache2.conf.
Anyways, there are many docs on the net to enable SCGI on many http servers... probably I'll add some docs.

ProtectServer is an upp executable. Honza's version will be in PHP and make (maybe) stuffs easier on server side.
Communication is done via encrypted http, so it should pass any routers/firewalls on the way.
ProtectServer NEEDS to run as a daemon / service (it must be continuously running and listening to SCGI port (8787 in my case). It doesn't need to run as root/privileged user.

Quote:


Would it be possible to use it with other database instead of MySql?.




Client is unaware of database type, so the changes are just in server. Honza's PHP is already capable of handling a couple of db engines.
ProtectServer is, by now, tied to MySql, but just because I've no time/no other db engine installed on my server. Adding Postgresql, MSSQL and others should be trivial, as long as they're supported by Upp sql engines.

Quote:


Thank you for your work Smile.


You're wellcome Smile
Please test it, It's setup on my server, you just need to build and run the client. I've still a nasty bug which makes it crash sometimes, but just in devel mode, not in debug builds... so I still didn't caught it.

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UPDATED PROTECT PACKAGE
Next Topic: OAuth2 package for U++
Goto Forum:
  


Current Time: Fri Apr 26 19:56:37 CEST 2024

Total time taken to generate the page: 0.04957 seconds