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 at 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 at py-soft.co.uk>wrote: > 2009/11/7 mark <m.roth at 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 at centos.org > http://lists.centos.org/mailman/listinfo/centos > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091107/89f967ab/attachment-0005.html>