Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd January 2011, 11:05 PM
jeanpba Offline
Registered User
 
Join Date: Dec 2010
Posts: 3
windows_xp_2003firefox
FC12 to FC14 : stat failed for the webserver over cifs

Hello

on a linux box in FC12 or FC14, I set up a web server
I have two virtual host, the first is a filesystem mounted over nfs (port 1980)
and the second is a filesystem mounted over cifs (port 1982) which is handled by XP SP3

I noticed the filesize() php function and the stat php function don't work on the file of the web server which is mounted over cifs

my php code is quite simple :

<?php
$thefile="./filesize.php" ;
$arrayst= stat( $thefile) ;
print_r( $arrayst ) ;
echo "<p> Size: ".filesize( $thefile)."</p>" ;
?>

when I do host:1982 to access this file, I get:
Warning: stat(): stat failed for ./filesize.php in /dir/filesize.php on line 3
and it works for host:1980 (the php file is copied twice)

Getting the error for stat, I tried to use the stat shell command and it works for the two files, nfs or cifs

Do you know how I could solve this error ? it worked on FC9.
I tried to play with ACL option or credentials options with no clues. I think the problem is close to cifs.

FC9 :
httpd-2.2.9-1.fc9.i386
php-5.2.6-2.fc9.i386
samba-client-3.2.0-1.pre3.9.fc9.i386
# cat /proc/version
Linux version 2.6.27.25-78.2.56.fc9.i686 (mockbuild@) (gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) ) #1 SMP Thu Jun 18 12:47:50 EDT 2009


FC14:
php-5.3.3-1.fc14.i686
httpd-2.2.17-1.fc14.i686
cifs-utils-4.7-1.fc14.i686
# mount.cifs -V
mount.cifs version: 4.7
# cat /proc/version
Linux version 2.6.35.10-74.fc14.i686 (mockbuild@x86-12.phx2.fedoraproject.org) (gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) ) #1 SMP Thu Dec 23 16:17:40 UTC 2010


Thanks for your help

Jean-Philippe
Reply With Quote
Reply

Tags
cifs, failed, fc12, fc14, stat, webserver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
FC12 to FC14 upgrade and no FC14 repositories mkla56 Installation, Upgrades and Live Media 2 31st December 2010 07:18 PM
FDISK Discrepancies...FC12 vs. FC14 bmcclint Using Fedora 2 29th November 2010 03:38 AM
fc12 mount.cifs stevedow Using Fedora 3 18th June 2010 10:28 PM
ata: STAT failed with 2.6.22.4-65.fc7 issue JFLACKMD Installation, Upgrades and Live Media 0 9th September 2007 06:06 PM
What does 'error: failed to stat /dev/shm' mean? andreasb1 Using Fedora 2 29th July 2006 02:56 AM


Current GMT-time: 03:06 (Saturday, 26-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat