0
votes
1answer
54 views

PHP can't save sessions due to permission error

I know that this question must have been asked (and answered) before, but I can't find a solution for my problem in any of those questions. It's a bit odd... The problem is that my PHP scripts (and my ...
0
votes
1answer
172 views

umask for www-data user running PHP on Ubuntu

Setting up a new webserver in Ubuntu 14.04 and trying to wrangle file permissions for PHP generated files. By default, all the directories and files in /var/www are owned/grouped to www-admin. ...
0
votes
1answer
93 views

php script can't access /tmp folder

I have no open_basedir, php can access /etc /usr /proc /home etc… but not /tmp. tmpfs is mount on /tmp (/tmp type tmpfs (rw)) That's also the reason I want to use the /tmp folder. My files are owned ...
0
votes
1answer
275 views

Capistrano fails to delete folders/files created by Apache

Problem Capistrano deploys a web application via SSH using deploy user. Apache/PHP runs under typical www-data user. Web server is creating cache files and folders at runtime inside the app path. ...
0
votes
1answer
33 views

Images don't display but can see them using their URLs [closed]

So my website doesn't display the images for some reason but these images are being displayed alone on their single URLs. By the way I am using WordPress Here is the screenshot of how it looks: ...
0
votes
1answer
29 views

Should shared account user and apache php process user be the same in a shared server?

I have a shared server for PHP and the user account under which the Apache webserver is running is nobody and the user for my ftp and cpanel is different lets say jokertec. Now when my webserver ...
1
vote
1answer
170 views

PHP file upload system security implications

i've build a small upload system using PHP, it is working just fine for now however, the problem i have is the way i've got it to work. I don't have much of a background in security, but is what i'm ...
1
vote
2answers
469 views

nginx and php-fpm - Cannot write PHP error log

I am using Nginx and PHP-FPM on Linux. I am not sure whether the issue is that PHP is not writing to the location specified in the PHP.ini, or if it just isn't working at all. Some of the logs ...
2
votes
4answers
3k views

How to configure PHP CLI on linux ubuntu to run as www-data?

I have a symfony2 application on my ubuntu. Symfony has a plenty of useful console commands (like php app/console cache:clear or php app/console assets:install web). The problem is If I run them as ...
-3
votes
2answers
114 views

index.html opens up fine but index.php saying 404 not find page [duplicate]

Possible Duplicate: How to configure php5 on apache2.2? I have bought new apache server 142.4.4.15 It opens up index.html but cannot open index.php I have php, apache and mysql installed on ...
2
votes
1answer
1k views

Should I use suPHP or DSO (mod_PHP) when php scripts need to manipulate files?

I recently asked a question on StackOverflow and I'm going to re-ask it here as a different question and with some changes and additional information. I have a bunch of php scripts that need the ...
0
votes
1answer
153 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
3answers
852 views

PHP unlink() deleting file user has no permission to

A bit of a long shot here but thought I'd see if anyone had a fix for this: I am having an issue whereby the PHP function unlink() is being able to successfully delete a file even though explicit ...
0
votes
1answer
100 views

Proper linux permissions for images that are uploaded to allow deletion and re-uploading

What permissions should I set, and how, to allow apache to overwrite uploaded images, deleting them and re-uploading them, as well as allowing the permissions on the underlying folders to be passed to ...
0
votes
0answers
88 views

Make my upload folder more secure

I'm sorry if there is already 100 answers out there about this, but they just got me confused. I've a working php-script that allows me to upload images to the webserver when I'm logged in to a CMS. ...
0
votes
1answer
357 views

Disable suhosin file permission check

I have just recently found out that suhosin makes sure not to execute php files with file permissions more open than 755. However, I need to temporarily allow someone else FTP access to some files, so ...
0
votes
1answer
97 views

Permissions of httpd apache2 and running certain php commands

I ran some recursive linux command that changed the permissions to all my website files.. all files are now like -rwxrwxrwx and all dictionaries are. drwxrwxrwx I don't know if that has anything to ...
8
votes
3answers
548 views

My server Admin wants me to set public write permissions on a directory

I'm relatively new to web development, so please be patient. I'm primarily an iPhone developer, but have recently done a site for someone else using shared hosting. I could write to files in PHP on ...
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
1answer
70 views

Same code, executes through browser, throws a permission error through command line

I've got an app that works fine in the browser, but when run through the command line, throws a permission error (related to folder creation). What could be the reason?
0
votes
1answer
662 views

Permission denied on Netgear ReadyNAS duo

This topic: http://www.readynas.com/forum/viewtopic.php?f=36&t=53960 My Netgear ReadyNAS duo (it's a Debian box) is running PHP. I wrote a script for organizing some files. I succesfully read ...
4
votes
3answers
200 views

Proper permissions for two developer team on PHP5 Apache Linux server

I was hoping someone could point me in the right direction regarding Linux permissions. I understand how to calculate what permissions are, understand the methodology behind changing them and can ...
1
vote
1answer
796 views

File permissions on web server

I have just read this useful article on files permissions, and I am about to implement a as-strict-as-possible file permissions policy on our webserver. Our situation: we have a web server accessed ...
0
votes
3answers
445 views

Setup PHP Permission under Apache

what i am trying to acomplish is to have a php page execute a shell command and display the output on the web page. the code for the page is something along the lines of <?php echo ...
1
vote
1answer
306 views

Security / Permissions when multiple sites accessing single directory : SuPHP

I am on a HostGator "Basic" Dedicated linux server. A current project calls for an image library that is accessible from multiple sites on the server. We are running SuPHP so each site has a ...
0
votes
1answer
129 views

Allow PHP script to modify all sites on a server

I have a bunch of sites on a standard HostGator Dedicated server. I would like to run PHP scripts that can access and make changes (add, update, delete files and directories) to the file structure of ...
0
votes
4answers
202 views

Permissions on cron scripts?

I've got some php scripts that I need to schedule for every hour. (a) How do I schedule them from the command line / shell? (b) What permissions / ownership should I set on them? Edit 1: Hi ...
0
votes
2answers
225 views

file won't upload unless i change the file permission to 0777 on my server

i am unaware on the cons and pros of giving the directory permission to 0777, and i have left with no choice but to use the 0777 file permission to upload files on my server through my application. ...
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 ...
3
votes
2answers
385 views

Owner and permissions on a hacked file versus on a “legal” file

This relates to a hacking incident we had to deal with. The hackers inserted a php file into our system. The directory in question does receive uploads (images) from our cmsadmin. However, all files ...
0
votes
2answers
5k views

Plesk file permissions - Apache/PHP conflicting with user accounts

I'm building a Drupal site which performs various automatic disk operations using the apache user (id=40). The problem is that the site was set up on a subdomain belonging to user ID 10001 (ie my ...
1
vote
2answers
157 views

Puzzled about PHP file permission and shared webhosting - what are some explanations?

I have this issue with different web-hosting, particular upload scripts which can only upload to a folder only if it has 777 permission (which is risky). On the test server (on a different webhost), ...
2
votes
1answer
590 views

Creating Daemons in Linux… how should the file permissions be?

I am setting up a few PHP Gearman Daemons running on PEAR System_Daemon. I need them to be able to write to the following locations... /var/run/{APPNAME}.pid /etc/init.d/{APPNAME} ...
1
vote
1answer
1k views

How do I set the default umask in apache?

I need to set the default umask in apache on fedora so that my uploaded files have permissions 644 which are set to 600 by default in spite of doing chmod( $uploaded_file , 0644 ); in php script. Can ...
1
vote
5answers
4k views

Enable apache to fopen/write in a directory?

I just recently setup apache, I'm setting up a basic site and right now I'm having permissions issues. Firstly, /www/ /www/sitename_com are owned by meder:meder and the permissions are 755 ...