• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to give apache permission to write to home directory?

phpapache


PHP Snippet 1:

chmod 0777 /home/djameson/test.txt

PHP Snippet 2:

sudo chown www-data:www-data /home/djameson/test.txt
chmod 0744 /home/djameson/test.txt

PHP Snippet 3:

sudo usermod -a -G www-data djameson
chmod 0764 /home/djameson/test.txt

PHP Snippet 4:

chown -R apache /full-path-to-target-folder/
chcon -R -t httpd_sys_rw_content_t /full-path-to-target-folder/

Related Snippets

Limit WooCommerce products in cart only from one custom taxonomy

browsersync doesn't work with XAMPP

CSV to PHP class properties

Handle error for duplicate entries - PHP/MySQL

enroll_table three field fetch to payment form to create payment field in laravel 5.5

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

Add New Parameter to Existing URL using htaccess

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Return multiple values from a function using mysqli_fetch_assoc [closed]

Laravel Collections. Is there some kind of assertStructure method?

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

How to find phpcs current default standard

AJAX call fails with SyntaxError: Unexpected end of JSON input

500 Internal Server Error on Ajax request. Not sure the origin of the problem

How can I get user id from session in javascript?

About Contact Privacy policy Terms and conditions