CentOS *** ERROR: Phusion Passenger doesn't seem to be running
<p>While i'm deploying my rails application through capistrano to my CentOS server all the time i have been receiving this error:</p>

<blockquote>
  <p>*** ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be one
  of:</p>
  
  <ol>
  <li>You customized the instance registry directory using Apache's
  PassengerInstanceRegistryDir option, Nginx's
  passenger_instance_registry_dir option, or Phusion Passenger Standalone's
  --instance-registry-dir command line argument. If so, please set the
  environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory
  and run this command again.</li>
  <li>The instance directory has been removed by an operating system background
  service. Please set a different instance registry directory using Apache's
  PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir
  option, or Phusion Passenger Standalone's --instance-registry-dir command
  line argument.</li>
  </ol>
</blockquote>

<p>On my server i have apache and passenger 5.0.30
Firstly i was looking on others answers here on stack:
<a href="https://stackoverflow.com/questions/31761542/phusion-passenger-status-what-value-for-passenger-instance-registry-dir?s=1%7C5.1507">Link to one of these topics</a>.
Unfortunately nothing hasn't helped me. I tried to set the env path and others settings from apache conf as well.
Any idea what should i change in order to deploy my rails app?
Where is the full path to the first passenger-status in PATH? Does it match passenger_root?
Below are my logs:</p>

<pre><code>$ passenger-config validate-install


&gt; What would you like to validate? Use &lt;space&gt; to select. If the menu
&gt; doesn't display correctly, press '!'
&gt; 
&gt;    ⬢  Passenger itself  ‣ ⬢  Apache
&gt; 
&gt; -------------------------------------------------------------------------
&gt; 
&gt; Checking whether there are multiple Apache installations... Only a
&gt; single installation detected. This is good.
&gt; 
&gt; -------------------------------------------------------------------------
&gt; 
&gt;  * Checking whether this Passenger install is in PATH... ✓  * Checking
&gt; whether there are no other Passenger installations... ✓  * Checking
&gt; whether Apache is installed... ✓  * Checking whether the Passenger
&gt; module is correctly configured in Apache... ✓
&gt; 
&gt; Everything looks good. :-)




$ rvmsudo passenger-memory-stats

Version: 5.0.30
Date   : 2016-11-15 13:43:44 +0100

---------- Apache processes ----------
PID    PPID   VMSize    Private  Name
--------------------------------------
25188  1      476.6 MB  1.5 MB   /usr/sbin/httpd -DFOREGROUND
25220  25188  270.4 MB  0.5 MB   /usr/sbin/httpd -DFOREGROUND
25246  25188  478.6 MB  0.2 MB   /usr/sbin/httpd -DFOREGROUND
25247  25188  478.6 MB  0.2 MB   /usr/sbin/httpd -DFOREGROUND
25248  25188  478.6 MB  0.2 MB   /usr/sbin/httpd -DFOREGROUND
25249  25188  478.6 MB  0.2 MB   /usr/sbin/httpd -DFOREGROUND
25250  25188  478.6 MB  0.2 MB   /usr/sbin/httpd -DFOREGROUND
### Processes: 7
### Total private dirty RSS: 3.08 MB


-------- Nginx processes --------

### Processes: 0
### Total private dirty RSS: 0.00 MB


----- Passenger processes -----
PID    VMSize    Private  Name
-------------------------------
25222  421.0 MB  0.9 MB   Passenger watchdog
25225  772.6 MB  1.5 MB   Passenger core
25234  431.3 MB  1.0 MB   Passenger ust-router
### Processes: 3
### Total private dirty RSS: 3.39 MB
</code></pre>

<p>My apache config file:</p>

<pre><code>    &lt;VirtualHost *:80&gt;
    ServerName www.app.com
    ServerAdmin admin

    DocumentRoot "/srv/www/app_name/current/public"

LoadModule passenger_module /home/userr/.rvm/gems/ruby-2.2.5/gems/passenger-5.0.30/buildout/apache2/mod_passenger.so

#&lt;IfModule mod_passenger.c&gt;
#    PassengerRuby /usr/local/rvm/gems/ruby-2.2.5
#    PassengerRoot /usr/local/rvm/gems/ruby-2.2.5/gems/passenger-5.0.30
#    PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.2.5/wrappers/ruby
#    PassengerInstanceRegistryDir /tmp
#&lt;/IfModule&gt;

&lt;IfModule mod_passenger.c&gt;
        PassengerRoot /home/userr/.rvm/gems/ruby-2.2.5/gems/passenger-5.0.30
        PassengerDefaultRuby /home/userr/.rvm/gems/ruby-2.2.5/wrappers/ruby
        PassengerInstanceRegistryDir /tmp
&lt;/IfModule&gt;

    Options -Indexes -FollowSymLinks -MultiViews

    LogLevel warn
    ErrorLog logs/www.app.com-error.log
    TransferLog logs/www.app.com-access.log
    CustomLog logs/www.app.cp,.log combined

&lt;Directory /srv/www/app_name/current/public&gt;
   AddDefaultCharset UTF-8

   &lt;IfModule mod_authz_core.c&gt;
     # Apache 2.4
     &lt;RequireAny&gt;
       Require all granted
     &lt;/RequireAny&gt;
   &lt;/IfModule&gt;
   &lt;IfModule !mod_authz_core.c&gt;
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from All
   &lt;/IfModule&gt;
&lt;/Directory&gt;

&lt;/VirtualHost&gt;
</code></pre>

<p>And my env path:</p>

<pre><code>   env file:
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    LOGNAME=root
    USER=root
    USERNAME=root
    HOME=/root
    SUDO_COMMAND=/bin/env PASSENGER_INSTANCE_REGISTRY_DIR=/tmp
    SUDO_USER=userr
    SUDO_UID=1001
    SUDO_GID=100
    PASSENGER_INSTANCE_REGISTRY_DIR=/tmp
</code></pre>

<p>For sure i'm making something wrong. Thanks for every advice. </p>