Adding a module path to apache in cent OS

I use centos 7, have a path /root/.nodemodulesglobal/bin

that needed to run a server side cordova.js

I tried

/etc/profile.d/cordova.sh

adding path to /etc/sysconfig/httpd

adding path to /etc/profile using pathmungo

I did all login as root,

it added when I logged in as root

but not pick up from phpinfo

any solution is helpful

:)

1 Reply

The /root directory is readible only by the the root user. The http user likely cannot access it. Try moving the modules to a location that is accessible to all users and adjust your configuration accordingly.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct