Quantcast
Channel: PHP Warning: Unknown: failed to open stream - Stack Overflow
Browsing latest articles
Browse All 19 View Live

Answer by Pavel Jiri Strnad for PHP Warning: Unknown: failed to open stream

Except the permissions, the problem can be open_basedir. If you are using it (and I suggest to use it) then check the settings at the VirtualHost : php_admin_value open_basedir <YOUR ROOT>

View Article



Answer by AamirR for PHP Warning: Unknown: failed to open stream

In my case the group _www that apache uses was missing in the folder's access list, so first I had to add the missing group, like so:sudo chown -R _www ~/path-to-folderChange _www to whatever user or...

View Article

Answer by kirenpillay for PHP Warning: Unknown: failed to open stream

In Fedora 25, it turned out to be an SE Linux issue, and the notification gave this solution which worked for me.setsebool -P httpd_read_user_content 1

View Article

Answer by carlwang for PHP Warning: Unknown: failed to open stream

It is a SELinux blocking issue, Linux prevented httpd access. Here is the solution:# restorecon '/var/www/html/wiki/index.php'# restorecon -R '/var/www/html/wiki/index.php'# /sbin/restorecon...

View Article

Answer by thelightings for PHP Warning: Unknown: failed to open stream

Just quote for above answer of user1992554 This one worked perfectly for me in Linux Mint, to get rid of Warning: failed to open stream: Permission deniedcd /var/www sudo chown www-data:www-data * -R...

View Article


Answer by denis for PHP Warning: Unknown: failed to open stream

Go to folder htdocscd htdocsExecutechmod -R 755 sitesNo need to sudo !

View Article

Answer by Adrian Gunawan for PHP Warning: Unknown: failed to open stream

I just came across of this same problem and in my case it was caused by selinux. Disabling it solved the issue. And no, I don't need selinux on my workstation, thank you.

View Article

Answer by Dexter for PHP Warning: Unknown: failed to open stream

In my mind true way is:# add READ permission to all directories and files under your DocumentRootsudo chmod +r /path/to/DocumentRoot/ -R# add EXECUTE permission to all DIRECTORIES under your...

View Article


Answer by Shadaksharayya H A for PHP Warning: Unknown: failed to open stream

Check dos and unix file format. This problem is seen on linux platforms if dos file format is used. Use doc2unix command like below and then retry it should workdos2unix *.phpThis solution for below...

View Article


Answer by Heshantha Nadeeshan Jayawardan for PHP Warning: Unknown: failed to...

Once, this happens to me as well. and when I googled the matter, I got to know that this happens when the permissions on the file is wrongfully set to 000 (which means that no one can read, write, or...

View Article

Answer by Duco for PHP Warning: Unknown: failed to open stream

This isn't a direct answer to the question, but I had the same problem. I installed VSFTPD on my Ubuntu Server VPS. I could upload files, but every file I uploaded didn't have execution permissions...

View Article

Answer by user1992554 for PHP Warning: Unknown: failed to open stream

Here some guide how to fix it. Go to :cd /var/wwwsudo chown www-data:www-data * -Rsudo usermod -a -G www-data usernameChange userneme with your username. I hope it help.

View Article

Answer by Narek for PHP Warning: Unknown: failed to open stream

I got this problem when insert wrong file address into .htaccessphp_value auto_prepend_file "/home/user/wrong/address/config.php"So if you use auto_prepend_file check your file path. It called from...

View Article


Answer by jamie for PHP Warning: Unknown: failed to open stream

If you are running Fedora, make sure SELinux is not interfering.You fix this with this command: sudo /sbin/restorecon -R /var/www/More info here: linuxquestions.org/questions/linux-server-73/

View Article

Answer by SimplGy for PHP Warning: Unknown: failed to open stream

This also happens (and is particularly confounding) if you forgot that you created a Windows symlink to a different directory, and that other directory doesn't have appropriate permissions.

View Article


Answer by petka for PHP Warning: Unknown: failed to open stream

It happened to me today with /home/user/public_html/index.php and the solution was to do chmod o+x /home/user as this directory has to have the X as otherwise the apache server can't list files (i.e....

View Article

Answer by John Magnolia for PHP Warning: Unknown: failed to open stream

Experienced the same error, for me it was caused because on my Mac I have changed the DocumentRoot to my users Sites directory.To fix it, I ran the recursive command to ensure that the Apache service...

View Article


Answer by Mullins for PHP Warning: Unknown: failed to open stream

I had the same error and my problem was the file permissions were incorrect.chmod 755 index.phpworked for me.

View Article

PHP Warning: Unknown: failed to open stream

I edited the apache httpd.conf file recently for the mod_rewrite to work. I don't know if this problem originated from that or not, but i'm getting this problem from that day.This is what I see on the...

View Article
Browsing latest articles
Browse All 19 View Live


Latest Images