Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    73

    Default Apache 1.3.36 upgrade broke my scripts

    Hi,
    I have a client running an anti-password sharing/hackin script on several of his domains, this script validates a user's login details against a common .htpasswd file. I did the apache update this morning and it broke this script. It seems that the script can no longer access the .htpasswd file that is residing on a different domain.

    Is this by design in the new version of Apache? Or is there a workaround? This server is hosting a single client so cross-domain scripting security is not an issue. open_basedir protection was never enabled and cPanel still shows it as being not enabled. If I remove the script and use a simple .htaccess file referencing the .htpasswd file on the other domain, it works. Its only when the sript tries to access the .htpasswd file that it does not work. I tested it and if the script references a local .htpasswd file it works.

    Maybe someone can suggest where else I can look??

    thanks!

  2. #2
    Member
    Join Date
    Jun 2005
    Posts
    49

    Default

    check apache error_log for details...
    probably its bad permissions to dirs/file where .htpasswds reside. Note that user nobody need access to this dirs/file, so I suggest chowning group to :nobody.

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    73

    Default

    error_log shows:

    couldn't open password file '/home/edited/public_html/cgi-bin/.htpasswd': Permission denied at ./routines.pl line 138.

    I tried chowning the .htpasswd file to edited.nobody but that did not seem to do the trick. Its got 666 permissions right now, I don't think that would make a difference

  4. #4
    Member bin_asc's Avatar
    Join Date
    Jul 2005
    Posts
    280

    Default

    Try chmodding ./routines.pl to 755 for starters.

Similar Threads & Tags
Similar threads

  1. phpMyAdmin broke with 11.25 upgrade
    By hostultra in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 12-22-2009, 02:43 PM
  2. Apache/PHP upgrade broke Gallery
    By linkup in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-21-2009, 04:34 PM
  3. Replies: 1
    Last Post: 05-29-2006, 03:12 PM
  4. phpSUEXEC broke my scripts!
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-02-2006, 03:29 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube