• 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

How to trim a video by 4 fragments to 4 seconds using the PHP-FFMpeg?

PHP contact form configuration [duplicate]

Unable to guess the mime type as no guessers are available Laravel 5.2

Laravel Database Strict Mode

PHPExcel export HTML table to xlsx

PHP array_filter with arguments

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

Object of class stdClass could not be converted to string error

How to implement placeholder in a php file for moodle plugin?

PHP my timezone is no setting up in PHP.ini File in xampp

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

Zig-zag scan an N x N array

PHP: Print caught exception like Xdebug

Unable to create lockable file - Laravel 8 & PHP 8

Load a .env file with PHP

About Contact Privacy policy Terms and conditions