Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8505323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:17:08+00:00 2026-06-11T02:17:08+00:00

I have a really strange error. PHP can’t read a file that do exists…

  • 0

I have a really strange error. PHP can’t read a file that do exists… Some ideas? I have not SELinux installed. I’m using fedora 17 and php 5.4.

I already try everything I know, but the problem still remains.

[root@sqd var]# ls -lia 
total 92
  8194 drwxrwxrwx. 23 root   root   4096 ago 17 10:30 .
     2 dr-xr-xr-x. 19 root   root   4096 ago 13 16:00 ..
 32139 drwxr-xr-x.  2 root   root   4096 may 22 13:42 account
   288 drwxr-xr-x.  2 root   root   4096 feb  3  2012 adm
    13 drwxr-xr-x. 14 root   root   4096 ago  8 10:26 cache
796005 drwxr-xr-x   2 root   root   4096 feb  6  2012 cvs
   289 drwxr-xr-x.  3 root   root   4096 ago 21 18:07 db
   290 drwxr-xr-x.  3 root   root   4096 may 22 13:42 empty
263682 drwxr-xr-x.  3 root   root   4096 ago  7 11:15 ftp
   291 drwxr-xr-x.  2 root   root   4096 feb  3  2012 games
 35931 drwxrwx--T.  2 root   gdm    4096 jun  8 16:05 gdm
   292 drwxr-xr-x.  2 root   root   4096 feb  3  2012 gopher
    15 drwxr-xr-x. 45 root   root   4096 ago 10 10:42 lib
   296 drwxr-xr-x.  2 root   root   4096 feb  3  2012 local
   308 lrwxrwxrwx.  1 root   root     11 may 22 13:39 lock -> ../run/lock
    12 drwxr-xr-x. 14 root   root   4096 ago 26 03:17 log
   297 lrwxrwxrwx.  1 root   root     10 may 22 13:39 mail -> spool/mail
   298 drwxr-xr-x.  2 root   root   4096 feb  3  2012 nis
931987 drwxrwxrwx   3 nobody nobody 4096 ago 17 10:32 nodejs
   299 drwxr-xr-x.  2 root   root   4096 feb  3  2012 opt
   300 drwxr-xr-x.  2 root   root   4096 feb  3  2012 preserve
   307 lrwxrwxrwx.  1 root   root      6 may 22 13:39 run -> ../run
   301 drwxr-xr-x. 15 root   root   4096 may 22 13:43 spool
   305 drwxrwxrwx.  5 nobody nobody 4096 ago 30 14:13 tmp
262637 drwxr-xr-x.  7 root   root   4096 ago  7 11:20 www
   306 drwxr-xr-x.  2 root   root   4096 feb  3  2012 yp


[root@sqd var]# ls -lia tmp/
total 216
    305 drwxrwxrwx.  5 nobody nobody   4096 ago 30 14:13 .
   8194 drwxrwxrwx. 23 root   root     4096 ago 17 10:30 ..
   3030 -rwxrwxrwx   1 nobody nobody 199397 ago 30 14:13 file_thumb_5363_1_0.jpg

But

<?php
highlight_file(__FILE__);

var_dump(file_exists('/var/tmp/file_thumb_5363_1_0.jpg')); 

print out:

bool(false) 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:17:09+00:00Added an answer on June 11, 2026 at 2:17 am

    Fedora 16 introduced the concept of a “private tmp” /tmp and /var/tmp I would throw my 2 cents on that direction.

    From the manual:

    2.3.3. Services Private /tmp
    A number of services managed by systemd have been modified to make use of its ability to provide them with a
    private /tmp directory. Privileged services using /tmp and /var/tmp
    have previously been found to be open to being interfered with by
    unprivileged users, potentially leading to privilege escalation. Using
    private /tmp directories for services prevents this style of exploit.

    The directive added to the systemd unit files for the modified
    services is:

    [Service]
    PrivateTmp=true

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting a really strange error from ActiveResource. I have a method that
Hey guys, I'm getting a really strange error. I have a program that needs
This is a really strange error I have been getting sometimes with SOME libraries
Getting something really strange that I just can't work out. I have 3 methods
I have a kind of strange thing that I really nead for my text
I have been trying to output XML with PHP but encountered a strange(!) error
I have a very strange error happening in an App that has been working
I got a really strange error on some of the webpages I am taking
I have a very strange error. I have an webpage that runs in Appmode
Having a really strange problem. Scenario: PHP5.2.9, IIS7, PHP running as FastCGI. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.