• 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 Startup: Unable to load dynamic library 'openssl' in Ubuntu

Create a new line whenever an array value reaches more than 10 characters

Get all WooCommerce products within own plugin

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

Laravel Schedule not sending email

Using PHP to connect to a remote MSSQL database

How do I enable error reporting in Laravel?

How to change 'users' auth table and use another instead Laravel

Additional price based on cart item count in WooCommerce

Lumen - Postgresql setup - Composer

Error Class "LaravelFortifyFeatures" not found

php mysql + create a friend request system

Symfony 4: "Autowire: you should configure its value explicitly."

JQuery content editable div and text box on submit not sending POST

How do I pass the dynamic output of a php variable or php function to a CSS variable?

About Contact Privacy policy Terms and conditions