• 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 install php yaml on CentOs?

How to modify CSS in a specific page of the WP admin dashboard (backend)

PHP array stringify

Laravel database insert with combining array and string

PHP's array_map including keys

Read users and passwords from a txt file

Populate Dynamic Dropdowns List in Codeigniter

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

Laravel relationship belongsToMany with composite primary keys

Laravel Jetsream Profile page not loading on fresh install

run a query using EXECUTE BLOCK to prepair a column for an unique-Index

PHPExcel file download using AJAX call

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

Move a child array to parent array and change parent/child name

Losing session data after POST from third party website

About Contact Privacy policy Terms and conditions