RE: Vhosts Directory Permissions for Yeoman
05-13-2015, 04:44 AM
(This post was last modified: 05-13-2015, 04:45 AM by apinto.)
(05-13-2015, 04:32 AM)compsmith Wrote:(05-13-2015, 04:10 AM)tkramer Wrote:Code:
chown -R apache:apache /var/sentora/hostdata/
chown -R www-data:www-data /var/sentora/hostdata/
If the redirection into the hostdata directory, ok! That's right! Should work! ... But if for some folder inside "/ etc /" like webmail or other module, will not work, even giving permission! In this case, as Me.B guidelines, you must create a redirect via .htaccess. as described in the post.
I dont want to redirect the hostdata directory. I just want to be able to execute yo commands in the public_html directory.
Here is the error its thowing
Code:[root@panel dev_XXXXXXX_com]# yo
/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/node_modules/glob/sync.js:319
if (this.strict) throw er
^
Error: EACCES, permission denied '/var/sentora/hostdata/zadmin/public_html/dev_XXXXXXXX_com/node_modules'
at Object.fs.readdirSync (fs.js:666:18)
at GlobSync._readdir (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/node_modules/glob/sync.js:275:41)
at GlobSync._processReaddir (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/node_modules/glob/sync.js:135:22)
at GlobSync._process (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/node_modules/glob/sync.js:130:10)
at new GlobSync (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/node_modules/glob/sync.js:46:10)
at Function.globSync [as sync] (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/node_modules/glob/sync.js:24:10)
at /usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/index.js:86:26
at Array.reduce (native)
at Function.module.exports.sync (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/globby/index.js:85:34)
at /usr/lib/node_modules/yo/node_modules/yeoman-environment/lib/resolver.js:71:22
I cant access anything past hostdata as root not any sudo users i created
Hum, this seems a issue with npm and yo.
Check https://github.com/yeoman/yeoman/issues/1292
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com