Score:0

Apache not working and seemingly not servicing any page

th flag
#
# Puppet Generated file do not modify manually
#
# staging
#
<VirtualHost *>
    ServerName staging.pdatwo.com

    
    
    ServerAlias www.staging.pdatwo.com 
    
    

    DocumentRoot /home/staging/version/www.staging.pdatwo.com
    ServerAdmin [email protected]

    SetEnv environment prod
    SetEnv project staging

    UseCanonicalName Off
    #CustomLog /var/log/httpd/staging.pdatwo.com_log combined
    #CustomLog /var/log/httpd/staging.pdatwo.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."

    ## User pdatwo # Needed for Cpanel::ApacheConf
    UserDir disabled
    UserDir enabled staging
    
      #<IfModule mod_suphp.c>
    #    suPHP_UserGroup staging staging
    #</IfModule>
    
    SuexecUserGroup staging staging
    
    <directory "/home/staging/version">
        AddHandler php5-fcgi .php
        Action php5-fcgi /php5-fcgi-staging
        AllowOverride All

        
    </directory>
    <IfModule concurrent_php.c>
        php5_admin_value open_basedir "/home/staging:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule !concurrent_php.c>
        <IfModule mod_php5.c>
            php_admin_value open_basedir "/home/staging:/usr/lib/php:/usr/local/lib/php:/tmp"
        </IfModule>
        <IfModule sapi_apache2.c>
            php_admin_value open_basedir "/home/staging:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
        </IfModule>
    </IfModule>
    <IfModule !mod_disable_suexec.c>
        <IfModule !mod_ruid2.c>
            SuexecUserGroup staging staging
        </IfModule>
    </IfModule>
    <IfModule mod_ruid2.c>
        RMode config
        RUidGid staging staging
    </IfModule>
    <IfModule itk.c>
        # For more information on MPM ITK, please read:
        #   http://mpm-itk.sesse.net/
        AssignUserID staging staging
    </IfModule>
</VirtualHost>

The above is the content of vhost.staging.pdatwo.com.conf.

So I have a staging server, and made a new one, and because puppet was broken I tried to do make sure that /etc was the same, so I checked the missing configs and one of the things I found was that the file vhost.stag.pdatwo.com.conf was missing, so I added it and renamed it vhost.staging.pdatwo.com.conf.

Before that, the page I got was the Apache test page, so I thought Apache was successfully installed, but when I added the config file, it stopped working and I got a 500 error page from varnish. When I turned off varnish, I got a 502 nginx error, so I am thinking there might be a file that points to vhost.stag.pdatwo.com.conf, do you know what the file might be? Also, I am not sure if that's the case, because I used the string staging.pdatwo.com in the puppet config. What are some of the things I can do to see what might be the issue, because the Apache config are virtually the same after I inspected the folders of the server where Apache works correctly and the server where Apache doesn't seem to work.

Version of Apache is 2.2 and I am using an old CENTOS 6 machine.

I know the CENTOS 6 is deprecated but Puppet doesn't work on CENTOS 7, or at least our project that uses Puppet to generate the site doesn't work on CENTOS 7.

User avatar level 1 megared17 · 3m

I heard that I had to run "a2dissite" before modifying the file name "a2ensite" and then run this after modifying the file name, but is it the case?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.