Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    205

    Default PHPSuexec Problem

    One of our users is having problem calling an include. He has a php script and uses Virtual To include cgi scripts. However since we installed phpsuexec this is no longer working what command/work around would work in this situation?

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    From what I have seen it is almost easier to make sure all your scripts are either PHP or CGI.. but of course this is not perfect world...

    My best suggestion is to be sure you are using an absolute path with it.

    So, he is calling the PHP script from the CGI or is it the other way around?

    cPanel.net Support Ticket Number:

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    205

    Default

    He is calling a cgi script from a php script

    He has tried:

    virtual (which gives a error)
    exec("/home/XXX/public_html/cgi-bin/news/viewnews.cgi"); (which just prints the text)


    <?php exec("perl /home/XXX/public_html/cgi-bin/news/viewnews.cgi"); ?>

    Unfortunately produces nothing the only way I have found around it so far is:

    <?php system("perl /home/XXX/public_html/cgi-bin/news/viewnews.cgi"); ?>

    But that requires me to remove any CONTENT-TYPE from being printed in the CGI script, which works for my POLL and COUNTER but NOT my news (which is the most important thing for me).
    cPanel.net Support Ticket Number:

  4. #4
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    Here is small script that will get the output from some url/script....

    PHP Code:
    <? 

    $file 
    "http://www.someurl.ext/file.cgi"
    $open fopen($file"r"); 
    $search fread($open20000); 
    fclose($open); 

    ?>

    I have used similar scripts for different things, but would work in place of what you were trying.

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. PHPSuexec Problem
    By webdave in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 01-24-2007, 10:02 AM
  2. phpsuexec compilation problem
    By abubin in forum New User Questions
    Replies: 14
    Last Post: 10-18-2006, 12:23 AM
  3. Unusual phpsuexec Problem
    By x86eon in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-25-2006, 05:30 PM
  4. Phpsuexec problem with nobody in mail();
    By siweb01 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-25-2005, 08:04 PM
  5. PHPSuExec Problem
    By EWH-Chris in forum New User Questions
    Replies: 0
    Last Post: 01-10-2005, 08:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube