On Tue, Nov 10, 2009 at 01:05:36AM -0600, Frank Cox wrote:
On Tue, 10 Nov 2009 07:53:30 +0100
Mogens Kjaer wrote:
The file command will verify that for you.
Are you sure?
Well, I guess not then. I assumed that file would treat a .py file as a
text
file. I don't do any
On 11/07/2009 08:33 PM, Frank Cox wrote:
...
The file command will verify that for you.
Are you sure?
$ cat test1.py
#!/usr/bin/python
print Hello World
$ cat test2.py
#!/usr/bin/python
print Hello World
$ ./test1.py
Hello World
$ ./test2.py
./test2.py: Command not found.
$ file test1.py
On Tue, 10 Nov 2009 07:53:30 +0100
Mogens Kjaer wrote:
The file command will verify that for you.
Are you sure?
Well, I guess not then. I assumed that file would treat a .py file as a text
file. I don't do any programming with Python and haven't looked at it closely.
file tells me that a
John R Pierce wrote:
Kwan Lowe wrote:
On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com
wrote:
How did you get it from machine to machine? This could be a line-ending
issue from a copy from windows or the wrong mode in ftp.
That is my guess too. This exact error will
Frank Cox wrote:
On Sat, 07 Nov 2009 14:10:30 -0500
Victor Subervi wrote:
It's been a while, but now I remember what a dos file looks like in a unix
environment. No, these files look like unix files (without the carets and
crap).
The file command will verify that for you.
You said
I have a serious privileges problem that is making it impossible to serve
python pages on a CentOS server. I have tried to resolve this problem in my
last post, but now it appears that interest has petered out. I'm desperate
and hoping someone on this list can help.
[Fri Nov 06 11:50:40 2009]
On Sat, Nov 7, 2009 at 9:23 AM, Neil Aggarwal n...@jammconsulting.comwrote:
Victor:
I have a serious privileges problem that is making it impossible
to serve python pages on a CentOS server. I have tried to resolve
this problem in my last post, but now it appears that interest
has
On Saturday 07 November 2009 09:14:06 Victor Subervi wrote:
I have a serious privileges problem that is making it impossible to serve
python pages on a CentOS server. I have tried to resolve this problem in my
last post, but now it appears that interest has petered out. I'm desperate
and
Nonsense. You can't solve it either, can you? You're as stumped as the rest
of us...but arrogant, too.
V
Victor,
To be brutally honest, you haven't given the list the info we need to
help you solve this problem. I've been following this thread and so
far I'm seeing a puzzle with half the
On Sat, Nov 7, 2009 at 10:05 AM, Drew drew@gmail.com wrote:
Nonsense. You can't solve it either, can you? You're as stumped as the
rest
of us...but arrogant, too.
V
Victor,
To be brutally honest, you haven't given the list the info we need to
help you solve this problem. I've been
Victor Subervi wrote:
fixfiles relabel /var/www/html
# might just work
It didn't
touch /.autorelabel
# and then reboot will relabel all copied files to the correct contexts
for the location
I rebooted apache with no luck
or you could turn off SELinux and reboot
I did that and the
Thank you. I just rebooted the machine. Unfortunately, that didn't help.
V
On Sat, Nov 7, 2009 at 11:00 AM, Les Mikesell lesmikes...@gmail.com wrote:
Victor Subervi wrote:
fixfiles relabel /var/www/html
# might just work
It didn't
touch /.autorelabel
# and then reboot will
On Sat, Nov 7, 2009 at 11:12 AM, Victor Subervi victorsube...@gmail.comwrote:
Thank you. I just rebooted the machine. Unfortunately, that didn't help.
V
On Sat, Nov 7, 2009 at 11:00 AM, Les Mikesell lesmikes...@gmail.comwrote:
Victor Subervi wrote:
fixfiles relabel /var/www/html
#
Les Mikesell wrote:
Victor Subervi wrote:
fixfiles relabel /var/www/html
# might just work
It didn't
touch /.autorelabel
# and then reboot will relabel all copied files to the correct contexts
for the location
I rebooted apache with no luck
or you could turn off SELinux and reboot
I
2009/11/7 mark m.r...@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
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.
Victor Subervi wrote:
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
On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com wrote:
How did you get it from machine to machine? This could be a line-ending issue
from a copy from windows or the wrong mode in ftp.
That is my guess too. This exact error will happen if the file is
copied in Dos format
Kwan Lowe wrote:
On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com wrote:
How did you get it from machine to machine? This could be a line-ending
issue
from a copy from windows or the wrong mode in ftp.
That is my guess too. This exact error will happen if
Adding python debugging to apache revealed an import error. The strange
thing is that when I load the exact lines of code in the command line python
interpreter, it has no trouble importing the class in question.
With respect to the dos question, I've uploaded this exact code in its exact
format
On Sat, Nov 07, 2009 at 10:23:11AM -0800, John R Pierce wrote:
Kwan Lowe wrote:
On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com wrote:
How did you get it from machine to machine? This could be a line-ending
issue
from a copy from windows or the wrong mode in
2009/11/7 Victor Subervi victorsube...@gmail.com:
selinux must be off because I moved the whole folder to a backup.
Did you edit /etc/selinux/config to disable it?
Please, just try the things people are suggesting rather than
dismissing them instantly - it'll be much easier in the long run.
Victor Subervi wrote:
Adding python debugging to apache revealed an import error. The
strange thing is that when I load the exact lines of code in the
command line python interpreter, it has no trouble importing the class
in question.
With respect to the dos question, I've uploaded this
I moved /etc/selinux/config to /etc/selinux/config.BAK and created an empty
folder to replace it. Then I rebooted the server.
It's been a while, but now I remember what a dos file looks like in a unix
environment. No, these files look like unix files (without the carets and
crap).
TIA,
V
On Sat,
2009/11/7 Victor Subervi victorsube...@gmail.com:
I moved /etc/selinux/config to /etc/selinux/config.BAK and created an empty
folder to replace it. Then I rebooted the server.
Check with the command getenforce please.
Ben
___
CentOS mailing list
Victor Subervi wrote:
I moved /etc/selinux/config to /etc/selinux/config.BAK and created an
empty folder to replace it. Then I rebooted the server.
It's been a while, but now I remember what a dos file looks like in a
unix environment. No, these files look like unix files (without the
On Sat, 07 Nov 2009 14:10:30 -0500
Victor Subervi wrote:
It's been a while, but now I remember what a dos file looks like in a unix
environment. No, these files look like unix files (without the carets and
crap).
The file command will verify that for you.
You said that this thing runs fine
27 matches
Mail list logo