PHP pages not interpreted but downloaded

Discussion in 'Server Operation' started by OyoKooN, May 1, 2011.

  1. OyoKooN

    OyoKooN New Member

  2. falko

    falko Super Moderator ISPConfig Developer

    Can you post your vhost configuration?
    Are there any errors in Apache's error log?
     
  3. OyoKooN

    OyoKooN New Member

    Hello,

    Here is my virtualhost file:
    Code:
    <VirtualHost 64.207.154.91:80>
    
      ServerAdmin oyokoon@syrinxoon.net
      ServerName syrinxoon.net
      ServerAlias www.syrinxoon.net
      DocumentRoot /var/www/syrinxoon.net/html/
    
      <IfModule mod_fcgid.c>
        SuexecUserGroup syrinxoon.net syrinxoon.net
        <Directory /var/www/syrinxoon.net/html/>
          Options +ExecCGI
          AllowOverride All
          AddHandler fcgid-script .php
          FCGIWrapper /var/www/php-fcgi-scripts/syrinxoon.net/php-fcgi-starter .php
          Order allow,deny
          Allow from all
        </Directory>
      </IfModule>
    
      ErrorLog /var/www/syrinxoon.net/logs/error.log
      CustomLog /var/www/syrinxoon.net/logs/access.log combined
      ServerSignature Off
    
    </VirtualHost>
    and the Apache's error log:
    Code:
    [Sun May 01 18:16:46 2011] [crit] [client 83.195.116.220] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:16:49 2011] [crit] [client 83.195.116.220] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:16:50 2011] [crit] [client 83.195.116.220] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:19 2011] [crit] [client 83.195.116.220] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:21 2011] [crit] [client 83.195.116.220] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:34 2011] [crit] [client 207.46.199.38] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:34 2011] [crit] [client 184.73.7.77] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:37 2011] [crit] [client 97.95.72.31] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:37 2011] [crit] [client 97.95.72.31] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:37 2011] [crit] [client 97.95.72.31] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    [Sun May 01 18:17:37 2011] [crit] [client 97.95.72.31] (13)Permission denied: /var/www/syrinxoon.net/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    My website is http://syrinxoon.net.
    Something weird, I have a subdomain http://fever.syrinxoon.net which works perfectly.

    I don't understand.

    Thank you for your help =)
     
  4. erosbk

    erosbk New Member

    I am a newbie in this but... I have a lot of trouble like you have... I found (I don't know if I am correct or not) that if you try to use a PHP script made for PHP_MOD using FastCGI, it will not recognize the script... because a lot of variables in the .php are set for an specified PHP MOD (for example, in roundcube you will find in a .htaccess the block IfModule mod_php5...

    Maybe you can add a handler in a .htaccess of your program, forcing the PHP mod that you want to always run "AddHandler whatever .php"

    I hope this help you

    Regards

    edit: it looks like you have a permission problem, so... the application can't read the .htaccess (which has his own directives) and cgi can't process it, so it is offered you to download as a not recognized file.
     
  5. OyoKooN

    OyoKooN New Member

    Thank you, which chmod must I apply to my .htaccess files?
     
  6. erosbk

    erosbk New Member

    I can't remember right now. You can take note of the actual permission and chmod 444 .htaccess and see what happen.

    Maybe you have a problem of ownership too, if that does'nt work you could try chown theuser:thegroup .htaccess
     
: apache 2, fastcgi, php

Share This Page