HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   PHP Errors - Access Denied (http://www.howtoforge.com/forums/showthread.php?t=37735)

guimnk 25th July 2009 18:00

PHP Errors - Access Denied
 
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..

till 25th July 2009 18:08

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.

guimnk 25th July 2009 18:13

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

http://img10.imageshack.us/img10/4918/ss1o.png

http://img10.imageshack.us/img10/1522/ss2ogx.png

till 25th July 2009 20:16

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


All times are GMT +2. The time now is 04:34.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.