I am using MAMP and MAMP Pro and I am trying to run some php in a new folder. I store the files in the root directory Applications > MAMP > htdocs . When I create a new folder to store a .php folder I get an error message saying
"Forbidden
You don't have permission to access /phptutorial/ on this server."
The folder /phptutorial/ is one I am trying to create I don't understand what seems to be be problem on MAMP since I own and have full rights of the file.
Related
Xampp is installed on my local windows machine.
I downloaded WordPress 4.5.2, unzipped it and put the contents in a folder called wptest which is in htdocs.
Xammp has php 7.0.6
The error I am getting is:
Access forbidden!
You don't have permission to access the requested directory. There is either
no index document or the directory is read-protected.
Error 403
If I type localhost into the browser I am taken to the localhost/dashboard
and if I type in localhost/wptest I get the access denied error.
When I first copied the wp files into the wptest folder I took the following steps:
Created a DB called wptest (same as the folder with the wp files in).
Renamed wp-config-sample.php file to wp-config.php.
Inside wp-config.php I Replaced “database_name_here” with wptest,
Replaced “username_here” with “root” and Left the “password_here” blank.
I have tried several suggestions from forum posts regarding the access denied error but am getting nowhere.
As I have little experience with phpMyAdmin & XAMMP it may be a simple permissions setting I have missed.
Did you try with a older version on php?
I have the 5.6.3 version and it works fine.
I am able to access my localhost as well as phpmyadmin for wamp server but I have really struggled to access my folders in wamp servers www folder. Any time i try i get the following error
**Forbidden**
You dont have permission to access /folder/folder on this server.
I imported the files I am trying to run locally from my host and they are written in codeignitor.
Created an application using Codeginiter and is working fine with my local environment which is in XAMPP.
After uploading application folders and files to linux server application is not working at all.
Deployed complete files under "/var/www/html/" and when access from browser it gives me CI error as "404 Page Not Found".
After uploading, I have updated .htaccess file.
I think this is about Linux file permission. You might want to check its file permission.
try to change the permission to read, write and executed by you ONLY example:
sudo chmod 700 var/www/html
I just moved from WAMP to LAMP, and can't figure out this problem that I am facing.
Whenever I create new vhost which is not in this directory /var/www/html/ i get a 403 forbidden message. (Permission are the same and there is an index file)
It seems to me that somewhere in Linux you specify a list of directories and apache works explicitly with those ones.
I use Apache 2.4.6.
I appreciate your help,
After checking the error log(vhost), I found this error message "search permissions are missing on a component of the path".
Meaning that one of the parent directories from where the vhost was located didn't not have search (+x) permission for the apache user.
I am doing PHP development using Linux OS ,Lampp Apache server.I changed the default root folder htdocs to another folder PHP on my desktop. When I create a hello.php file in the folder ,I can see it in browser and works well.
But I have another folder inside this root folder called 'front_end'.When I try to see it in browser using http://localhost/front_end ,i get access forbidden.
Firebug shows 'Access forbidden'
How can I get access to this folder using localhost?
Another user asked a similar question on stackoverflow ,but it didn't help.
Ubuntu/Apache2/ Forbidden/Permission error
Assuming you have followed the advice regarding the file permissions.
Have you got an index.php file in the front_end directory?
If not that may be why you get 'Access forbidden'. See Apache 403 Forbidden Error and Solution Try accessing the spesific php file in the directory e.g. /front_end/test.php
Permissions on the folder
Check the permissions of the folder.
Use sudo to create the folders.