PHP Errors - Access Denied

Discussion in 'General' started by guimnk, Jul 25, 2009.

  1. guimnk

    guimnk Member

    Hi all..

    When I try to run my php application, I get this error's:

    ===============================

    2 = fwrite(): supplied argument is not a valid stream resource
    /var/www/clients/client13/web17/web/dev/devel/generator/nm_gp_erro_js.php 61

    2 = fclose(): supplied argument is not a valid stream resource
    /var/www/clients/client13/web17/web/dev/devel/generator/nm_gp_erro_js.php 72

    2 = chmod() [function.chmod]: Operation not permitted
    /var/www/clients/client13/web17/web/dev/devel/generator/nm_gp_geracao.php 2553

    2 = copy(/var/www/domain.com/web/dev/app/Fashion/_lib/lang/ja.lang.php) [function.copy]: failed to open stream: Permission denied
    /var/www/clients/client13/web17/web/dev/devel/generator/nm_gp_atu_arq_mens.php 73

    2 = fopen(/var/www/domain.com/web/dev/app/Fashion/_lib/lang/ja.lang.php) [function.fopen]: failed to open stream: Permission denied
    /var/www/clients/client13/web17/web/dev/devel/generator/nm_gp_atu_arq_mens.php 124

    2 = fputs(): supplied argument is not a valid stream resource
    /var/www/clients/client13/web17/web/dev/devel/generator/nm_gp_atu_arq_mens.php 125

    ==============================

    This Site is configured using Mod_PHP. How can I do to fix it??

    Thanks..
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Use php-fcgi + suexec or suphp or cgi-php + suexec if you want to run a appliactions that shall be able to write files into the website directory.
     
  3. guimnk

    guimnk Member

    Ok...

    Ok Till, thanks..

    But, I'm using the Zend Optimizer.. The fcgi uses the same php.ini of mod_php?

    Look:

    Code:
    root@guilherme:/etc/php5/apache2# ls -l
    total 44
    lrwxrwxrwx 1 root root     9 2009-05-26 16:54 conf.d -> ../conf.d
    lrwxrwxrwx 1 root root    27 2009-05-26 20:06 php.ini -> /usr/local/Zend/etc/php.ini
    -rw-r--r-- 1 root root 44720 2009-05-26 20:06 php.ini-zend_optimizer.bak
    
    [​IMG]

    [​IMG]
     
    Last edited: Aug 18, 2009
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    As I told you above, you can not use mod_php. php-fcgi. fcgi uses the php.ini in /etc/php5/cgi/
     

Share This Page