fopen() error

Discussion in 'Installation/Configuration' started by rutame, Aug 31, 2008.

  1. rutame

    rutame New Member

    Hello again, uff this sysop and developer is so hard :)

    I have a weird trouble with a visit counter, well exactly with the permissions, i had gave all permissions but no works. The error is this:


    Code:
    Warning: fopen(numero.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/web52/web/funciones/contador/contador.php on line 16
    All is chmoded to 0777

    Any sugestion?

    Thank you very much
     
  2. Hans

    Hans Moderator

    Is php running in safe mode? If so, try to switch it off to see if the error disappears.

    What is the output after executing the command: ls -la /var/www/web52/web
    ?
     
  3. rutame

    rutame New Member

    Hello Hans.

    Thanks for your atention.

    The php.ini in /etc/php5/apache2/ is off the safe mode (safe mode = off)

    When i do ls -la the screen show that the files has all the permissions:
    -rwxrwxrwx numeros.txt that is the file whicht should to be readed and writed for the counter.
    Because and i very missing with this.

    May be this question is not related with ispconfig and it is related with linux ubuntu server :confused:

    Thank you again.
     
    Last edited: Sep 1, 2008
  4. Hans

    Hans Moderator

    Who is the owner/group of the file?
     
  5. rutame

    rutame New Member

    The owner is the webmaster21 (domainĀ“s admin)
     
  6. falko

    falko Super Moderator

    What's in Vhosts_ispconfig.conf?

    What's the output of
    Code:
    ls -la /var/www/web52/web/funciones/contador
    ?
     
  7. rutame

    rutame New Member

    Hello Falko, this is the ls -la out:

    Code:
    drwxrwxrwx 3 webmaster21 web52 4096 2008-09-01 17:15 .
    drwxrwxrwx 3 webmaster21 web52 4096 2008-09-01 16:03 ..
    -rwxrwxrwx 1 webmaster21 web52  814 2008-09-01 15:03 contador.php
    -rw-r--r-- 1 root        root   378 2008-09-01 17:13 drwxrwxrwx
    -rw-r--r-- 1 root        root     0 2008-09-01 17:15 ls_contador.txt
    drwxrwxrwx 2 webmaster21 web52 4096 2008-08-31 15:50 numeros
    -rwxrwxrwx 1 webmaster21 web52    1 2008-08-31 16:59 numero.txt
    All is 0777 mode

    Thank you very much
     
  8. falko

    falko Super Moderator

    What's in Vhosts_ispconfig.conf?
     

Share This Page