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
-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?