• 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

Extract string between first whitespace and last whitespace in php

PHP how to detect if running on arm64 cpu?

Check if string contains a value in array [duplicate]

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

Group rows by column and sum another column within groups [duplicate]

Adding the custom page with add_menu_page function on Wordpress

PHP-Sort array based on another array?

Create a zip file and download it

How to convert a carbon into string, to take the date only?

How to show selected value using javascript in laravel

Using spatie/media-library, how to rename a collection of uploaded files?

sort() not affecting original array while inside foreach loop

Pass a select with mysqli_fetch_row to a table

How can I get a div content in php

onKeyUp event calculation not working on the following rows from php generated forms except the first one

About Contact Privacy policy Terms and conditions