selinux must be off because I moved the whole folder to a backup. Regarding running index.py, how? I tried this: python index.py and it just printed the whole thing to screen. But I can't image how there would be an indent error. (1) This exact file without edit displays fine on another server. (2) I copied the whole thing and pasted it into test.py. I can't explain the size difference.
[root@13gems global_solutions]# diff index.py test.py 1,19c1,17 < #!/usr/bin/python < < import string < import cgitb; cgitb.enable() < import cgi < import sys,os < sys.path.append(os.getcwd()) < from template import template < < ourFile = string.split(__file__, "/") < page = ourFile[len(ourFile) - 1][:-3] < < form = cgi.FieldStorage() < w = form.getfirst('w', '1024') < < print page < < template(page, w) < ---
#!/usr/bin/python
import string import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd()) from test2 import template
ourFile = string.split(__file__, "/") page = ourFile[len(ourFile) - 1][:-3]
form = cgi.FieldStorage() w = form.getfirst('w', '1024')
template(page, w)
On Sat, Nov 7, 2009 at 11:42 AM, Benjamin Donnachie benjamin@py-soft.co.ukwrote:
2009/11/7 mark m.roth@5-cent.us:
What do you mean by 'rebooted apache'? You have to reboot the whole
machine to
change selinlux settings.
No, you don't. Either the echo, or the setenforce command will change it.
Rebooting probably turned SELinux back on again. Run the "setenforce permissive" command again and then try.
Ben _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos