Wordpress Multisite... Warning: fopen(F:\htdocs/wp-content/plugins/1626892348): failed to open stream: Permission denied in~ Apache on windows 10 - windows

getting the error message in the wordpress dashboard
"Warning: fopen(F:\htdocs/wp-content/plugins/1626892348): failed to open stream: Permission denied in F:\htdocs\wp-includes\functions.php on line 6333"
this is a wordpress multisite installed on windows 10 using Apache.
been banging my head over this for the last 6 hours and nothing I google seems to help.

The file referenced in your functions.php line 6334 must be accessible to PHP, so you need to ensure that the file access permissions allow this access.

Related

Laravel - The stream or file failed to open stream: Permission denied

I know this is a common problem on Laravel, but I think I'm having a different issue or else the settings aren't being updated.
I've looked at this Laravel The stream or file "/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied and this How to set up File Permissions for Laravel 5 (and others) but I still have this issue:
The stream or file "/var/www/html/laravelwebapp/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
When I do this after going into the logs directory: $ ls -l laravel.log
I get this:
-rwxrwxr-x 1 apache apache 0 Feb 8 2018 laravel.log
I'm on CentOS which is why the group/user is apache not www-data. Yet even though the log is created by apache and apache is the owner and group, it can't open the stream? Does this mean Laravel is executing as another user? I'm a bit confused here, sorry :/
I've cleared the cache using artisan and also ran composer dump-autload but I can't seem to progress in my application because the log doesn't get written to.
Update: My php application is running as nobody when I run
echo exec('whoami');
Is this the problem and how do I fix that?

Setup Magento on local server from live server

I need to setup magento on local server from live server.
I tries all the steps as I googled but its give me a 404 error. Can anyone point out me. Below are the log file report for your reference.
failed to open stream: Permission denied in
D:\xampp\htdocs\roller\lib\Varien\Simplexml\Config.php on line 496
I give permission all the file but still its give me this error in my error log. Any help will be appreciated.
Give the permission to app and etc folders

Joomla Akeeba/Kickstart strange "ajax"? behaviour (error 403)

I want to restore a Joomla! 3.0 site from an Akeeba backup taken from my computer (localhost) to an online web server. I have used many versions of kickstart all giving the same problem. The latest I have used is 4.1.
I upload the kickstart files as well as the .jpa file (via FTP) to the server. The permissions are 744.
The problem is that kickstart screen appears and when I press start it continues with the error:
AN ERROR OCCURRED
AJAX Loading Error HTTP Status: 403 (Forbidden) Internal status: error
XHR ReadyState: undefined Raw server response:
Forbidden
You don't have permission to access /kickstart.php on this server.
Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.
But kickstart.php was just accessed and used to start the procedure!
As we can see in the Firebug the file is accessed twice before the error occurs.
EDIT: I must also inform you that I completely removed the .htaccess file so that I wouldn't have concerns that it would be the cause of the issue.
The best answer I could give you is that you need to change the permissions to 755:
chmod 755 /var/www/yourserver.com/public_html
and own the files
chown -R apache:apache /var/www/yourserver.com/public_html

Fatal error: Unknown: Failed opening required '<path to src>/includes/php.content-header.php'

I was going through some instructions to set up a mock website through xampp for development purposes, but ran into an issue. The instructions are as follows:
Clone this repository
Install PHP and MySQL, and php5-mysql
Changes to php.ini
auto_prepend_file=<path to src>/includes/php.content-header.php
short_tag=On
Get the most recent DB Dump and load it into MySQL
Create user sitename_login with password from includes/class.mysql_db.php
Grant this user permissions to sitename_site
Running local server
Desktop Version
From sitename.com directory run
php -S localhost:8000
As far as I know I followed the instructions as I should have, but when trying to open up php documents in xampp I got this error:
Warning: Unknown: failed to open stream: Invalid argument in Unknown on line 0
Fatal error: Unknown: Failed opening required '<path to src>/includes/php.content-header.php' (include_path='.;F:\xampp\php\PEAR') in Unknown on line 0
The folder layout in xampp is xampp->htdocs->folderName->includes->php.content-header.php
I've tried changing the location of the folders, but that didn't seem to solve the problem. I tried editing the contents of php.ini, but I was getting the same exact error even if I took out /includes/ out of the auto_prepend_file.
Any clues as to what I could do to get past this issue?
Search for require(<path to src>/includes/php.content-header.php) in your file and change it to require(__DIR__ . "\\includes\\php.content-header.php") (assuming your are on Windows)

file_put_contents errors in Joomla

I have a Joomla 1.5.20 site and I am not able to upload & update any file in it. The website is running on a Windows Webserver.
Warning: file_put_contents(D:\inetpub\vhosts\hidden\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc) [function.file-put-contents]: failed to open stream: Permission denied in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 8666
Warning: D:\inetpub\vhosts\hidden.tld\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc is not writeable in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 1779
Warning: file_put_contents(D:\inetpub\vhosts\hidden.tld\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc) [function.file-put-contents]: failed to open stream: Permission denied in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 8666
Warning: D:\inetpub\vhosts\hidden.tld\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc is not writeable in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 1779
I have tried deleting and recreating cache folder. Since it is a windows webserver I don't it a permission issue. Please advise me on how to fix it. Thanks!
You need to check your folder permissions:
Login to Administrator panel
Select Help > System info from top menu
Select tab Directory Permissions, all folders listed here need to have 'Writable' permissions.
If any of those folders are Unwritable, login to your server with ftp client, or cPanel, and change folder's CHMOD permissions to 755

Resources