Fedora Linux Support Community & Resources Center
Old 4th January 2011, 12:05 AM
jeanpba Offline
Registered User
Join Date: Dec 2010
Posts: 3
FC12 to FC14 : stat failed for the webserver over cifs


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 :

$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 :
# cat /proc/version
Linux version (mockbuild@) (gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) ) #1 SMP Thu Jun 18 12:47:50 EDT 2009

# mount.cifs -V
mount.cifs version: 4.7
# cat /proc/version
Linux version (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

Reply With Quote

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 08:18 PM
FDISK Discrepancies...FC12 vs. FC14 bmcclint Using Fedora 2 29th November 2010 04:38 AM
fc12 mount.cifs stevedow Using Fedora 3 18th June 2010 10:28 PM
ata: STAT failed with 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: 06:52 (Thursday, 24-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

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