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.

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:
    1
    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:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What problem are you running into?
     
  3. sonvu

    sonvu Registered
    PartnerNOC

    Joined:
    Feb 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    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?
     
  5. sonvu

    sonvu Registered
    PartnerNOC

    Joined:
    Feb 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    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.
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
  8. sonvu

    sonvu Registered
    PartnerNOC

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

Share This Page