Welcome, Guest. Please login or register.

Author Topic: PHP Warning: fopen writing def file 1o6  (Read 2698 times)

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
PHP Warning: fopen writing def file 1o6
« on: August 21, 2011, 10:39:11 PM »
Hi,
 I'm trying to update a def file via the GUI, but in my web logs its comes up with the following PHP Warnings and doesn't update the file.
Code: [Select]
[Mon Aug 22 08:27:03 2011] [error] [client 172.26.32.90] PHP Warning:  fopen(/usr/local/nedi/sysobj/1.3.6.1.4.1.9.1.428.def) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /usr/local/nedi/html/Other-Defgen.php on line 146, referer: http://jericho/nedi/Other-Defgen.php?so=1.3.6.1.4.1.9.1.428&ip=172.26.124.10&co=public
[Mon Aug 22 08:27:03 2011] [error] [client 172.26.32.90] PHP Warning:  fwrite(): supplied argument is not a valid stream resource in /usr/local/nedi/html/Other-Defgen.php on line 147, referer: http://jericho/nedi/Other-Defgen.php?so=1.3.6.1.4.1.9.1.428&ip=172.26.124.10&co=public
[Mon Aug 22 08:27:03 2011] [error] [client 172.26.32.90] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /usr/local/nedi/html/Other-Defgen.php on line 152, referer: http://jericho/nedi/Other-Defgen.php?so=1.3.6.1.4.1.9.1.428&ip=172.26.124.10&co=public
[Mon Aug 22 08:27:39 2011] [error] [client 172.26.32.90] PHP Warning:  fopen(/usr/local/nedi/sysobj/1.3.6.1.4.1.9.1.428.def) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /usr/local/nedi/html/Other-Defgen.php on line 146, referer: http://jericho/nedi/Other-Defgen.php?so=1.3.6.1.4.1.9.1.428&ip=172.26.124.10&co=public
[Mon Aug 22 08:27:39 2011] [error] [client 172.26.32.90] PHP Warning:  fwrite(): supplied argument is not a valid stream resource in /usr/local/nedi/html/Other-Defgen.php on line 147, referer: http://jericho/nedi/Other-Defgen.php?so=1.3.6.1.4.1.9.1.428&ip=172.26.124.10&co=public
[Mon Aug 22 08:27:39 2011] [error] [client 172.26.32.90] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /usr/local/nedi/html/Other-Defgen.php on line 152, referer: http://jericho/nedi/Other-Defgen.php?so=1.3.6.1.4.1.9.1.428&ip=172.26.124.10&co=public


Any Ideas?
Is it some permission problems?
I'm using a symlink in my /var/www/html/ directory to the html folder in /usr/local/nedi/
these are the permissions of /usr/local/nedi/
Code: [Select]
[root@jericho nedi]# ls -alh
total 152K
drwxr-xr-x   9 root wheel 4.0K Aug 19 11:34 .
drwxr-xr-x  15 root root  4.0K Aug 19 09:40 ..
drwxr-xr-x   9 root root  4.0K Aug 20 00:14 conf
drwxr-xr-x   2 root wheel 4.0K Aug 15 00:41 contrib
drwxr-xr-x   8 root wheel 4.0K Aug 19 09:41 html
drwxr-xr-x   2 root wheel 4.0K Aug 15 00:41 inc
-rwxr--r--   1 root wheel  35K Aug 15 00:41 License.txt
drwxr-xr-x   2 root wheel 4.0K Aug 19 11:30 log
-rwxr--r--   1 root wheel 9.9K Aug 15 00:41 moni.pl
-rw-r--r--   1 root wheel  12K Aug 19 11:26 nedi.conf
-rwxr-xr-x   1 root root   164 Aug 19 11:30 nedi.cron
-rwxr--r--   1 root wheel  15K Aug 15 09:40 nedi.pl
drwxr-xr-x 190 root root  4.0K Aug 19 12:26 rrd
-rwxr-xr-x   1 root wheel  870 Aug 19 11:34 seedlist
-rwxr--r--   1 root wheel 4.8K Aug 15 00:41 syslog.pl
drwxrwxr-x   2 root wheel  20K Aug 15 00:41 sysobj
-rwxr--r--   1 root wheel 3.2K Aug 15 00:41 trap.pl

Mark.

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
Re: PHP Warning: fopen writing def file 1o6
« Reply #1 on: August 22, 2011, 03:17:06 AM »
found culprit.
chmod 766 sysobj/*.def
fixed.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2786
    • View Profile
    • NeDi
Re: PHP Warning: fopen writing def file 1o6
« Reply #2 on: August 22, 2011, 06:40:17 PM »
Exactly, I removed the html/log stuff, for a more straight forward experience. Especially with the upcoming NeDiO...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo