LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with Fcgi and suexec in apache (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-fcgi-and-suexec-in-apache-881810/)

woshka1 05-20-2011 09:03 AM

Problem with Fcgi and suexec in apache
 
I dont know if it is the right place to aske
I have had directadmin installed and compiled apache with custombuild


the website could not load pictures and css correctly
I checked the logs

[root@server2 httpd]# tail -10 error_log
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details


[root@server2 httpd]# tail -10 suexec_log
[2011-05-20 09:40:01]: uid: (513/aria) gid: (515/aria) cmd: steam turbine.jpg
[2011-05-20 09:40:01]: file has no execute permission: (/home/aria/domains/ariaazari.ir/public_html/image/steam turbine.jpg)
[2011-05-20 09:40:01]: uid: (513/aria) gid: (515/aria) cmd: f14t.JPG
[2011-05-20 09:40:01]: file has no execute permission: (/home/aria/domains/ariaazari.ir/public_html/image/f14t.JPG)
[2011-05-20 09:40:01]: uid: (513/aria) gid: (515/aria) cmd: hi30.JPG
[2011-05-20 09:40:01]: file has no execute permission: (/home/aria/domains/ariaazari.ir/public_html/image/hi30.JPG)
[2011-05-20 09:40:02]: uid: (513/aria) gid: (515/aria) cmd: steam turbine.jpg

Hevithan 05-21-2011 01:56 AM

The first thing I notice is FILE HAS NO EXECUTE PERMISSION ... Maybe root has it and other don't, such as other groups accessing your network ... maybe it tries to access them and just fails due to permission of the file, You may want to check ownership and permission on each of the files specified in your log. That's all I can think of ... Of course I'm pretty new. If you run
Code:

chmod -x
and set all the files to -x (or maybe even a-x) I think that'll do, Then when your server pulls them up it will be able to access them.


I have no idea how close to right this is ... Or if it is of any help, But that is what I notice, and those are my thoughts.

Best of luck.

corp769 05-21-2011 02:02 AM

Quote:

Originally Posted by Hevithan (Post 4362587)
The first thing I notice is FILE HAS NO EXECUTE PERMISSION ... Maybe root has it and other don't, such as other groups accessing your network ... maybe it tries to access them and just fails due to permission of the file, You may want to check ownership and permission on each of the files specified in your log. That's all I can think of ... Of course I'm pretty new. If you run
Code:

chmod -x
and set all the files to -x (or maybe even a-x) I think that'll do, Then when your server pulls them up it will be able to access them.


I have no idea how close to right this is ... Or if it is of any help, But that is what I notice, and those are my thoughts.

Best of luck.

Close....
Code:

chmod +x file.bla
The +x gives the permission, whereas the -x removes it.

Cheers,

Josh

Hevithan 05-21-2011 02:07 AM

Quote:

Originally Posted by corp769 (Post 4362590)
Close....
Code:

chmod +x file.bla
The +x gives the permission, whereas the -x removes it.

Cheers,

Josh

That's odd ... a plus sign for adding and a minus sign for subtracting ... What will they think of next.


All times are GMT -5. The time now is 12:12 AM.