Menu

#13 qmailadmin-1.2.16 "filed to open lang"

open
nobody
None
5
2014-05-12
2014-05-11
jangisle
No

qmailadmin-1.2.16
No problem with the installation as far as i cane see. But when i try to open the site domain.com/cgi-bin/qmailadmin i get a blank page in chrome and if i open it in ie i get "failed to open lang files...."

I have search and i have found no solution that fix my issue. Have i done something wrong or is this a know problem

Discussion

  • Tom Collins

    Tom Collins - 2014-05-11

    Make sure that the directory /usr/local/share/qmailadmin/lang/ is readable by the web server.

     
    • jangisle

      jangisle - 2014-05-11

      hi thnx for the fast replay. I have double checked and the folder(s) is readable by the webserver owner and group on it is www-data. And when i try to open the page in chrome its just downlaod a file "qmailadmin"

       
  • Tom Collins

    Tom Collins - 2014-05-12

    Ah, I'm remembering a bit more now. That cgi-bin script runs as user vpopmail so it has the correct permissions to access the ~vpopmail/domains directories. If the permissions on that file are incorrect, it won't execute.

    -rwsr-sr-x 1 vpopmail vchkpw 144364 Feb 1 2011 qmailadmin

    You could check the httpd log to see if anything is coming up regarding execution of the binary.

    And you'll need to make sure that the vpopmail user can read from /usr/local/share/qmailadmin/lang.

     
  • jangisle

    jangisle - 2014-05-12

    i chmoded that lang folder to vpopmail and chmod the dir to 664.
    The only error i got from the apache log is this:

    domain.com:80 som.ip - - [12/May/2014:13:44:27 +0200] "GET /cgi-bin/qmailadmin HTTP/1.1" 304 191 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
    domain.com:80 som.ip - - [12/May/2014:13:44:27 +0200] "GET /images/qmailadmin/trash.png HTTP/1.1" 304 188 "http://domain.com/cgi-bin/qmailadmin" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"

     
  • Tom Collins

    Tom Collins - 2014-05-12

    Sounds like an issue with your HTTP configuration. The 304 status in those log messages indicated "Not Modified". Apache is still trying to send the file instead of executing it as a CGI script.

    Is this a stock Apache install? Maybe you need to add ExecCGI to the Options directive in your configuration file? The configuration line ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" should ensure that all files in that directory are executed as CGI scripts.

     
  • jangisle

    jangisle - 2014-05-12

    thnx works now i think. there was a # in front of the "ScriptAlias" in the virtualhost config file witch is a stuepid mistake and i had to chmod the qmailadmin/lang dir again.

    Thnx for all the help :)

     

Log in to post a comment.