LinuxQuestions.org
Visit Jeremy's Blog.
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 11-24-2009, 10:15 PM   #16
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65

2 Zabrajin: follow advices about SElinux.

2 davidstvz: there's no need to go such a hard way and add password and shell for users that must never have it so take an unnecessary risk.
running su -s /bin/sh apache will do the trick safely.
 
Old 11-24-2009, 11:16 PM   #17
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,230

Rep: Reputation: 132Reputation: 132
Quote:
And you can view the php info page here: http://199.187.126.22/phpinfo.php
is this your public ip? if yes don't post such real public ip's actually this is for your safety(To prevent the attacks).
 
1 members found this post helpful.
Old 11-25-2009, 02:12 AM   #18
Zabrajin
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
Code:
$ /usr/sbin/getenforce
aahhm... what should i do with this line of code? How can ich chek wether SELinux is enabled or not?



Quote:
Originally Posted by Web31337 View Post
2 Zabrajin: follow advices about SElinux.

2 davidstvz: there's no need to go such a hard way and add password and shell for users that must never have it so take an unnecessary risk.
running su -s /bin/sh apache will do the trick safely.
I did the su to apache the way you described and i'm able to create the directory
 
Old 11-25-2009, 03:46 AM   #19
Zabrajin
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Ok i got it ^^ Setting the httpd_sys_script_rw_t context for the default folder fixed it!
Thanks everyone for the hint with SELinux! I didn't know about that and would have searched for ages


best regards

Zabrajin
 
Old 02-06-2011, 07:40 AM   #20
Bazze
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
I'm having the exact same issue. How did you solve this? I'm running Debian 5.0 on a VPS.

I've done the following:
Quote:
chown -R www-data.www-data documents
chmod -R 777 documents
which gave this:
Quote:
drwxrwxrwx 2 www-data www-data 4096 Feb 5 13:53 documents
I've tripple checked so all my paths is correct in my script, and I've also tripple checked what user PHP is running as. Any ideas?
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
BIND 9 Permission denied when chmod is 777 o_O KasperLotus Linux - Networking 10 09-07-2005 12:20 AM
BIND 9 Permission denied when chmod is 777 o_O KasperLotus Linux - Software 0 08-28-2005 11:42 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
chmod : permission denied onebyone Linux - Software 4 01-27-2004 02:29 PM


All times are GMT -5. The time now is 01:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration