Random "forbidden" error with websites

Discussion in 'Installation/Configuration' started by kokez, Dec 23, 2005.

  1. burtathis

    burtathis New Member

    thanks for all those precisions.

    If i understand, i have to forward ports 80(tcp), 53(tcp,udp) if i want my box act as DNS, 25(tcp), 21(tcp), 110(tcp), 81(tcp), 443(tcp) and 22(tcp) for ssh ?

    I'll check all this at home !
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes. Also port 143 if you want to use IMAP.
     
  3. burtathis

    burtathis New Member

    Ok ! it works now !
    you can check here :
    http://gastfall.org

    So, like yesterday, before i messed up my router config, i go back with the "403 forbidden" problem.

    I checked my error.log apache file for this site and i have this every time the error page comes :
    [Thu Mar 02 20:50:51 2006] [crit] [client 82.227.0.130] (24)Too many open files: /.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

    and when i make a top :

    10644 www-data 16 0 34736 10m 7608 S 0.0 2.1 0:00.02 apache2
    10645 www-data 15 0 34620 10m 7336 S 0.0 2.0 0:00.00 apache2
    10646 www-data 16 0 34708 10m 7608 S 0.0 2.1 0:00.05 apache2
    10647 www-data 15 0 34732 10m 7608 S 0.0 2.1 0:00.04 apache2
    10648 www-data 15 0 34732 10m 7608 S 0.0 2.1 0:00.02 apache2
    11206 www-data 16 0 34620 10m 7608 S 0.0 2.1 0:00.00 apache2
    11279 www-data 16 0 34732 10m 7608 S 0.0 2.1 0:00.01 apache2
    16428 www-data 16 0 34756 10m 7316 S 0.0 2.1 0:00.00 apache2
    16433 www-data 16 0 34620 10m 7252 S 0.0 2.1 0:00.00 apache2
    16435 www-data 16 0 34620 10m 7248 S 0.0 2.1 0:00.00 apache2
    16436 www-data 16 0 34620 10m 7248 S 0.0 2.1 0:00.00 apache2
    16564 www-data 16 0 34756 10m 7248 S 0.0 2.1 0:00.00 apache2
    16661 www-data 16 0 34756 10m 7248 S 0.0 2.1 0:00.00 apache2
    16736 root 16 0 2456 588 504 S 0.0 0.1 0:00.00 sleep
    16737 root 16 0 0 0 0 Z 0.0 0.0 0:00.00 apache2 <defunct>


    One apache zombie.


    When i restart apache, the error calm down...
     
  4. saul

    saul New Member

    confirmed

    Yep!

    Worked for me :)

    The memory problem has gone - seems it was an artefact of running pre 2.2.0 ispconfig on a 64bit system

    Thanks for the great new release - 3 hours to complete rebuild :)
     
  5. burtathis

    burtathis New Member

    Yeah ! me too !

    I decided to reinstall the 2.2.0 on my mac mini an it solve many problems.
    No more 403-forbidden pages and apache zombies !
    And the update for webmail and phpmyadmin works well.

    Thanks guys, see you !
     
  6. RicochetPeter

    RicochetPeter Member

    This error:

    Code:
    pcfg_openfile: unable to check htaccess file, ensure it is readable
    comes up when the traffic of the website has been exceeded and the website is set to "suspend" in ISPConfig!
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig suspends the sites by removing the read priveliges from the files.
     
  8. smartcall

    smartcall New Member

    I'm having the same forbidden issue. I already have more than 100 sites in the server and the error occurs for no particular reason. No connection whatsoever to an IP, DNS, client or suspension, or quota. I don't suspend sites, just warn.

    I use ISPConfig 2.2.9 on FC6
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Can you post the output of
    Code:
    ls -la /path/to/web
    of one of the suspended web sites? Is SELinux disabled?
     
  10. smartcall

    smartcall New Member

    Hi,

    I don't suspend sites.
    The output of the command is:
    Code:
    drwxr-xr-x 16 web285_pmg web285    4096 Feb 25 12:58 .
    drwxr--r--  9 web285_pmg web285    4096 Feb 25 12:54 ..
    drwxr-xr-x  9 web285_pmg web285    4096 Feb 25 12:26 administrator
    drwxr-xr-x  2 web285_pmg web285    4096 Feb 25 12:26 cache
    -rw-r--r--  1 web285_pmg web285   99938 Dec 24 22:20 CHANGELOG.php
    drwxr-xr-x 16 web285_pmg web285    4096 Feb 25 12:26 components
    -rw-r--r--  1 web285_pmg web285    2773 Feb 18 11:54 configuration.php
    -rw-r--r--  1 web285_pmg web285    4251 Dec 24 22:20 configuration.php-dist
    -rw-r--r--  1 web285_pmg web285    3429 Dec 24 22:20 COPYRIGHT.php
    drwxr-xr-x  2 web285_pmg web285    4096 Feb 25 12:26 editor
    drwxr-xr-x  2 web285_pmg web285    4096 Feb 25 12:45 error
    -rw-r--r--  1 web285_pmg web285    3534 Dec 24 22:20 globals.php
    -rw-r--r--  1 web285_pmg web285     136 Feb 18 13:27 google459a9df8cfbb6c98.html
    drwxr-xr-x  3 web285_pmg web285   16384 Feb 25 12:26 help
    -rw-r--r--  1 web285_pmg web285    4829 Dec 24 22:20 htaccess.txt
    drwxr-xr-x  6 web285_pmg web285    4096 Feb 25 12:26 images
    drwxr-xr-x 10 web285_pmg web285    4096 Feb 25 12:26 includes
    -rw-r--r--  1 web285_pmg web285    5223 Dec 24 22:21 index2.php
    -rw-r--r--  1 web285_pmg web285    8491 Dec 24 22:21 index.php
    -rw-r--r--  1 web285_pmg web285    4376 Dec 24 22:21 INSTALL.php
    -rw-r--r--  1 web285_pmg web285 2824792 Feb 17 16:19 Joomla_1.0.12-Stable-Full_Package.zip
    -rw-r--r--  1 web285_pmg web285  203458 Feb 17 16:18 Joomla.Start.php
    drwxr-xr-x  2 web285_pmg web285    4096 Feb 25 12:26 language
    -rw-r--r--  1 web285_pmg web285   17977 Dec 24 22:21 LICENSE.php
    -rw-r--r--  1 web285_pmg web285     710 Dec 24 22:21 mainbody.php
    drwxr-xr-x  7 web285_pmg web285    4096 Feb 25 12:26 mambots
    drwxr-xr-x  2 web285_pmg web285    4096 Feb 25 12:26 media
    drwxr-xr-x  2 web285_pmg web285    4096 Feb 25 12:26 modules
    -rw-r--r--  1 web285_pmg web285    2474 Dec 24 22:21 offlinebar.php
    -rw-r--r--  1 web285_pmg web285    4929 Dec 24 22:21 offline.php
    -rw-r--r--  1 web285_pmg web285     709 Dec 24 22:21 pathway.php
    -rw-r--r--  1 web285_pmg web285     286 Dec 24 22:21 robots.txt
    -rw-r--r--  1 web285_pmg web285    2896 Feb 18 13:33 rss20.xml
    drwxr-xr-x  2 web285_pmg web285    4096 Feb 18 04:06 stats
    drwxr-xr-x  9 web285_pmg web285    4096 Feb 25 12:26 templates
    -rw-r--r--  1 web285_pmg web285   69043 Feb 17 16:42 webinstall.php
    
    and SELinux is disabled.
    And I have more than 100 other sites with the same setings as this one.
    There was one more site like this one, but I deleted it and created new one.
     
  11. falko

    falko Super Moderator Howtoforge Staff

    The parent directory isn't executable for all. Directories must always be executable. Please chmod 755.
     
  12. smartcall

    smartcall New Member

    Thanks!

    That solved the issue. But I still wander why this is happening?
    One more question:
    If I set the site to be suspended on traffic exceedance, how would I "unsuspend" it?

    Regards
     
  13. falko

    falko Super Moderator Howtoforge Staff

    It's unsuspended automatically when the new month begins.
     
  14. ADM

    ADM New Member

    Please, how to manually force the unsuspend before the new month?
     

Share This Page