All Questions
Tagged with php permissions
55
questions
17
votes
5
answers
79k
views
PHP script can't run bash script. sh: Permission denied
I'm trying to exec a .sh script from PHP, however it is not executing.
I checked the error logs, and I'm getting the 'sh: Permission denied' error. I checked under which user php is being run, and ...
1
vote
1
answer
3k
views
Playing sound on server using php
I want to play a sound file on my server using PHP. The PHP script is called by Apache and runs under the user 'nobody', which has by default no access to the speakers. So I created a new user ...
0
votes
1
answer
82
views
Allow Verified Users Only To View Directories
I want to upload some websites I have worked on to an Apache server. What I would like to do though is to use an .htaccess file or something similar to redirect the user to a login page if they go ...
1
vote
3
answers
3k
views
Can't write to /var/www/ directory with PHP, permissions are 777
I can't understand where the problem is. Apache is running with my standard user that actually can write those files.
What should I do?
0
votes
1
answer
352
views
Apache/php permission problem
I think it's self explaining. It says it's not writable but the permissions are correct. I'm logged as a root but it's the same for every user. So where's the problem?
0
votes
3
answers
18k
views
PHP mkdir() permission denied
I've got a server setup with Centos 5.6, Apache 2.2.19 and PHP 5.2.17. PHP is being handled by suPHP.
In the global php.ini
safe_mode = off
open_basedir = none
Apache is set to run as nobody in the ...
3
votes
4
answers
23k
views
permission denied when doing fopen on a 777 permission file in php
Im not new to php or file permissions. But i just migrated an extremely simple script to a new server I setup.
The folder which the script runs is in the document root.
The permissions for the folder ...
7
votes
4
answers
4k
views
What are the risk associated while setting file/directory permission to 0777?
Currently, I am not being able to upload a file to a web folder. Whatever I do, even setting the folder permissions to 0777 I cannot upload the file to it. Out of curiosity, I searched for the risk ...
0
votes
1
answer
1k
views
Php having access to the filesystem - getting Permission Denied
I'm trying to track down a php issue with a tool that I'm trying to install, and have tracked it down, I believe, to a permissions issue with the filesystem, I believe...
I now have the following ...
1
vote
2
answers
6k
views
What are the different file permission codes and what do they mean?
I am working with a file upload script. I am currently uploading a file and then trying to echo out an anchor linking to that file, but since I used mkdir() with 0700 permissions to upload the file, ...