Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i copy the php binary to every cgi-bin?

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
US
I just installed php with the --enable-force-cgi-redirect option,

how do i copy the php binary to each cgi bin? How do i find subdomain's, so I can make a cgi-bin inside the subdomain and then copy the php binary to it?
 
Why on earth would you want to? Just put the binary somewhere where all users can access it (
Code:
/usr/local/bin
perhaps?), and use that for the shebang line in your scripts.

//Daniel
 
Beyond that, you should never ever make your binaries public accessible over the web. That allows remote, anonymous users to feed your binary any code they want to, doing things like deleting files, emailing passwords, invoking shells etc etc etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top