require_once: failed to open stream: Permission denied(lampp)
The problem was indeed the permissions, i'm guessing because i copied the folder.
I fixed it by chmod 777
on all the files in that folder, and now it works fine.
Thank you for your time attempting to help me.
PHP require_once failed to open stream permission denied
The problem was not a permission issue. The file I was including was named mysql_connect.php which I think conflicts with either one of mysql's files or functions so the server was confusing my file for that and wouldn't require_once() or include_once() or include() the file. Hence the permission denied fatal error. I change the name of the file and all is well. Thanks to you all for trying to help me out.
Warning failed to open stream permission denied fatal error require_once PHP + NginX + RHEL in VMware
you did CHMOD 777
or CHMOD -R 777
, if youd have executed the first one I suggest you to do the second one.
If chmod is not working, maybe you need to do a CHOWN to assign the user in your your folder and subfolder like this : CHOWN -R apache:apache /mnt/data/...
Related Topics
Url Encoded Forward Slashes Breaking My Codeigniter App
How to Determine If an Array Has Any Elements or Not
Where to Use MySQL_Real_Escape_String to Prevent SQL Injection
Change Today's Date and Time in PHP
Facebook Oauthexception: "User Hasn't Authorized the Application to Perform This Action"
How to Use Facebook Graph API to Retrieve Fan Photos Uploaded to Wall of Fan Page
Pdo's Rowcount() Not Working on PHP 5.2.6+
PHP JSON_Encode and JavaScript Functions
Destroy PHP Session on Page Leaving
How to Remove Values from an Array in PHP
Tcpdf and Insert an Image Base64 Encoded
How to Inject a Service in Another Service in Symfony
Google Map: Is a Lat/Lng Within a Polygon