Carlos Antolinez
New Pleskian
Hi, I would like to work with python in a server Centos 7 with Plesk Onyx version 17.0.17.
I can give certain information about my configuration:
1) In Tools & Settings > Apache Web Server > check python. I no have this options to check it.
2) In my console I have :
[root@server1 ~]# python
Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
3) Mod python is not installed
[root@server1 ~]# rpm -q mod_python
package mod_python is not installed
And finally, when I execute a file test2.py I have this result:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# enable debugging
import cgitb
cgitb.enable()
print "Content-Type: text/plain;charset=utf-8"
print
print "Hello World!"
At this point I don´t know what is exactly my problem. I´ve read about this but I not have nothing especific to do. Someone could help me?
Thanks a lot
Carlos
I can give certain information about my configuration:
1) In Tools & Settings > Apache Web Server > check python. I no have this options to check it.
2) In my console I have :
[root@server1 ~]# python
Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
3) Mod python is not installed
[root@server1 ~]# rpm -q mod_python
package mod_python is not installed
And finally, when I execute a file test2.py I have this result:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# enable debugging
import cgitb
cgitb.enable()
print "Content-Type: text/plain;charset=utf-8"
print "Hello World!"
At this point I don´t know what is exactly my problem. I´ve read about this but I not have nothing especific to do. Someone could help me?
Thanks a lot
Carlos