#1  
Old 31st August 2008, 18:09
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default fopen() error

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
Reply With Quote
Sponsored Links
  #2  
Old 31st August 2008, 21:52
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

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
?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #3  
Old 1st September 2008, 12:42
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default

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

Thank you again.

Last edited by rutame; 1st September 2008 at 12:44.
Reply With Quote
  #4  
Old 1st September 2008, 13:28
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Who is the owner/group of the file?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #5  
Old 1st September 2008, 14:00
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default

The owner is the webmaster21 (domain´s admin)
Reply With Quote
  #6  
Old 1st September 2008, 17:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

What's in Vhosts_ispconfig.conf?

What's the output of
Code:
ls -la /var/www/web52/web/funciones/contador
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 1st September 2008, 18:23
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #8  
Old 2nd September 2008, 12:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

What's in Vhosts_ispconfig.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 18:07
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53


All times are GMT +2. The time now is 10:37.


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