0
votes
0answers
35 views

Centos 6 rsyslog missing audit.log

I'm trying to get to work the wkhtmltopdf on apache, php 5.5, centos 6 64bit. The error is "sh: /usr/local/bin/wkhtmltopdf: Permission denied" so my thoughts were selinux. I tried to follow steps ...
0
votes
1answer
263 views

object not found in lampp ubuntu 13.10

am a newbie linux user.i have installed xampp 1.8.3-2(lampp)on ubuntu13.10 and configured it. i paste my wwwfolder to ubuntu 13.10 in/opt/lampp/htdocs. now the owner of www folder is root with ...
2
votes
2answers
1k views

OSX, Failed to listen on 0.0.0.0:80 (reason: Permission denied)

I'm on OSX Mavericks. I installed PHP 5.5 from http://php-osx.liip.ch/. When I go to localhost in a browser I get a page that says, "It Works!" which is not a page I created so I am not sure where it ...
0
votes
1answer
62 views

Secure Apache PHP installation: Using the right user:group

i want to "perfectly" protect my apache PHP installation on a linux server. In the history, i had problems with script-virues / exploids, so it needs to be a "secure" solution. My current solution: ...
4
votes
2answers
2k views

Error starting Apache with PHP module on Windows: “Cannot load php5apache2_4.dll into server: Access is denied”

I'm having some difficulty installing Apache 2.4.7 with PHP 5.5.7 on Windows Vista Service Pack 2. When trying to start Apache, I'm getting the error: Syntax error on line 176 of C:/Program ...
2
votes
2answers
859 views

Unable to write files on CentOS

I have a VPS running on CentOS 6 and apache2 as webserver. I have several PHP scripts running in my server, and everything goes smooth, except to file writing. For some reason, my PHP scripts are ...
0
votes
2answers
105 views

Permissions dilemma - Private key requires 600 for terminal SSH, more open for PHP

I have a private key file that will be used in the following two use-cases: SSH -i /path/to/private/key within terminal -- Requires 600 permission set A file_get_contents() statement within PHP -- ...
1
vote
1answer
488 views

PHP external program call

My setup is as follows: Windows 7, XAMPP with Apache and PHP enabled I have a PHP script in which I call an external program to do run a conversion. This external program is an EXE file, which ...
3
votes
1answer
194 views

How can two identically named files exist in the same place on linux

. I'm not a novice in linux I created a bunch of files with php using file_put_contents() I can't view the created files via browser I can view the files from the ftp but can't ...
0
votes
1answer
201 views

Unable to run test.sh file through project.php inside /var/www/

test.sh's path is /var/www/proj/test.sh, and project.php is inside /var/www/ and my test.sh uses and creates some .txt files. when i execute test.sh through terminal it works fine, but when I run ...
1
vote
1answer
3k views

Recursive write permissions on files and folders: Prestashop installation

I am trying to install Prestashop in my Linux machine. But it says Recursive write permissions on files and folders: ~/config/ ~/cache/ ~/log/ ~/img/ ~/mails/ ~/modules/ ~/themes/default/lang/ ...
1
vote
3answers
290 views

Can PHP write to a directory without 0777?

I'm making a website builder, and I have the file render.php, which needs to write to users’ directories. I don't want to give each of the users’ directories 0777, but I still need to be able to write ...
1
vote
1answer
33 views

Need secure solution to get the size of a directory with PHP

I have a vmail directory manage by postfix with the permissions set like this: user: vmail group: vmail permission 700 I need to get the size of that directory with PHP. To do this, I'm using ...
1
vote
1answer
439 views

PHP: mkdir(): Permission denied

I've php script that should create two new folders in "albums" and "pl". in "albums" apache can create a new folder but not in "pl", even though they have the same permissions. I can't understand what ...
0
votes
1answer
223 views

Scanning php uploads in tmp directory with clamdscan fails

I can't seem to get this thing to work, some permission problem maybe, but i can't even run clamdscan normally form console with root the result is always Permission denied. for example i create a ...
1
vote
1answer
157 views

Cannot read directory

I am using CentOS 6.3 and I am trying to opendir and readdir using PHP. apache is in the group of the user and I am trying to read the /home/user/mnt which is mounted remotely using SSHFS. ...
2
votes
1answer
471 views

Set permissions to www user to run ImageMagick

I have installed ImageMagick on my OSX Lion. When running from the console everything works fine. But when I'm trying to run 'convert -version' from a php script : <? exec('convert -version', ...
3
votes
1answer
7k views

Perrmission to run specific command by sudo as www-data users without password

I have a webserver that also plays internet radio. As www-data user I want to run some commands, for example I've made this in /etc/sudoers file: www-data ALL=(ALL) NOPASSWD: /usr/bin/amixer ...
6
votes
2answers
14k 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
1answer
475 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
1answer
48 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
2answers
673 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
1answer
232 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
3answers
4k 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
4answers
6k 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 ...
5
votes
4answers
686 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
1answer
698 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 ...
0
votes
1answer
1k views

Windows 7 and xampp - unable to write files using codeigniter

I am on Windows 7 using XAMPP and am trying to write file to the default install location of C:\xampp\htdocs using a PHP script but I am getting write failures. I can write to my own user area. How ...
1
vote
2answers
2k 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, ...