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.

Python Support

Discussion in 'General Discussion' started by MikeF12, Feb 3, 2003.

  1. MikeF12

    MikeF12 Member

    Joined:
    Dec 29, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Can someone tell me what needs to be done in order to use python scripts? We've uploaded our .py scripts although they just display as text when we try to view them.

    Mike
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Python 1.5 is already compiled into your machine. All you have to do is make sure the permissions on the script are correct and that you have MIME setup for .py files.
     
  3. MikeF12

    MikeF12 Member

    Joined:
    Dec 29, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I added the following to the virtualhost entry inside httpd.conf although it did not change anything:

    AddHandler python-program .py

    What else am I missing?

    Thanks
    Mike
     
  4. mpierre

    mpierre Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Did you manage to make it work ?
     
  5. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38
    is there anything similar to phpinfo() for python ?
     
  6. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38
    *bump*
     
Loading...

Share This Page