• 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

PHP Discord OAUTH2 code sample not working

Insert a DIV after the 6th product only once in WooCommerce category archives

PHP -> Next nearest date defined by array of days in week

MySQL upgrade causing unexpected results on simple WHERE clauses

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

PHPExcel file download using AJAX call

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

Can I write PHP code across multiple lines per statement?

How to pass data to all views in Laravel 5?

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Elastic Beanstalk with Laravel Envoy

Appending data to an anchor tag

Cache clear probem in Larave

Debugging Stripe Webhook Event

PHP: How to quickly split a key=value file into associative array

About Contact Privacy policy Terms and conditions