Forum Moderators: phranque

Message Too Old, No Replies

Ownership problems

         

brakkar

10:16 pm on Apr 7, 2004 (gmt 0)

10+ Year Member



Hello,
I use a perl script that create static php files and dirtectories.

But I can't display them from the browser: I guess this is an ownership problem as the files are built from the system.

Is there anyway to prevent this from happening?

Thanks,
Brakkar

jdMorgan

11:25 pm on Apr 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Brakkar,

Make sure all the file/directory permissions are set to allow "all" to read the directories and pages. Usually, this is all that's necessary for non-executable files. You can manually set the permissions to 644 using chmod to see if this helps.

Jim

brakkar

11:41 pm on Apr 7, 2004 (gmt 0)

10+ Year Member



Hello, thanks for your answer.
But it still won't work. Curiously, when I change a file from .php to .html it is working. Other php page are working, only the ones created by the script are not working?!

Cordially,
Brakkar

jdMorgan

12:35 am on Apr 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We'll probably need a little more information about your set-up. For example, can you access *any* php pages? Are you running suexec?

If you cannot view any php pages, you may just need to tell the server to parse them using something like


AddHandler server-parsed .php

in your .htaccess or in httpd.conf file.

I'd also suggest you ask your host about this. You could also post over in our php forum if it starts to look like a php-related problem.

Jim

dwilson

1:17 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



What if you try chmod 755? Others may know better ... but it sounds to me like the pages need execute permission.