Last active
August 27, 2019 10:17
-
-
Save esimonetti/08889c582460abbac2b8285ec08807c1 to your computer and use it in GitHub Desktop.
Change sugar upload dir to another disk/mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
... | |
# file path will depend on the installation path or where the file should be | |
# if this needs to be executed everywhere (even from cron), consider setting it on php.ini instead of the .htaccess | |
php_value auto_prepend_file /var/www/html/sugar/prepend.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
... | |
$sugar_config['upload_dir'] = '/my/external/upload'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('SHADOW_INSTANCE_DIR', '/my/external/upload'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# something similar to the commands below, based on the environment settings and apache user | |
mkdir -p /my/external/upload | |
chown -R www-data:www-data /my/external/upload | |
chmod -R 700 /my/external/upload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment