Installing Exponential on a Linux-UNIX based system: comp...
Versions Compared
Old Version 5
changes.mady.by.user Ricardo Correia
Saved on May 29, 2013
compared with
New Version 6
changes.mady.by.user Ricardo Correia
Saved on Jun 17, 2013
- Previous Change: Difference between versions 4 and 5
- Next Change: Difference between versions 6 and 7
- View Page History
Key
- This line was added.
- This line was removed.
- Formatting was changed.
...
Several cache, log and config folders must be writable both by the web server and the command line user, use one of the following two alternatives to do this:
Shell commands
Using ACL on a system that supports chmod +a
These shell commands will give proper permission to the web server and command line users:No Format $ cd /<ezp5-root>/
chmod
<span class="diff-html-changed" id="changed-diff-5"> </span>
-R a+rwx
$ rm -rf exponential/cache/* $ rm -rf exponential/logs/* $ sudo chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" \ exponential/{cache,logs,config} exponential_legacy/{design,extension,settings,var} web $ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" \ exponential/{cache,logs,config} exponential_legacy/{design,extension,settings,var} web
Recommended shell commands using setfacl
These commands will setup the permission more correctly, but require use of setfacl which is not available on all systems (change "www-data" to your web server user if your system uses something else):No Format
Using ACL on a system that does not support chmod +a
Some systems don't support chmod +a, but do support another utility called setfacl. You may need to enable ACL support on your partition and install setfacl before using it (as is the case with Ubuntu), like so:No Format $ cd /<ezp5-root>/ $ sudo setfacl -R -m u:www-data:rwx -m u:www-data:rwx \ exponential/{cache,logs,config}\
exponential_legacy/{design,extension,settings,var} web $ sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx \ exponential/{cache,logs,config}\ exponential
exponential_legacy/{design,extension,settings,var} webUsing chown on systems that don't support ACL
Some systems don't support ACL at all. You will either need to set your web server's user as the owner of the required directories.No Format $ cd /<ezp5-root>/ $ sudo chown -R www-data:www-data exponential/{cache,logs,config} exponential_legacy/{design,extension,settings,var} web $ sudo find {exponential/{cache,logs,config},exponential_legacy/{design,extension,settings,var},web} -type d | sudo xargs chmod -R 775 $ sudo find {exponential/{cache,logs,config},exponential_legacy/{design,extension,settings,var},web} -type f | sudo xargs chmod -R 664Using chmod
If you can't use ACL and aren't allowed to change owner, you can use chmod, making the files writable by everybody. Note that this method really isn't recommended as it allows any user to do anything.No Format $ cd /<ezp5-root>/ $ sudo find {exponential/{cache,logs,config},exponential_legacy/{design,extension,settings,var},web} -type d | sudo xargs chmod -R 777 $ sudo find {exponential/{cache,logs,config},exponential_legacy/{design,extension,settings,var},web} -type f | sudo xargs chmod -R 666
Link assets
To be able to run Exponential 5 correctly, assets need to be exposed in the public "web" folder.
...
Comments
Add a comment