C/C++ language on Apache http webserver.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
eziekel2517
Forum Newbie
Posts: 2
Joined: Tue Dec 21, 2004 8:51 am

C/C++ language on Apache http webserver.

Post by eziekel2517 »

Why do I want C/C++ code on Apache? Because I need the code on the webserver to be unreadable to everybody including the administrator of the server.

The C/C++ code should be able to communicate via TCP/IP, and to interface to PHP. That is, the PHP script calls a C/C++ function/object which returns html data to the PHP script - is this possible?

Or can I achieve my goal in some other way?.

Yours sincerely
Claus Christiansen.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

how unreadable is unreadable?

- what about reverse engineering?
- if nobody can read it, how would the machine be able to read/execute it?
- security through obscurity is not a good idea anyway
eziekel2517
Forum Newbie
Posts: 2
Joined: Tue Dec 21, 2004 8:51 am

C/C++ compiled code would be sufficent.

Post by eziekel2517 »

but is C/C++ code on Apache at all possible?.

yours sincerely
Claus Christiansen
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

there are so many options ;)

you can write your own apache module
you can use [php_man]exec[/php_man] / [php_man]system[/php_man] calls to start an external program
you can use http://pecl.php.net/package/ffi
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Alternatively, you could run PHP code through Zend Encoder (or one of the alternatives). Then noone could read your stuff. And it'd be much simpler than writing an Apache module.
Post Reply