LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2011, 10:03 AM   #1
woshka1
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Unhappy 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

Last edited by woshka1; 05-20-2011 at 10:10 AM.
 
Old 05-21-2011, 02:56 AM   #2
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
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.
 
Old 05-21-2011, 03:02 AM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Quote:
Originally Posted by Hevithan View Post
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
 
Old 05-21-2011, 03:07 AM   #4
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
Quote:
Originally Posted by corp769 View Post
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Virtualmin / Apache / Suexec problem guzabi Linux - Server 1 04-26-2010 01:47 PM
apache mod_fastcgi: .fcgi file returning as text. Llanilek Linux - Software 0 10-25-2008 11:05 AM
apache php suexec problem pecko Linux - Software 0 02-24-2006 06:22 AM
apache suexec hassan2 Linux - Software 0 08-03-2005 08:01 PM
Apache suexec Rachel Carter Linux - Software 0 01-31-2003 04:27 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration