Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to run php_ajax in suphp ?

Discussion in 'General Discussion' started by sonvu, Apr 26, 2011.

  1. sonvu

    sonvu Registered
    PartnerNOC

    Joined:
    Feb 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Hello!

    I have an simple example about php_ajax , it runs ok with dso hander
    but it cannot run on server with suphp handler ( WHM Main >> Service Configuration >> Configure PHP and SuExec ,and change from dso -> suphp)

    now i want to ajax applications runing in suphp's environment , so it is ok or not ? if can please tell me how to do it with thanks.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,517
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What problem are you running into?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sonvu

    sonvu Registered
    PartnerNOC

    Joined:
    Feb 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    i having problem is : couldnt running php_ajax into suphp environment , but i can running into dso environment
    i want to know is can suphp support for php_ajax or not ?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,517
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Why wouldn't it?

    "couldn't run" it doesn't explain what the problem is though.

    File permissions maybe?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sonvu

    sonvu Registered
    PartnerNOC

    Joined:
    Feb 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    by the way i want to know is " does suphp environment support for php_ajax or not ?

    this is one simple ex of ajax which we could not test on suphp but they can run into dso
    PHP - AJAX and PHP
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,517
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Works fine on my server with SuPHP. File perms: 644, directory I placed the 2 files into: 755.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you are having an issue with a script running, the first course of action is to check the Apache error logs:

    Code:
    tail -fn0 /usr/local/apache/logs/error_log
    Tail that log in root SSH when trying to load the script and see what errors are output.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. sonvu

    sonvu Registered
    PartnerNOC

    Joined:
    Feb 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    hello
    I have found reason
    careless, I did not check file's owner
    now its ok.
    many thanks
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice