User Inteface at first connection only shows directories

Comments

6 comments

  • Avatar
    Bart Oles

    Hi,

    This could be a problem with apache. Please check if apache is installed and if it's working properly.

    on CC node:

    rpm -qa |grep php
    view  /var/log/httpd/error_log
    view /var/log/httpd/access_log
    view /var/log/cmon.log
    apachectl -M | grep php


    Also, you mind find relevant information in the installation log files. 

    /var/log/yum.log

  • Avatar
    SC

    Hello, 

    Thanks for your answer.

    Apache is installed with the packages versions:

       php-common-5.4.16-43.el7_4.1.x86_64
       php-cli-5.4.16-43.el7_4.1.x86_64

     

    After an access the log files show as follows:

    > view  /var/log/httpd/error_log


    [Mon May 07 11:11:13.825242 2018] [mpm_prefork:notice] [pid 888] AH00170: caught SIGWINCH, shutting down gracefully
    [Mon May 07 11:11:14.966182 2018] [suexec:notice] [pid 1974] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Mon May 07 11:11:15.026489 2018] [auth_digest:notice] [pid 1974] AH01757: generating secret for digest authentication ...
    [Mon May 07 11:11:15.028359 2018] [lbmethod_heartbeat:notice] [pid 1974] AH02282: No slotmem from mod_heartmonitor
    [Mon May 07 11:11:15.045872 2018] [mpm_prefork:notice] [pid 1974] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
    [Mon May 07 11:11:15.045952 2018] [core:notice] [pid 1974] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

    view /var/log/httpd/access_log

    192.168.1.128 - - [07/May/2018:11:03:52 +0200] "GET /clustercontrol HTTP/1.1" 301 244 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    192.168.1.128 - - [07/May/2018:11:03:52 +0200] "GET /clustercontrol/ HTTP/1.1" 200 580 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    192.168.1.128 - - [07/May/2018:11:03:52 +0200] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://192.168.1.139/clustercontrol/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    192.168.1.128 - - [07/May/2018:11:03:52 +0200] "GET /icons/back.gif HTTP/1.1" 200 216 "http://192.168.1.139/clustercontrol/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    192.168.1.128 - - [07/May/2018:11:03:52 +0200] "GET /icons/folder.gif HTTP/1.1" 200 225 "http://192.168.1.139/clustercontrol/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    192.168.1.128 - - [07/May/2018:11:03:52 +0200] "GET /icons/image2.gif HTTP/1.1" 200 309 "http://192.168.1.139/clustercontrol/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    192.168.1.128 - - [07/May/2018:11:03:52 +0200] "GET /icons/text.gif HTTP/1.1" 200 229 "http://192.168.1.139/clustercontrol/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    192.168.1.128 - - [07/May/2018:11:03:53 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "http://192.168.1.139/clustercontrol/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
    ::1 - - [07/May/2018:11:04:00 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips (internal dummy connection)"
    ::1 - - [07/May/2018:11:04:01 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips (internal dummy connection)"
    192.168.1.128 - - [07/May/2018:11:11:23 +0200] "GET /clustercontrol/ HTTP/1.1" 200 580 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"

     

    view /var/log/cmon.log

    2018-05-07 10:57:02 : (INFO) Configuration loaded.
    2018-05-07 10:57:02 : (INFO) Server started at tcp://127.0.0.1:9500
    2018-05-07 10:57:02 : (INFO) Server started at tls://127.0.0.1:9501
    2018-05-07 10:57:02 : (INFO) cmon 1.6.0.2514
    2018-05-07 10:57:02 : (INFO) Found 'cmon' schema version 106001.
    2018-05-07 10:57:02 : (INFO) Running cmon schema hot-fixes.
    2018-05-07 10:57:03 : (INFO) Schema auto-upgrade succeed (version 106001).
    2018-05-07 10:57:03 : (INFO) Checked tables - seems ok
    2018-05-07 10:57:03 : (INFO) Community version
    2018-05-07 10:57:03 : (INFO) CmonCommandHandler: started, polling for commands.
    2018-05-07 10:57:03 : (INFO) Aborting DEQUEUED, RUNNING and DEFINED jobs

     

    > apachectl -M | grep php

    This last command don't show information

    I tried to check if service was running, and it was running

    apachectl
    httpd (pid 1974) already running

    So that the available load modules for apachectl are:

    Loaded Modules:
    core_module (static)
    so_module (static)
    http_module (static)
    access_compat_module (shared)
    actions_module (shared)
    alias_module (shared)
    allowmethods_module (shared)
    auth_basic_module (shared)
    auth_digest_module (shared)
    authn_anon_module (shared)
    authn_core_module (shared)
    authn_dbd_module (shared)
    authn_dbm_module (shared)
    authn_file_module (shared)
    authn_socache_module (shared)
    authz_core_module (shared)
    authz_dbd_module (shared)
    authz_dbm_module (shared)
    authz_groupfile_module (shared)
    authz_host_module (shared)
    authz_owner_module (shared)
    authz_user_module (shared)
    autoindex_module (shared)
    cache_module (shared)
    cache_disk_module (shared)
    data_module (shared)
    dbd_module (shared)
    deflate_module (shared)
    dir_module (shared)
    dumpio_module (shared)
    echo_module (shared)
    env_module (shared)
    expires_module (shared)
    ext_filter_module (shared)
    filter_module (shared)
    headers_module (shared)
    include_module (shared)
    info_module (shared)
    log_config_module (shared)
    logio_module (shared)
    mime_magic_module (shared)
    mime_module (shared)
    negotiation_module (shared)
    remoteip_module (shared)
    reqtimeout_module (shared)
    rewrite_module (shared)
    setenvif_module (shared)
    slotmem_plain_module (shared)
    slotmem_shm_module (shared)
    socache_dbm_module (shared)
    socache_memcache_module (shared)
    socache_shmcb_module (shared)
    status_module (shared)
    substitute_module (shared)
    suexec_module (shared)
    unique_id_module (shared)
    unixd_module (shared)
    userdir_module (shared)
    version_module (shared)
    vhost_alias_module (shared)
    dav_module (shared)
    dav_fs_module (shared)
    dav_lock_module (shared)
    lua_module (shared)
    mpm_prefork_module (shared)
    proxy_module (shared)
    lbmethod_bybusyness_module (shared)
    lbmethod_byrequests_module (shared)
    lbmethod_bytraffic_module (shared)
    lbmethod_heartbeat_module (shared)
    proxy_ajp_module (shared)
    proxy_balancer_module (shared)
    proxy_connect_module (shared)
    proxy_express_module (shared)
    proxy_fcgi_module (shared)
    proxy_fdpass_module (shared)
    proxy_ftp_module (shared)
    proxy_http_module (shared)
    proxy_scgi_module (shared)
    proxy_wstunnel_module (shared)
    ssl_module (shared)
    systemd_module (shared)
    cgi_module (shared)

     

    Thanks for your help.

     

    Sergio.

  • Avatar
    Bart Oles

    Hi Sergio,

    Your Apache php_mode seems to be missing or it's not loaded, as well as some other php packages. 

    #To check if module is present

    [root@cmon log]# ls -l /etc/httpd/modules/ | grep php
    -rwxr-xr-x. 1 root root 3699120 2017-03-22  libphp5.so


    #To load module, apache restart needed after change
    [root@cmon log]# vi /etc/httpd/conf.d/php.conf


    <IfModule worker.c>

      LoadModule php5_module modules/libphp5-zts.so

    </IfModule>


    #List of php packages
    [root@cmon log]# rpm -qa | grep php

    php-common-5.3.3-49.el6.x86_64
    php-gd-5.3.3-49.el6.x86_64
    php-cli-5.3.3-49.el6.x86_64
    php-pdo-5.3.3-49.el6.x86_64
    php-5.3.3-49.el6.x86_64
    php-mysql-5.3.3-49.el6.x86_64
    php-ldap-5.3.3-49.el6.x86_64

  • Avatar
    SC

    The reason about the missing packages could be because in the installation guide I don't have found the Apache packages needed and dependencies to be installed. So I installed the httpd service only by the command yum install httpd, so I have not php.conf file where I change the httpd.conf file adding the module as you said.

    <IfModule worker.c>

      LoadModule php5_module modules/libphp5-zts.so

    </IfModule>

     But there is not changes after restart....

    Then I think that the best way is to install all packages that yo wrote up by rpm and after that Load the module as you said in the httpd.conf files, is not?

    Do you recommend to do something different?

    Thanks.

     

  • Avatar
    SC

    I've done the following steps:

    1. Add the LoadModule to the http.conf file

    2. Install the missing packages yum install php php-mysql php-pdo php-ldap php-gd 

    3. Restart the Apache service

    After that the UI appear.

     

    Thanks a lot for your support.

     

  • Avatar
    Bart Oles

    Your welcome

Please sign in to leave a comment.

Powered by Zendesk