I am using Apache HTTPD with the Dispatcher module running on RHEL.
The dispatcher works fine but it's unable to cache the file. On inspecting the logs I see the following error -
Unable to create parent directory /var/www/html/bla/bla/static: Permission denied
My apache is running with the default user and usergroup - apache
I have also changed the ownership of my docroot (/var/www/html) to apache.
drwxrwxrwx. 20 apache apache 278 Jun 14 04:08 var
Does anyone know what the problem is? Please help!
Related
When trying to load my website I receive the following message.
Forbidden
You don't have permission to access / on this server.
Apache/2.4.18 (Ubuntu) Server at www.xxx.com Port 80
Please note I am complete novice to this so any guidance would be amazing!!
Without more information; A couple of possible things to look at:
1)
Check permissions on the directory you are hosting the web files (usually under /var/www). See this link for adding your user to www-data group etc..
https://askubuntu.com/questions/162866/correct-permissions-for-var-www-and-wordpress
2)
Issue in Apache config. Discussed here:
WAMP : Forbidden You don't have permission to access / on this server. Apache/2.4.18 (Win64) PHP/5.6.19
Just change the permission of that directory in which you have your project files
type chmod 777 directory-name
I need to get apache running as a non-root user, listening to port 8443, in order to have a new website available (on localhost:8443) for internal security scanning, on a CentOS 7.3 system. I understand only the basics of apache (on Ubuntu), and I am NOT a web administrator, so am unfamiliar with the many options / config settings necessary to get this to work.
I have a directory (/webcontent) with my website content (which requires php), and can host there the various conf files necessary. But I am stumbling through getting httpd.conf setup properly for apache to run as a local user, launched with:
httpd -f /webcontent/conf/httpd.conf
And have set the logs to write to /webcontent/logs (via ErrorLog parameter), but it then complains about not having write access to /run/httpd, and so won't actually start:
[Thu Feb 23 11:59:51.289587 2017] [auth_digest:error] [pid 25464]
(13)Permission denied: AH01762: Failed to create shared memory segment
on file /run/httpd/authdigest_shm.25464
I imagine this is only the first of many problems I might have to get this running, so if anyone can point out the specific config settings necessary in httpd.conf (or elsewhere?) to get this scenario to work, that would be very much appreciated. Or has any other suggestions on running a non-root instance of apache for testing.
A bit late, but I see there's no answer so far. I just ran into this issue myself. My solution is below.
Use the DefaultRuntimeDir directive to override the default "/run/httpd" directory. This goes in httpd.conf. For example:
DefaultRuntimeDir "/my/local/rundir"
This will cause apache to create "/my/local/rundir/authdigest_shm.1234"
For some reason this doesn't also override the default pid file directory, so set it with the PidFile directive, e.g.:
PidFile "/my/local/rundir/httpd.pid"
You might also want to look at the ServerRoot directive.
I am trying to configure mod_jk in Apache 2.2.3 to connect with Tomcat 7. OS is CentOS 5
After all the configuration, while starting the Apache httpd I am getting -
Starting httpd: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: cannot open shared object file: Permission denied
I see the permission is set alright
-rwxr-xr-x 1 root root 266752 Jun 3 19:37 mod_jk.so
I don't know what to do. Can any one please help?
Check your SELinux configuration.
Either open file /etc/selinux/config and check selinux setting or
run getenforce and see the output.
If I am correct then you will find it to be Enforcing. Now set it to permissive and restart httpd. You might need to reboot system to take effect.
I'm trying to set up a webserver on my VPS (Running Debian 7). I have installed apache and configured it. However, when I try to connect to my IP I am faced with a 403 forbidden error saying that I don't have access to / on the server. I have attempted to set it up so that when connecting the webserver should direct to the directory: /home/webmaster/website. My main apache.conf file is as follows: http://pastebin.com/zgyik39y
and my site config, called "web.conf" is: http://pastebin.com/jpRJAaCw I don't know what to do, I've tried many suggestions on here and in other places and none so far have worked.
Line 18 of web.conf should be:
Allow from all
For apache 2.2 or:
Require all granted
For apache 2.4
This is a brand new installation of a bitnami gitorius image on EC2, worked fine until i tried to enable https/ssl.
I am sure i have misconfigured apache somehow, however the root document at https://tarantula.anatexis.net loads just fine.
but if one goes to the gitorious app at https://tarantula.anatexis.net/gitorious you get permission denied.
which config file do I edit to allow https traffic to gitorious.
looking at the apache logs, is see this,
[Mon Jun 03 17:25:20 2013] [error] [client 71.17.13.29] Directory index forbidden by Options directive: /opt/bitnami/apache2/htdocs/gitorious/, referer:Https://tarantula.anatexis.net/
Any help would be appreciated, Thanks
Joe
OK, so i fixed it, found the file /opt/bitnami/apache2/conf/extra/httpd-ssl.conf this config file has the document root in it for ssl traffic, the default is wrong and it needs to be changed to
DocumentRoot "/opt/bitnami/apps/gitorious/htdocs/public"
This solved all my issues I believe.