PHP File wont run when chmod 777

Alles, was den Apache betrifft, kann hier besprochen werden.

PHP File wont run when chmod 777

Postby dolrich06 » 05. November 2009 07:52

Is there a way to run a php file when its chmod is 777?
dolrich06
 
Posts: 3
Joined: 05. November 2009 07:49

Re: PHP File wont run when chmod 777

Postby Izzy » 05. November 2009 08:12

There is no chmod in XAMPP for Windows - php files and folders will run without chmod in XAMPP.

chmod is for setting file and directory permissions in a Linux environment.

BTW which version of XAMPP and what Windows OS.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PHP File wont run when chmod 777

Postby dolrich06 » 05. November 2009 08:17

Im not using xamp.
This script run on an apache server, is there a way to run php files that is chmod 777?
Currently, the php script when run causes 500 internal error, but when i changed it to 655 or 755 it works fine.
dolrich06
 
Posts: 3
Joined: 05. November 2009 07:49

Re: PHP File wont run when chmod 777

Postby Izzy » 05. November 2009 08:20

dolrich06 wrote:Im not using xamp.
Then you are in the wrong forums as these are for XAMPP for Windows.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PHP File wont run when chmod 777

Postby Wiedmann » 05. November 2009 08:23

is there a way to run php files that is chmod 777?

Why want you do this?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: PHP File wont run when chmod 777

Postby dolrich06 » 05. November 2009 08:29

Wiedmann wrote:
is there a way to run php files that is chmod 777?

Why want you do this?


I have an upload script that automatically chmod files to 777, I want to upload php scripts and run it even its permission is 777.
dolrich06
 
Posts: 3
Joined: 05. November 2009 07:49

Re: PHP File wont run when chmod 777

Postby Wiedmann » 05. November 2009 13:58

I have an upload script that automatically chmod files to 777,

Report a bug to the script author.
--> You don't want have 777 PHP files...

(or change this script yourself)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to Apache

Who is online

Users browsing this forum: No registered users and 22 guests