The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Security problem executing binary file

Discussion in 'Security' started by hackboys, Jan 18, 2010.

  1. hackboys

    hackboys Active Member

    Joined:
    Feb 12, 2008
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Dear all,
    I have dedicated server running CentOS 5.4 x64 bit (CPanel 11)
    "exec, system, shell_exec ..." functions are disabled

    I want to create online demo page for Festival Text-to-speech system. User enters the text, and hears generated speech.
    So I create shared hosting account and have to execute binary file to generate speech wav file from text entered by user, but I don't want to turn on exec() function.
    What is secure way to do this?

    Thank you very much
     
  2. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Are you working on suPHP or DSO ?
     
  3. hackboys

    hackboys Active Member

    Joined:
    Feb 12, 2008
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    I have DSO
     
  4. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Execute those commands

    cp /usr/local/lib/php.ini /home/USER/public_html/

    Replace USER or /home/USER/public_html with the path to your script.

    After that modify the copied php.ini then delete the functions you don't want.

    Also don't forget to chown the php.ini file to the user instead of the root.

    Hope that help.
     
  5. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    It works only on a suphp enabled server...

    On a DSO server, place the following in the Virtualhost of the domain and it should work.

    Don't forget to restart the httpd service.
     
Loading...

Share This Page