Upgraded - fopen(/.../htpasswd): failed to open stream error

Discussion in 'Linux Support: RHEL, CentOS, SUSE etc' started by Simon, Apr 30, 2018.

  1. Simon

    Simon New Member

    Hi There,

    I just upgraded to the latest version of openlitespeed via a yum update and now have the following error when trying to login to the web admin:

    Warning: fopen(/usr/local/lsws/admin/conf/htpasswd): failed to open stream: Permission denied in /usr/local/lsws/admin/html.open/lib/CAuthorizer.php on line 208

    Note: htpasswd is owned by lsadm:lsadm with -rw------- permissions.

    Any assistance is greatly appreciated.

    Simon
     
  2. Tishu

    Tishu Member

    Hello,

    What are the rights of "admin" and "conf" directory?

    For conf - drwx------ 2 lsadm lsadm 4096 May 1 11:30 conf

    For admin - drwxr-xr-x 9 root root 4096 Feb 14 17:19 admin

    For htpasswd - -rw------- 1 lsadm lsadm 41 Feb 14 17:19 htpasswd
     
  3. Simon

    Simon New Member

    drwxr-xr-x. 22 root root 4096 Apr 29 09:47 .
    drwxr-xr-x. 15 root root 4096 Aug 16 2017 ..
    drwxr-xr-x. 3 root root 4096 Apr 13 02:55 add-ons
    drwxr-xr-x. 9 root root 4096 Apr 29 09:47 admin
    drwxr-xr-x. 2 root root 4096 Apr 13 02:55 autoupdate
    drwxr-xr-x. 2 root root 4096 Apr 13 02:55 backup
    drwxr-xr-x. 2 root root 4096 Apr 29 09:47 bin
    drwxr-xr-x. 2 root root 4096 Apr 29 12:52 cachedata
    drwxr-xr-x. 5 root root 4096 May 2 00:52 conf
    drwxr-xr-x. 6 root root 4096 Apr 29 09:47 docs
    drwxr-xr-x. 6 root root 4096 Apr 13 02:55 Example
    drwxr-xr-x. 2 root root 4096 Apr 29 09:47 fcgi-bin
    drwxr-xr-x. 2 root root 4096 Apr 13 02:55 gdata
    -rw-r--r--. 1 root root 35147 Apr 13 02:55 GPL.txt
    drwxr-xr-x. 2 root root 4096 Apr 13 02:55 lib
    drwxr-xr-x. 2 root root 4096 May 2 00:52 logs
    drwxr-xr-x. 8 root root 4096 Jun 9 2017 lsphp56
    drwxr-xr-x. 8 root root 4096 May 27 2017 lsphp70
    drwxr-xr-x. 2 root root 4096 Apr 29 09:47 modules
    drwxr-xr-x. 2 root root 4096 Apr 13 02:55 php
    drwx------. 2 root root 4096 Apr 13 02:55 phpbuild
    drwxr-xr-x. 3 root root 4096 Apr 13 02:55 share
    drwxr-xr-x. 3 root root 4096 Apr 13 02:55 tmp
    -rw-r--r--. 1 root root 7 Apr 13 02:55 VERSION
     
  4. Simon

    Simon New Member

    conf/ dir:

    -rw-r--r--. 1 lsadm lsadm 1428 May 27 2017 ca.crt
    -rw-r--r--. 1 lsadm lsadm 1115 May 27 2017 ca.csr
    -rw-r--r--. 1 lsadm lsadm 1679 May 27 2017 ca.key
    drwxr-xr-x. 2 root root 4096 Apr 13 02:55 cert
    -rw-r--r--. 1 lsadm lsadm 7784 Apr 30 10:09 httpd_config.conf
    -rw-r--r--. 1 lsadm lsadm 7765 Mar 13 19:30 httpd_config.conf.bak
    -rw-------. 1 root root 6375 Apr 13 02:55 httpd_config.conf.rpmnew
    -rwxr-xr-x. 1 root root 4854 Apr 13 02:55 mime.properties
    -rw-------. 1 root root 1035 Apr 13 02:55 modpagespeed.conf
    drwxr-xr-x. 2 root root 4096 Apr 29 09:47 templates
    drwxr-xr-x. 14 root root 4096 Apr 13 02:55 vhosts

    admin/ dir:

    drwx--x---. 3 root root 4096 May 2 08:24 cgid
    drwx------. 2 lsadm lsadm 4096 May 2 08:24 conf
    drwxr-xr-x. 2 root root 4096 Apr 29 09:47 fcgi-bin
    lrwxrwxrwx. 1 root root 11 Apr 29 09:47 html -> ./html.open
    drwxr-xr-x. 5 root root 4096 Apr 29 09:47 html.open
    drwxr-xr-x. 2 root root 4096 Apr 13 02:55 logs
    drwxr-xr-x. 2 root root 4096 Apr 29 09:50 misc
    drwx--x---. 2 root root 36864 May 2 08:24 tmp

    htpasswd is correct.
     
  5. Tishu

    Tishu Member

    Hello again,

    Can you tell me the OS version that you are using, i see that its redhat/centos but what is the version.
     

Share This Page