• 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 - Store information with NO database

Error converting docx to pdf using Unoconv

Laravel Delete and Update

Xdebug 3 not showing in phpinfo on m1 Monterey

Open a popup box after receiving result from ajax

php file upload scanning using clamav, permissions on /tmp/

Laravel Blade checkbox not checked

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

How to upload mpdf file after generating to s3 bucket in php

Make certain characters of a word from string bold

WAMP Virtual Host not working

Unable to uninstall brew php from homebrew

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

Laravel php artisan serve to mimic HTTPS

add uri parameter to Route name in laravel

About Contact Privacy policy Terms and conditions