1
vote
1answer
264 views

allowing php/apache to delete files in an ftp directory and subfolders

Basically, I am having an issue with a php script being able to move or delete files, and I know it has to do with permissions since that's what the php error from unlink() is telling me, but I'm not ...
0
votes
1answer
184 views

How to add write permissions to php/apache? [duplicate]

I've got the following scenario: There's a folder named "uploads". It's owned by "root" and it's group is "webmasters". Permissions are set to 755. drwxrwsr-x 2 root webmasters 4096 Mar 20 22:49 ...
0
votes
1answer
129 views

File readable by only PHP?

I'd like to make a file on my server be readable by PHP, but not directly accessible with a browser. Say my Apache installation's root is /apache. I'd like PHP to be able to get the text of ...
3
votes
3answers
920 views

Allow PHP to write file without 777

I am setting up a simple website on webspace provided by my university. I do not have database access so I am storing all the data in a flat file. The issue I am experiencing is related to file ...
0
votes
1answer
151 views

Trying to include file from another account: permissions denied

I have a dedicated server running php with dso handler, I am including a global config.php from one account into all the other accounts. This works fine on apache when opening the sites via browser. ...
-2
votes
2answers
525 views

Chmod wont stick [closed]

I'm using CentOS on a virtual dedicated server. When I go in as root, and change the chmod value of a folder it works. But, any files I place into that folder do not inherit the chmod I set. This is ...
0
votes
2answers
459 views

Apache 404 Error While PHP File Exists

I am getting 404 error while the file exist. I gave the file (chmod 755) still the file does not show up. Strange part it only happens to few files. I am certain the file exists on the directory ...
1
vote
3answers
171 views

The secure linux server by dir permissions

I am using php on Linux / Apache server. I have Three type of directories like as |_ Writeale Directory |_ PHP Files |_ Image Files Writeable Directory would used only by PHP to writing some txt, ...
0
votes
2answers
473 views

Create Symbolic Link to files below user's home dir

I apologize in advanced if this question is better suited for Stack Overflow. We have a CentOS cPanel server and we want to share some PHP code base with another user. We don't have open_basedir ...
3
votes
4answers
2k views

Why is it so important to remove 777 permissions?

I'm writing installer for my PHP web app. It requires user to change permissions of a few files and directories (config.php, cache, uploads, .htaccess) to 777 (so that it's writable). I've seen in ...
0
votes
2answers
2k views

Fixed: Apache - PHP permissions to create / edit files and directories?

I have a server on rackspace clouds... Fedora 13, and I installed apache, mysql. Now, I have a piece of code (PHP) that my web app uses a lot. It works on my local machine running XAMPP, but when I ...
3
votes
3answers
808 views

Alternative to having directories with 777 permissions

I am running several websites on my dedicated server and a lot of my sites require that some directories have permissions set to 777. I know this is a major security issue, and I also know it's ...
5
votes
5answers
2k views

Making Apache able to write to PHP files with PHP running as DSO?

I have PHP running as a DSO. As such, my installer script (which writes to a config file) can't do any writing. How do I give apache (user: nobody) the ability to write to the file?
2
votes
2answers
472 views

CHMOD in web hosting

my Hosting is use Apache and PHP i understand what it's mean 777 in CHMOD or drwxrwxrwx or Owner, Group, Public => read, write, execute. i understand with the RW CHMOD command but what about the X, ...
0
votes
3answers
169 views

chmod issue with particular user

I'm starting with chmod. I've set up a group and gave them permission (777) and every user inside the group is able to do whatever they want inside the directory /www/. However, I need to change the ...
1
vote
2answers
232 views

Should I set permissions to 777 for setup and config file?

I am writing a large PHP application (with setup) for the first time and am wondering about the security precautions I should take for permissions. setup.php uses uses fopen/fwrite to generate a ...
1
vote
0answers
457 views

Python server does not excecute PHP script: permission denied

I am trying to execute a PHP file through a Python server. However, I get the following error: File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/CGIHTTPServer.py", line ...
4
votes
2answers
7k views

what chmod and owner:group settings are best for a web application?

we are configuring a PHP web application on CentOS and have all our files currently in /var/www/html/project/ Apache is configured to run as apache:apache and has access to the directory above. Right ...