I've just installed Symfony2 on my computer which run on mountain lion. When i try to access to localhost it works pretty well : when i type http://localhost/~myusername/Sites i've got the expected result.
However, when i type http://localhost/~myusername/Sites/Symfony/web/config.php, i've got a 403 error. I checked the permissions of the file Symfony but nothing's wrong here.
Someone has an idea about how to deal with it please ?
Check that apache is running with your user/group (/etc/apache2/httpd.conf).
User myusername
Group staff
check that the userconfig is correct (/etc/apache2/users/myusername.conf). Should be something like:
<Directory "/Users/myusername/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
after that you should be able to acces the page like http://localhost/~myusername/Symfony/web/config.php
Sidenote; maybe you need a proper PHP installation, check http://php-osx.liip.ch therefor
Related
I am trying to run Apache 2.4 on Ubuntu 21.10. However, I cannot get userdir to work. I did everything I can possibly google, except reinstalling apache. I am normally a Windows person, so this is driving me nuts.
What I did:
Enable userdir.conf
Set Permission of the folder public_html into 777, and change ownership to www-data
Add Require all granted to literally everywhere I can think of: apache2.conf, userdir.conf, and the config in sites-available to include
<Directory /home/*/public_html >
Require all granted
AllowOverride All
Options +Indexes
</Directory>
Yet, for some reason, all I have is ERROR 403: Forbidden when trying to go to http://localhost/~myusername
What could I possibly be missing?
Thank you.
It turns out it is "because search permissions are missing on a component of the path". So just "chmod -R 755" my entire home folder. Probably not that good of a solution, but still, it works.
I know this has been answered thousands of times already but I still face this issue and I cannot sort it out. I am new into servers. Please help.
I changed user and group to www-data. I set permissions like below.
these are directories/files permissions: (can't include file as server is running on VM)
https://ctrlv.cz/shots/2018/09/18/LrCe.png
Is there a problem with pemissions? Thank you very much for right direction.
Please replace /etc/apache2/sites-available/yourappname.conf file directory settings.
<Directory /path/yourapp/public>
Allow from all
Options -MultiViews
Options FollowSymLinks
Options All
require all granted
AllowOverride All
</Directory>
I am banging my head against a brick wall here. I have a Apache 2.4 server via xampp which I am trying to set up with a wsgi app. I followed the instruction at https://modwsgi.readthedocs.io/en/develop/user-guides/quick-configuration-guide.html and have searched the web a lot but nothing seems to be working and i am always getting this error
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
10.226.65.62
Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_wsgi/4.4.12 Python/2.7.12 PHP/5.6.24
I have set window folder permission to 'Everyone' and tried various combinations of
<Directory "C:/wsgi-scripts">
AllowOverride none
Require all denied
</Directory>
but nothing seems to work. Anyone have any ideas on this? my httpd.conf can be found here http://pastebin.com/uLtdXqrv
Thanks
You told Apache to forbid access. You have:
<Directory "C:/wsgi-scripts">
AllowOverride none
Require all denied
</Directory>
it should be:
<Directory "C:/wsgi-scripts">
AllowOverride none
Require all granted
</Directory>
Have a look at the Apache documentation to understand the difference between denied and granted.
http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require
I am getting this error while setting up my server for flask and apache on debian.
I've read through similar errors and I have changed all
order allow,deny
Allow from all
to
Options All
AllowOverride All
Require all granted
but still the same error. I've also checked running my applciation with current user (not root) in /var/www and it worked fine and also used a browser on localhost and everything is fine.
I finally succeeded in solving problem by changing
/etc/apache2/sites-available/ispconfig.conf
and commenting out
deny from all
for
<Directory />
but obviously I dont like this solution. It seems I am giving apache permission to root folder.
Any suggestions what is wrong?!
could it be for my python installation or.... I did not use any virtualenv as most tutorials suggested.
Also can I make more debug info available from apache?! I am using LogLevel debug, but I still don't see any more information!
How hard is it for apache to tell me what file has wrong permission!!!
I tried to install symfony1.4 on window-XP with xamp
i install symfony and create project. Helloword
When i open project in localhost. It give apache error.
I checked apache error log two error come:
First:It access permissions error.
Second:Client denied by server configuration.
Thanks In advance
project C:\xamp\htdocs\helloword\
also give CLI error when i create module under app
Hm, maybe try this:
instead of
<Directory "C:\wamp\www\helloword\web">
AllowOverride All
All Allow from All
</Directory>
this:
<Directory "C:\wamp\www\helloword\web">
AllowOverride All
Options FollowSymLinks +Indexes
Order allow,deny
Allow from all
</Directory>
and restart apache.