I'm trying to install passenger on cPanel controlled VPS, but running into problems with permissions. I installed all required dependencies as a root user and i'm running command:

[johnny@server1 ~]$ passenger-install-apache2-module

and I get this:

Checking for required software...

  • GNU C++ compiler... found at /usr/bin/g++
  • Curl development headers with SSL support... found
  • OpenSSL development headers... found
  • Zlib development headers... found
  • Ruby development headers... found
  • OpenSSL support for Ruby... found
  • RubyGems... found
  • Rake... found at /home/peter/.rvm/wrappers/ruby-1.9.2-p180/rake
  • rack... found
  • Apache 2... found at /usr/local/apache/bin/httpd
  • Apache 2 development headers... found at /usr/sbin/apxs
  • Apache Portable Runtime (APR) development headers... found at /usr/local/apache/bin/apr-1-config
  • Apache Portable Runtime Utility (APU) development headers... found at /usr/local/apache/bin/apu-1-config

And after that error appears:

/home/johnny/.rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.9/bin/passenger-install- apache2-module:115:in ': No such file or directory - /usr/local/apache/bin/httpd -V (Errno::ENOENT)

So then I try:

[johnny@server1 ~]$ /usr/local/apache/bin/httpd -V

and get:

-jailshell: /usr/local/apache/bin/httpd: No such file or directory

The binary is definitely there because I can run it as root user. I set permissions to 755 but still it shows as it does not exist for non-root user.

The paths to httpd, APR and APU I specified manually using APU_CONFIG, APR_CONFIG and HTTPD environment variables for Passenger to even detect them.

What am I doing wrong?

link|improve this question
I would be very interested in hearing if this was a success story. I'm currently trying to use rvm with cPname/whm and I'm having a nightmare with installing gems. Any tips? – Abe Petrillo Feb 2 at 17:51
feedback

1 Answer

You do not/cannot install an apache module as a normal user. You must install it as root. Also do not mess with cPanel permissions unless you are aware of what you are doing.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.