I had installed apache webserver on my local machine (Linux Mint 15) and everything was working fine until I tried to install npm/nodejs.
I'm getting this error whenever I try starting apache -
module.js:340
throw err;
^
Error: Cannot find module '/LANG=en_US.UTF-8'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
I have scoured the internet to find solution to this problem and make apache work again, but in vain.
My problem is thus - I don't need nodejs. I have removed and uninstalled npm
and node
using apt-get
. I have manually removed all the node_modules
and node
directories from /usr/lib
and ~
. But the problem still remains.
I checked every .conf and .load file for apache and still cannot figure out where/how/why apache is loading module.js
and node.js
files from.
Can someone help with this?
EDIT:
Contents of my mods-enabled
folder:
access_compat.load authz_user.load filter.load php5.load
alias.conf autoindex.conf mime.conf setenvif.conf
alias.load autoindex.load mime.load setenvif.load
auth_basic.load deflate.conf mpm_prefork.conf status.conf
authn_core.load deflate.load mpm_prefork.load status.load
authn_file.load dir.conf negotiation.conf
authz_core.load dir.load negotiation.load
authz_host.load env.load php5.conf