The php file and apache are not working well together.

Asked 2 years ago, Updated 2 years ago, 46 views

The php is "It works!" but when I try to access a particular file,

Warning: Unknown: failed to open stream: Permission denied in Unknown online 0

Fatal error: Unknown: Failed opening required '/Library/WebServer/Documents/dbtest3.php'(include_path='.':') in Unknown on line 0

That's what happens.I think I deleted the php file related to the mamp.
Please let me know if you can come up with a solution.

php apache

2022-09-29 21:38

1 Answers

Warning: Unknown: failed to open stream: Permission denied in Unknown online 0

Fatal error: Unknown: Failed opening required '/Library/WebServer/Documents/dbtest3.php'(include_path='.':') in Unknown on line 0

Permission denied is displayed, so I don't have access to the .php file, so I think I can't load the file.

Check and reconfigure file permissions, owners, and groups.
If you are not sure, try running chmod644/Library/WebServer/Documents/dbtest3.php to see if there are any changes.


2022-09-29 21:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.